Repository navigation
Closed
Copy link
Labels
Description
Summary
Follow-up from adl-cli PR #281 (merged), which extended the ADL spec.telemetry from a single enabled boolean into an OpenTelemetry-aligned structure and now generates the matching A2A_OTEL_* (Go) / OTEL_* (TypeScript) env vars into the scaffolded .env.example.
The operator's Agent CRD hasn't caught up: it still models telemetry as {enabled, metrics:{enabled, port}} and its controller only injects TELEMETRY_ENABLED. Agents deployed via the operator therefore can't express or receive the new exporter configuration. Bring the Agent CRD and its controller in line with ADL schema v0.19.0 so operator-deployed agents can configure OTLP/Prometheus trace and metric exporters.
New ADL shape (schema v0.19.0)
telemetry:
enabled: true
traces:
exporter:
otlp:
endpoint: http://localhost:4318
protocol: http/protobuf
metrics:
exporter:
prometheus:
port: 9464
# or:
# otlp:
# endpoint: http://localhost:4318
# protocol: http/protobufCurrent operator state
api/v1alpha1/gateway_types.go:151-TelemetrySpec(reused by the Agent CRD viaagent_types.go) only hasEnabled+Metrics{Enabled, Port}.internal/controller/agent_controller.go:394- only emitsTELEMETRY_ENABLED.
Notes / limitations (carried from PR #281)
- The Go ADK exposes a single shared OTLP endpoint, so a manifest pushing traces + metrics to different OTLP endpoints can't be expressed - emit the traces endpoint (adl-cli does the same).
- The
A2A_prefix is Go-only; the operator deploys Go ADK images, so that's the correct prefix here (the bareOTEL_*form is TypeScript-only).
Acceptance Criteria
-
TelemetrySpec/MetricsSpecinapi/v1alpha1extended withtraces.exporter.otlp{endpoint,protocol}andmetrics.exporter.{otlp{endpoint,protocol}, prometheus{port}}to match ADL v0.19.0. - CRDs + deepcopy regenerated (
task manifests generate) ->config/crd/bases/core.inference-gateway.com_agents.yaml,manifests/crds.yaml,zz_generated.deepcopy.go. -
agent_controller.goenv injection emits the Go-ADKA2A_OTEL_*vars, mirroring adl-cli'sinternal/templates/telemetry_env.gomapping:A2A_OTEL_TRACES_EXPORTER,A2A_OTEL_METRICS_EXPORTERA2A_OTEL_EXPORTER_OTLP_ENDPOINT,A2A_OTEL_EXPORTER_OTLP_PROTOCOL(shared pair - the Go ADK has no per-signal OTLP fields)A2A_OTEL_EXPORTER_PROMETHEUS_PORT
- Telemetry-enable var name reconciled: the operator emits
TELEMETRY_ENABLED, but the Go ADK (per PR [TASK] Bump Go toolchain to 1.26.8 #281) readsA2A_TELEMETRY_ENABLE. Confirm what the agent image actually reads and align. -
config/samples/core_v1alpha1_agent.yaml+examples/and controller tests updated.
Follow-up requested in adl-cli PR #281.
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsDone
Activity
[-]feat: support OTel-aligned telemetry (traces/metrics exporters) in Agent CRD[/-][+][FEATURE] support OTel-aligned telemetry (traces/metrics exporters) in Agent CRD[/+]edenreich commentedon Jul 15, 2026
@claude Can you implement this?
inference-gateway-maintainer commentedon Jul 15, 2026
OTel-aligned telemetry in Agent CRD
Working on it
internal/templates/telemetry_env.go, schema v0.19.0)TelemetrySpec/MetricsSpecwithtraces.exporter.otlpandmetrics.exporter.{otlp,prometheus}A2A_OTEL_*env vars inagent_controller.goTELEMETRY_ENABLED→A2A_TELEMETRY_ENABLE(what the Go ADK reads)manifests/{crds,install}.yamltask fmt vet lint testView job run
feat: support OTel-aligned telemetry exporters in Agent CRD
feat: support OTel-aligned telemetry exporters in Agent CRD (#154)
chore(release): 🔖 0.18.0 [skip ci]
inference-gateway-releaser commentedon Jul 17, 2026
🎉 This issue has been resolved in version 0.18.0 🎉
The release is available on GitHub release
Your semantic-release bot 📦🚀