GoogleCloudPlatform / opentelemetry-operations-java

Apache License 2.0
71 stars 41 forks source link

Service name does not appear in metric labels when using auto-instrumentation #313

Closed psx95 closed 5 months ago

psx95 commented 5 months ago

The metrics produced by auto-instrumentation do not show service name in the metric labels in Metrics Explorer in GCP Console.

The service name is set using the JVM Args - '-Dotel.service.name=<service_name>', and shows up in the trace attributes, but does not show up in the metric labels.