Repository navigation
feat: generate OTel-aligned telemetry configuration from extended spec.telemetry - #281
Conversation
|
@claude Can you finalize this PR? I want the OTLP environment variables to be generated with the A2A_* prefix! Use /ponytail:ponytail |
|
Claude finished @edenreich's task in 22m 24s —— View job Finalized:
|
The Go ADK nests its whole server config under the A2A_ prefix and its
OTelConfig carries no prefix of its own, so the OpenTelemetry SDK settings
are read as A2A_OTEL_*. Emit the exporter variables with that prefix for Go
and drop the main.go overlay that re-read the bare OTEL_* names. TypeScript
keeps bare OTEL_* since the OpenTelemetry Node SDK reads process.env directly.
Go now always emits the shared OTEL_EXPORTER_OTLP_{ENDPOINT,PROTOCOL} pair
(the Go ADK has no per-signal fields). Sync the vendor built-in ADK pin and
the stale VendorWiring test to v0.23.0, and cover the prefix contract.
Co-authored-by: Eden Reich <[email protected]>
|
@claude So is it ready for merge now? can you update the title and the body? |
|
Claude finished @edenreich's task in 4m 55s —— View job Ready for merge ✅ - title & body updatedYes, this is ready to merge. Everything is green and the earlier review suggestions were already folded in (
Merge readiness
Title Body rewritten to a proper description: summary, Note: the branch is still named |
|
@claude Can you create the follow-up for the operator Agents CRDs ? |
|
Claude finished @edenreich's task in 4m 20s —— View job Follow-up created: OTel-aligned telemetry in the operator Agent CRD
➡️ inference-gateway/operator#153 - The gap it tracksPR #281 extended the ADL
So agents deployed via the operator can't express or receive the new exporter configuration. Scope captured in the issue
No code changes here - this was a tracking issue only, filed in the operator repo where the Agent CRD lives. |
## [0.48.0](v0.47.1...v0.48.0) (2026-07-14) ### ✨ Features * bump Go version to 1.26.4 ([#279](#279)) ([4945a28](4945a28)) * generate OTel-aligned telemetry configuration from extended spec.telemetry ([#281](#281)) ([47c5b3d](47c5b3d)) ### 🐛 Bug Fixes * quote boolean and numeric env values in compose template ([#267](#267)) ([6198824](6198824)) ### 📚 Documentation * add missing CLI flags to README generate/init flag tables ([#275](#275)) ([db0a842](db0a842)) * document spec.telemetry OpenTelemetry generation ([#277](#277)) ([bd75c08](bd75c08)), references [#259](#259) * fix project structure diagrams and universal files section ([#274](#274)) ([17bad1b](17bad1b)), closes [#272](#272) * mark Service Injection code examples as illustrative with template references ([#278](#278)) ([69b9806](69b9806)) * remove missing example ref, document all examples ([#273](#273)) ([4e30aff](4e30aff)), closes [#268](#268) * update Template System and Architecture section with accurate Context struct and file mapping ([#276](#276)) ([352d084](352d084))
|
🎉 This PR is included in version 0.48.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Summary
Extends
spec.telemetryfrom a singleenabledboolean into a structured, OpenTelemetry-aligned configuration and generates the matching SDK environment variables into the scaffolded.env.example.Closes #280.
What changed
spec.telemetrynow accepts declarativetraces/metricsexporter blocks:internal/templates/telemetry_env.gomaps these to the standardOTEL_*SDK variables, with a language-specific prefix:A2A_OTEL_*. The Go ADK nests its whole server config under theA2A_prefix (config.Config.A2Aisenv:",prefix=A2A_") and itsOTelConfigcarries no prefix of its own, soA2A_OTEL_*is what actually reaches the exporters. Uses the sharedOTEL_EXPORTER_OTLP_{ENDPOINT,PROTOCOL}pair (the Go ADK has no per-signal OTLP fields) and supports the Prometheus pull exporter.OTEL_*. The TS ADK hands these straight to the OpenTelemetry Node SDK, which reads unprefixed names fromprocess.env; prefixing them would silently disable telemetry. Supports per-signal OTLP endpoints and collapses to the shared pair when both signals target the same collector.spec.telemetryis not supported and is ignored; the validator warns.Generated
.env.exampleAlso included
traces/metricsexporter blocks. The committedschema.jsonstays byte-identical to upstreamv0.19.0, soverify-schemapasses.telemetryignored) and TypeScript + Prometheus pull.v0.23.0(go.mod.tmpl+ built-in vendor pin invendor.go).telemetry.go.tmpl/main.go.tmplreconciled so the top-levelenvconfig.ProcessreadsA2A_OTEL_*(dropped a stray overlay that re-read bareOTEL_*).telemetry_env_test.go) lock in the Go-A2A_vs TS-bare contract.examples/{go,typescript}-agent-telemetry.yaml.Notes / limitations
A2A_prefix is deliberately Go-only; the TS OTel Node SDK requires bareOTEL_*.Verification
go build ./...,go vet ./...,go test ./...- all greentask verify-schema- no drift from upstreamv0.19.0task examples:test- all manifests valid, including both telemetry examples