Skip to content

Send the exporter user agent in the grpc exporter #4657

@xrmx

Description

@xrmx

Describe your environment

OS: (e.g, Ubuntu)
Python version: (e.g., Python 3.9.10)
SDK version: (e.g., 1.25.0)
API version: (e.g., 1.25.0)

What happened?

The grpc exporter is currently sending the default grpc user agent (e.g. grpc-python/1.71.0 grpc-c/46.0.0 (linux; chttp2)) instead of the expected otlp one.

Steps to Reproduce

Export data with the grpc exporter and look at backend logs.

Expected Result

User agent in the form of OTel-OTLP-Exporter-Python/1.34.1

Actual Result

grpc-python/1.71.0 grpc-c/46.0.0 (linux; chttp2)

Additional context

No response

Would you like to implement a fix?

Yes

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions