Closed fede843 closed 6 months ago
@zeitlinger could you take a look
instance
is mapped from service.instance.id
- which is indeed populated with a random value.
You can change that value by setting the service.instance.id
resource attribute.
However, doing so is not recommended. The instance should be different if you have 2 different instances of you app running.
This has been automatically marked as stale because it has been marked as needing author feedback and has not had any activity for 7 days. It will be closed automatically if there is no response from the author within 7 additional days from this comment.
Yes, we are misusing the attribute. Will change it to something else. Thanks!
Describe the bug
When updating to 2.3.0 we stopped receiving the instance label. This has affected metrics, traces and profiling. The whole stack that passes thru the otel agent. We are gathering all signals per server using grafana agent.
Steps to reproduce
have this basic river config for metrics:
Then a Java app with the jar in docker, simple configuration
Expected behavior
When using 2.2.0 or bellow I get this kind of metrics with the proper tags:
The label injection works just as expected.
Actual behavior
When moving to 2.3.0 I get
The instance label is coming with an unwanted value.
For traces it is analogue.
Javaagent or library instrumentation version
2.3.0
Environment
Using docker 25.0.3-ce. Grafana Agent: v0.40.4 Prometheus: v2.51.2 Java apps: one app Java 8 the other 17.
Additional context
Most likely related to https://github.com/open-telemetry/opentelemetry-java-instrumentation/pull/11071