elastic / elastic-otel-java

Apache License 2.0
14 stars 11 forks source link

override upstream distro name and version #112

Closed SylvainJuge closed 7 months ago

SylvainJuge commented 7 months ago

Override the upstream resource attributes for the agent distribution and version:

This is done by disabling the provided resource provider from upstream (DistroVersionResourceProvider) and adding our own.

Tried to use semconv java bindings, but they must match the upstream agent, and it's still using version 1.21.0, however there is already a PR to update to a more recent version: https://github.com/open-telemetry/opentelemetry-java-instrumentation/pull/10272