Describe the bug
With #30033 I expected autoconfiguration work for properties listed here https://github.com/quarkusio/quarkus/blob/main/extensions/opentelemetry/runtime/src/main/java/io/quarkus/opentelemetry/runtime/config/OTelFallbackConfigSourceInterceptor.java#L85 and OTEL documentation says that otel.service.name should have preference over otel.resource.attributes. However, Quarkus OpenTelemetry extension creates Tracer resource directly and is using Quarkus application name (or artifact if not available)
|
ResourceAttributes.SERVICE_NAME, serviceName, |
|
return new TracerResourceBuildItem(recorder.createResource(Version.getVersion(), serviceName, serviceVersion)); |
Expected behavior
Quarkus documentation says otel.service.name should have priority
|
* Specify logical service name. Takes precedence over service.name defined with otel.resource.attributes |
Actual behavior
Quarkus application name is used.
How to Reproduce?
Define otel.service.name and check traces (I'm using Jaeger). IMHO it's straight forward, but ping me if you really need one.
Output of uname -a or ver
No response
Output of java -version
No response
GraalVM version (if different from Java)
No response
Quarkus version or git rev
999-SNAPSHOT
Build tool (ie. output of mvnw --version or gradlew --version)
No response
Additional information
No response
Describe the bug
With #30033 I expected autoconfiguration work for properties listed here https://github.com/quarkusio/quarkus/blob/main/extensions/opentelemetry/runtime/src/main/java/io/quarkus/opentelemetry/runtime/config/OTelFallbackConfigSourceInterceptor.java#L85 and OTEL documentation says that
otel.service.nameshould have preference overotel.resource.attributes. However, Quarkus OpenTelemetry extension creates Tracer resource directly and is using Quarkus application name (or artifact if not available)quarkus/extensions/opentelemetry/runtime/src/main/java/io/quarkus/opentelemetry/runtime/tracing/TracerRecorder.java
Line 52 in 43a5358
quarkus/extensions/opentelemetry/deployment/src/main/java/io/quarkus/opentelemetry/deployment/tracing/TracerProcessor.java
Line 158 in 43a5358
Expected behavior
Quarkus documentation says
otel.service.nameshould have priorityquarkus/extensions/opentelemetry/runtime/src/main/java/io/quarkus/opentelemetry/runtime/config/runtime/OTelRuntimeConfig.java
Line 52 in 43a5358
Actual behavior
Quarkus application name is used.
How to Reproduce?
Define
otel.service.nameand check traces (I'm using Jaeger). IMHO it's straight forward, but ping me if you really need one.Output of
uname -aorverNo response
Output of
java -versionNo response
GraalVM version (if different from Java)
No response
Quarkus version or git rev
999-SNAPSHOT
Build tool (ie. output of
mvnw --versionorgradlew --version)No response
Additional information
No response