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
Copy file name to clipboardExpand all lines: instrumentation-api-incubator/src/main/java/io/opentelemetry/instrumentation/api/incubator/semconv/rpc/RpcAttributesGetter.java
+13-7Lines changed: 13 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -46,12 +46,18 @@ default Long getResponseSize(REQUEST request) {
46
46
* method is unavailable
47
47
*/
48
48
@Nullable
49
-
defaultStringgetFullMethod(REQUESTrequest) {
50
-
Stringservice = getService(request);
51
-
Stringmethod = getMethod(request);
52
-
if (service == null || method == null) {
53
-
returnnull;
54
-
}
55
-
returnservice + "/" + method;
49
+
defaultStringgetRpcMethod(REQUESTrequest) {
50
+
returnnull;
51
+
}
52
+
53
+
/**
54
+
* Returns whether the RPC method is a well-known method.
55
+
*
56
+
* <p>This is used to determine whether to set the {@code rpc.method} attribute to the actual
57
+
* method name, or to set it to {@code "_OTHER"} and store the actual method name in {@code
Copy file name to clipboardExpand all lines: instrumentation-api-incubator/src/main/java/io/opentelemetry/instrumentation/api/incubator/semconv/rpc/RpcCommonAttributesExtractor.java
+10-1Lines changed: 10 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -29,6 +29,9 @@ abstract class RpcCommonAttributesExtractor<REQUEST, RESPONSE>
Copy file name to clipboardExpand all lines: instrumentation-api-incubator/src/main/java/io/opentelemetry/instrumentation/api/incubator/semconv/rpc/RpcSpanNameExtractor.java
Copy file name to clipboardExpand all lines: instrumentation-api-incubator/src/test/java/io/opentelemetry/instrumentation/api/incubator/semconv/rpc/RpcAttributesExtractorTest.java
0 commit comments