You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
using spring-petclinic application and run testInitCreationForm test (WebMvcTest) I found out that the span name I created in the test was overridden with the name "GET /owners/new"
Running WebMvcTest test using the following configuration:
JAVA_TOOL_OPTIONS: -javaagent:/opentelemetry-javaagent.jar
-Dotel.exporter.otlp.traces.endpoint=ObservabilityURL
-Dotel.javaagent.experimental.field-injection.enabled=false
-Dotel.traces.exporter=otlp
-Dotel.metrics.exporter=none
-Dotel.instrumentation.experimental.span-suppression-strategy=none
-Dotel.service.name=spring-petclinic
using opentelemetry-javaagent - version: 1.32.0
Steps to reproduce
use spring-petclinic repository
modify test name "testInitCreationForm" and add @WithSpan() annotation
run test with the following configuration:
test using the following configuration:
JAVA_TOOL_OPTIONS: -javaagent:/opentelemetry-javaagent.jar
-Dotel.exporter.otlp.traces.endpoint=ObservabilityURL
-Dotel.javaagent.experimental.field-injection.enabled=false
-Dotel.traces.exporter=otlp
-Dotel.metrics.exporter=none
-Dotel.instrumentation.experimental.span-suppression-strategy=none
-Dotel.service.name=spring-petclinic
And observe the following trace:
the span name was overridden with the name "GET /owners/new"
Expected behavior
my span name should not be changed
Actual behavior
span name changed to: GET /owners/new
Javaagent or library instrumentation version
1.32.0
Environment
:: Built with Spring Boot :: 3.2.0
Java 17.0.7
macos
Additional context
No response
The text was updated successfully, but these errors were encountered:
shaykeren
changed the title
My internal span name is being overridden by opentelemetry-javaagent
Internal span name is being overridden by opentelemetry-javaagent
Jan 18, 2024
@laurit submitted a fix for this already (linked above). If you are able to build a snapshot from the PR branch and verify it resolves your issue that could be helpful.
Describe the bug
using spring-petclinic application and run testInitCreationForm test (WebMvcTest) I found out that the span name I created in the test was overridden with the name "GET /owners/new"
Running WebMvcTest test using the following configuration:
JAVA_TOOL_OPTIONS: -javaagent:/opentelemetry-javaagent.jar
-Dotel.exporter.otlp.traces.endpoint=ObservabilityURL
-Dotel.javaagent.experimental.field-injection.enabled=false
-Dotel.traces.exporter=otlp
-Dotel.metrics.exporter=none
-Dotel.instrumentation.experimental.span-suppression-strategy=none
-Dotel.service.name=spring-petclinic
using opentelemetry-javaagent - version: 1.32.0
Steps to reproduce
test using the following configuration:
JAVA_TOOL_OPTIONS: -javaagent:/opentelemetry-javaagent.jar
-Dotel.exporter.otlp.traces.endpoint=ObservabilityURL
-Dotel.javaagent.experimental.field-injection.enabled=false
-Dotel.traces.exporter=otlp
-Dotel.metrics.exporter=none
-Dotel.instrumentation.experimental.span-suppression-strategy=none
-Dotel.service.name=spring-petclinic
And observe the following trace:
the span name was overridden with the name "GET /owners/new"
Expected behavior
my span name should not be changed
Actual behavior
span name changed to: GET /owners/new
Javaagent or library instrumentation version
1.32.0
Environment
:: Built with Spring Boot :: 3.2.0
Java 17.0.7
macos
Additional context
No response
The text was updated successfully, but these errors were encountered: