diff --git a/instrumentation/opentelemetry-extension-annotations-1.0/javaagent/src/test/java/io/opentelemetry/test/annotation/WithSpanInstrumentationTest.java b/instrumentation/opentelemetry-extension-annotations-1.0/javaagent/src/test/java/io/opentelemetry/test/annotation/WithSpanInstrumentationTest.java index 9b57e1c860e1..9736f67c387a 100644 --- a/instrumentation/opentelemetry-extension-annotations-1.0/javaagent/src/test/java/io/opentelemetry/test/annotation/WithSpanInstrumentationTest.java +++ b/instrumentation/opentelemetry-extension-annotations-1.0/javaagent/src/test/java/io/opentelemetry/test/annotation/WithSpanInstrumentationTest.java @@ -128,7 +128,7 @@ void multipleSpans() throws Exception { assertThat(span) .hasName("TracedWithSpan.server") .hasKind(SpanKind.SERVER) - .hasParentSpanId(SpanId.getInvalid()) + .hasNoParent() .hasAttributesSatisfying( attributes -> assertThat(attributes)