opentelemetry-exporter-otlp-proto-grpc: set grpc user agent properly by xrmx · Pull Request #4658 · open-telemetry/opentelemetry-python

@xrmx xrmx changed the title opentelemetry-exporter-otlp-proto-grpc: set user agent properly opentelemetry-exporter-otlp-proto-grpc: set grpc user agent properly

Jun 26, 2025

@xrmx xrmx marked this pull request as ready for review

June 26, 2025 09:07

xrmx

It looks like metadata is ignored and instead we should set the
grpc.primary_user_agent channel option instead. User-agent will change
from:
grpc-python/1.71.0 grpc-c/46.0.0 (linux; chttp2)

to:
OTel-OTLP-Exporter-Python/1.34.1 grpc-python/1.71.0 grpc-c/46.0.0 (linux; chttp2)

@xrmx

@xrmx

@xrmx xrmx mentioned this pull request

Jun 30, 2025

pmcollins

@xrmx

pmcollins

@xrmx

JWinermaSplunk pushed a commit to JWinermaSplunk/opentelemetry-python that referenced this pull request

Feb 17, 2026
…pen-telemetry#4658)

* opentelemetry-exporter-otlp-proto-grpc: set user agent properly

It looks like metadata is ignored and instead we should set the
grpc.primary_user_agent channel option instead. User-agent will change
from:
grpc-python/1.71.0 grpc-c/46.0.0 (linux; chttp2)

to:
OTel-OTLP-Exporter-Python/1.34.1 grpc-python/1.71.0 grpc-c/46.0.0 (linux; chttp2)

* Add Changelog

* Remove default metadata as user-agent there is overriden by grpc itself

* Merge passed channel options with the defaults

JWinermaSplunk pushed a commit to JWinermaSplunk/opentelemetry-python that referenced this pull request

Feb 17, 2026
…pen-telemetry#4658)

* opentelemetry-exporter-otlp-proto-grpc: set user agent properly

It looks like metadata is ignored and instead we should set the
grpc.primary_user_agent channel option instead. User-agent will change
from:
grpc-python/1.71.0 grpc-c/46.0.0 (linux; chttp2)

to:
OTel-OTLP-Exporter-Python/1.34.1 grpc-python/1.71.0 grpc-c/46.0.0 (linux; chttp2)

* Add Changelog

* Remove default metadata as user-agent there is overriden by grpc itself

* Merge passed channel options with the defaults