Repository navigation
Support grpc export in the SDK - #4825
Merged
Merged
Conversation
Select the OTLP gRPC exporters when OTEL_EXPORTER_OTLP_PROTOCOL (or the signal specific variant) is grpc. The default stays http/protobuf. The gRPC exporter is only installed on x86_64 and aarch64, because grpcio provides no wheels for other architectures. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WAy2Nd125UZo16UXmXfMf9
plengauer
marked this pull request as ready for review
November 29, 2026 09:42
plengauer
enabled auto-merge (squash)
November 29, 2026 09:42
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Stacked on #4823: this PR merges into that PR's branch (
ccr-51cfecf3-f9m5wi), which in turn targetsmain.Summary
sdk.pyuses the OTLP gRPC exporters for traces, metrics and logs whenOTEL_EXPORTER_OTLP_<SIGNAL>_PROTOCOLorOTEL_EXPORTER_OTLP_PROTOCOLisgrpc. The default stayshttp/protobuf.opentelemetry-exporter-otlp-proto-grpc==1.45.2is added tosrc/opt/opentelemetry_shell/requirements.txtwith a platform marker (x86_64andaarch64only).grpciohas no wheels for other architectures such as s390x, ppc64le and riscv64, and this file is installed on every supported architecture at install time. If the gRPC exporter is not installed, selectinggrpcraises an error that says so.Deep injections
No code change needed:
agent.instrumentation.python/requirements.txtalready installsopentelemetry-exporter-otlp, which includes the gRPC exporter, and the upstream distro mapsotlpplusgrpcto it.@opentelemetry/sdk-node0.301.2 selects the gRPC exporter forgrpc.opentelemetry-javaagent2.33.1 jar contains the OTLP gRPC span exporter classes.Testing
Spot checks against a local OTLP/gRPC server:
sdk.py,opentelemetry-instrument(Python) and the repo'sdeep.instrument.js(Node) each delivered a span withgrpc, and none did with the protocol unset. Java was only checked for the exporter classes in the jar. Proper automated tests are still to come.🤖 Generated with Claude Code
https://claude.ai/code/session_01WAy2Nd125UZo16UXmXfMf9