Repository navigation
New: OpenTelemetry spans for components and modules (#415)
gaik can now send a span for every model call its components make, and one trace per run of a software module (RAGWorkflow, ReportWriter, AudioToStructuredData, DocumentsToStructuredData, MultiSourceReportGenerator), to any OpenTelemetry backend such as MLflow.
- Install
gaik[otel](also ingaik[all]). Installing it switches nothing on. - Switch it on with
OTEL_EXPORTER_OTLP_ENDPOINT(gaik sends spans there over OTLP/HTTP), or withGAIK_TRACING=trueto use your application's own tracer provider.GAIK_TRACING=falseorOTEL_SDK_DISABLED=truekeeps it off. - A span holds the component, provider, model, the settings as sent, tokens and an estimated cost, and the lengths of the input and the answer. It never holds prompt or answer text.
Upgrading from 0.13.0
- A streamed RAGWorkflow answer may not be a generator while tracing is on.
RAGWorkflow.ask(stream=True)then returns a relay object that reads, closes and takesthrowlike a generator, butinspect.isgenerator(answer)is false. Test forcollections.abc.Iteratorinstead. With tracing off nothing changes. - sqlglot stays below 30.38 for the
tabular-agentandpostgres-agentextras. sqlglot 30.38.0 (2026-12-04) calls function builders in a way the SQL agents' argument check does not accept yet, so DuckDB queries usingarg_maxormax_bywere refused. The cap lifts once the check handles it. - Cost estimates for Claude: Fable 5.2 and Mythos models have their own prices, and the span's cost prices cached input at Claude's cache read and write rates.
What's Changed
- feat(observability): OpenTelemetry spans for the extractor's LLM calls by @aaltjo798 in #75
- feat(observability): OpenTelemetry spans for every ProviderClient call by @aaltjo798 in #119
- chore: merge main into dev by @aaltjo798 in #180
- feat(observability): spans for components that call a model SDK directly by @aaltjo798 in #123
- chore: merge main into dev by @laguagu in #225
- chore: merge main into dev by @laguagu in #230
- chore: merge main into dev by @laguagu in #246
- chore: merge main into dev by @laguagu in #248
- chore: merge main into dev by @laguagu in #257
- chore: merge main into dev by @laguagu in #258
- chore: merge main into dev by @laguagu in #259
- feat(observability): one trace per module run, with the module and the component on each call by @aaltjo798 in #381
- fix(observability): explicit tracing switch, Claude cache pricing, per-context module runs by @laguagu in #393
- chore: install gaik 0.13.0 in the wizard images and the demo API by @laguagu in #410
- ci(website): dompurify 3.5.1 in the docs site's lockfile by @laguagu in #412
- docs: remove stale facts from the agent skills, AGENTS.md and project docs by @laguagu in #411
- fix(wizard): keep a RAG PoC run going when gaik 0.13 blocks an answer by @laguagu in #413
- feat(demo): the first wizard runs on the user's own Anthropic API key again by @laguagu in #414
- Merge dev into main: OpenTelemetry spans for components and modules by @laguagu in #415
- chore(release): validate the wizard and the agent skills for gaik 0.14.0 by @laguagu in #416
New Contributors
- @aaltjo798 made their first contribution in #75
Full Changelog: v0.13.0...v0.14.0