Skip to content

Commit 6997acc

Browse files
committed
add span kind support for method instrumentation
1 parent 9bd77a5 commit 6997acc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

instrumentation/methods/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/methods/MethodInstrumentation.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ public class MethodInstrumentation implements TypeInstrumentation {
4242
public MethodInstrumentation(String className, Set<String> methodNames) {
4343
this.className = className;
4444
this.internalMethodNames = filterMethodNames(className, methodNames, SpanKind.INTERNAL, true);
45-
this.serverMethodNames = filterMethodNames(className, methodNames, SpanKind.CLIENT, false);
46-
this.clientMethodNames = filterMethodNames(className, methodNames, SpanKind.SERVER, false);
45+
this.serverMethodNames = filterMethodNames(className, methodNames, SpanKind.SERVER, false);
46+
this.clientMethodNames = filterMethodNames(className, methodNames, SpanKind.CLIENT, false);
4747
}
4848

4949
private static Set<String> filterMethodNames(

0 commit comments

Comments
 (0)