open-telemetry / opentelemetry-java-instrumentation

OpenTelemetry auto-instrumentation and instrumentation libraries for Java
https://opentelemetry.io
Apache License 2.0
1.93k stars 843 forks source link

instrumentationScopeName can't custom? #8301

Closed daoweili closed 1 year ago

daoweili commented 1 year ago

Describe the bug When I use a custom meter and set instrumentationScopeNameļ¼Œbut the scopeName is not effective. i used version is 1.24.0.

Steps to reproduce image image image

image

How can i get the right scopeName?

trask commented 1 year ago

hi @daoweili! are you using the Java agent or no? is this only a problem for metrics or also for traces (spans)?

daoweili commented 1 year ago

hi @trask! yes, i used the Java agent, this problem is only in the metrics.

daoweili commented 1 year ago

hi @trask! yes, i used the Java agent, this problem is only in the metrics.

this problem is in the clickhouse exporter, i compared the column of Kafka and Clickhouse.