Skip to content

[exporter/elasticsearch] Set user-agent header #29898

@strawgate

Description

@strawgate

Component(s)

exporter/elasticsearch

Is your feature request related to a problem? Please describe.

The Elasticsearch exporter doesn't set the User-Agent header in the outgoing HTTP requests it makes, but it should.

Describe the solution you'd like

Following the pattern set in the otlphttpexporter, it should use fmt.Sprintf("%s/%s (%s/%s)", set.BuildInfo.Description, set.BuildInfo.Version, runtime.GOOS, runtime.GOARCH) as the user agent value.

Describe alternatives you've considered

No response

Additional context

No response

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions