Skip to content

Conversation

@floriafz23
Copy link
Contributor

@floriafz23 floriafz23 commented Jan 28, 2026

Resolves #649

@floriafz23 floriafz23 marked this pull request as ready for review January 28, 2026 18:02
@floriafz23
Copy link
Contributor Author

@evalstate Is this PR ready for merge?

@evalstate
Copy link
Owner

I can't make it work locally with streaming / crashing so put to one side momentarily. I assume you are getting OTEL traces with 0.4.43 and this patch?

@floriafz23
Copy link
Contributor Author

I can't make it work locally with streaming / crashing so put to one side momentarily. I assume you are getting OTEL traces with 0.4.43 and this patch?

Yup, I'm able to get OTEL traces with this. Also, the versions I gave before were wrong, I think. These are the versions I'm using:

opentelemetry-api                          1.39.0
opentelemetry-distro                       0.60b0
opentelemetry-exporter-otlp                1.39.0
opentelemetry-exporter-otlp-proto-common   1.39.0
opentelemetry-exporter-otlp-proto-grpc     1.39.0
opentelemetry-exporter-otlp-proto-http     1.39.0
opentelemetry-exporter-prometheus          0.60b0
opentelemetry-instrumentation              0.60b0
opentelemetry-instrumentation-anthropic    0.49.6
opentelemetry-instrumentation-asyncio      0.60b0
opentelemetry-instrumentation-google-genai 0.4b0
opentelemetry-instrumentation-httpx        0.60b0
opentelemetry-instrumentation-logging      0.60b0
opentelemetry-instrumentation-mcp          0.49.6
opentelemetry-instrumentation-openai       0.49.6
opentelemetry-instrumentation-urllib       0.60b0
opentelemetry-proto                        1.39.0
opentelemetry-sdk                          1.39.0
opentelemetry-semantic-conventions         0.60b0
opentelemetry-semantic-conventions-ai      0.4.13
opentelemetry-util-genai                   0.2b0
opentelemetry-util-http                    0.60b0

The patch doesn't work with some newer opentelemetry-instrumentation-anthropic versions.

@evalstate
Copy link
Owner

Thank you - I'll take another look fairly soon then (as it's been frustrating me for a while) - it's just that the failure mode is pretty horrible, and the OTEL plugins seem super-sensitive to cross-version issues.

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.

[BUG] Use of Anthropic's beta streaming API incompatible when OpenTelemetry is enabled

2 participants