Skip to content

Claude/serene albattani 0 yt hg - #473

Merged
maximusunc merged 4 commits into
masterfrom
claude/serene-albattani-0YtHg
Jun 8, 2026
Merged

Claude/serene albattani 0 yt hg#473
maximusunc merged 4 commits into
masterfrom
claude/serene-albattani-0YtHg

Conversation

@maximusunc

Copy link
Copy Markdown
Collaborator

The Jaeger native exporters were removed from the OpenTelemetry SDK (>=1.28). In production the OTel operator injects a recent SDK at /otel-auto-instrumentation-python and prepends it to PYTHONPATH, so the pinned opentelemetry-exporter-jaeger==1.21.0 crashed on startup with:

ImportError: cannot import name 'OTEL_EXPORTER_JAEGER_AGENT_HOST'
from 'opentelemetry.sdk.environment_variables'

Switch to the OTLP gRPC span exporter (Jaeger ingests OTLP natively on 4317). With no configured endpoint the exporter reads the standard OTEL_EXPORTER_OTLP_ENDPOINT env var that the operator injects, so prod defers to the operator while local dev points at the jaeger service.

  • server.py: JaegerExporter -> OTLPSpanExporter
  • config.py: replace jaeger_host/jaeger_port with otlp_endpoint
  • requirements: drop opentelemetry-exporter-jaeger, add otlp-proto-grpc
  • docker-compose.dev.yml: expose Jaeger OTLP ports, set OTLP_ENDPOINT

claude and others added 4 commits June 8, 2026 16:06
The Jaeger native exporters were removed from the OpenTelemetry SDK
(>=1.28). In production the OTel operator injects a recent SDK at
/otel-auto-instrumentation-python and prepends it to PYTHONPATH, so the
pinned opentelemetry-exporter-jaeger==1.21.0 crashed on startup with:

  ImportError: cannot import name 'OTEL_EXPORTER_JAEGER_AGENT_HOST'
  from 'opentelemetry.sdk.environment_variables'

Switch to the OTLP gRPC span exporter (Jaeger ingests OTLP natively on
4317). With no configured endpoint the exporter reads the standard
OTEL_EXPORTER_OTLP_ENDPOINT env var that the operator injects, so prod
defers to the operator while local dev points at the jaeger service.

- server.py: JaegerExporter -> OTLPSpanExporter
- config.py: replace jaeger_host/jaeger_port with otlp_endpoint
- requirements: drop opentelemetry-exporter-jaeger, add otlp-proto-grpc
- docker-compose.dev.yml: expose Jaeger OTLP ports, set OTLP_ENDPOINT

https://claude.ai/code/session_01MjikEyt2y77SdaTHJ1oLoo
Keep the existing JAEGER_HOST/JAEGER_PORT configuration instead of
introducing a new OTLP_ENDPOINT variable. The OTLP exporter endpoint is
constructed as http://{jaeger_host}:{jaeger_port}; the default port moves
from 6831 (old thrift agent) to 4317 (Jaeger's native OTLP gRPC receiver).

https://claude.ai/code/session_01MjikEyt2y77SdaTHJ1oLoo
@maximusunc
maximusunc merged commit e309741 into master Jun 8, 2026
4 checks passed
@maximusunc
maximusunc deleted the claude/serene-albattani-0YtHg branch June 8, 2026 18:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants