Skip to content

Commit bf47648

Browse files
committed
wip
1 parent 62de4d1 commit bf47648

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

instrumentation/jaxrs/jaxrs-common/testing/src/main/java/io/opentelemetry/instrumentation/jaxrs/AbstractJaxRsFilterTest.java

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
package io.opentelemetry.instrumentation.jaxrs;
77

88
import static io.opentelemetry.instrumentation.testing.junit.code.SemconvCodeStabilityUtil.codeFunctionAssertions;
9-
import static io.opentelemetry.instrumentation.testing.junit.code.SemconvCodeStabilityUtil.codeFunctionSuffixAssertions;
9+
import static io.opentelemetry.instrumentation.testing.junit.code.SemconvCodeStabilityUtil.codeFunctionPrefixAssertions;
1010
import static io.opentelemetry.sdk.testing.assertj.OpenTelemetryAssertions.equalTo;
1111
import static io.opentelemetry.semconv.ErrorAttributes.ERROR_TYPE;
1212
import static io.opentelemetry.semconv.HttpAttributes.HTTP_REQUEST_METHOD;
@@ -146,7 +146,10 @@ void request(
146146
codeFunctionAssertions(
147147
"JaxRsFilterTest$PrematchRequestFilter", "filter");
148148
} else {
149-
assertions = codeFunctionAssertions("Resource$Test", "hello");
149+
assertions =
150+
codeFunctionPrefixAssertions(
151+
"io.opentelemetry.instrumentation.jaxrs.v2_0.test.Resource$Test",
152+
"hello");
150153
}
151154
span.hasAttributesSatisfyingExactly(assertions);
152155
}));
@@ -182,6 +185,8 @@ void nestedCall() throws Exception {
182185
.hasKind(SpanKind.INTERNAL)
183186
.hasParent(trace.getSpan(0))
184187
.hasAttributesSatisfyingExactly(
185-
codeFunctionSuffixAssertions("Resource$Test", "nested"))));
188+
codeFunctionPrefixAssertions(
189+
"io.opentelemetry.instrumentation.jaxrs.v2_0.test.Resource$Test",
190+
"nested"))));
186191
}
187192
}

0 commit comments

Comments
 (0)