Skip to content

Commit 4a3ac25

Browse files
committed
Fix failing MessagingSpanNameExtractorTest
1 parent fcfd92b commit 4a3ac25

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

instrumentation-api-incubator/src/test/java/io/opentelemetry/instrumentation/api/incubator/semconv/messaging/MessagingSpanNameExtractorTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ void shouldExtractSpanName(
4848
} else {
4949
lenient().when(getter.getDestination(message)).thenReturn(destinationName);
5050
}
51-
when(getter.getOperationName(message)).thenReturn(operation.operationType());
51+
when(getter.getOperationName(message, operation)).thenReturn(operation.operationType());
5252

5353
lenient().when(serverAttributesGetter.getServerPort(message)).thenReturn(1234);
5454
lenient().when(serverAttributesGetter.getServerAddress(message)).thenReturn("127.0.0.1");

0 commit comments

Comments
 (0)