Skip to content

Commit

Permalink
change rpc type in apache dubbo (open-telemetry#5432)
Browse files Browse the repository at this point in the history
* change rpc type in apache dubbo

* fix dubbo test

* fix test
  • Loading branch information
tydhot authored and RashmiRam committed May 23, 2022
1 parent a4a06fa commit fed50dd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ enum DubboRpcAttributesGetter implements RpcAttributesGetter<DubboRequest> {

@Override
public String system(DubboRequest request) {
return "dubbo";
return "apache_dubbo";
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ abstract class AbstractDubboTest extends InstrumentationSpecification {
kind CLIENT
childOf span(0)
attributes {
"$SemanticAttributes.RPC_SYSTEM" "dubbo"
"$SemanticAttributes.RPC_SYSTEM" "apache_dubbo"
"$SemanticAttributes.RPC_SERVICE" "org.apache.dubbo.rpc.service.GenericService"
"$SemanticAttributes.RPC_METHOD" "\$invoke"
"$SemanticAttributes.NET_PEER_NAME" "localhost"
Expand All @@ -109,7 +109,7 @@ abstract class AbstractDubboTest extends InstrumentationSpecification {
kind SERVER
childOf span(1)
attributes {
"$SemanticAttributes.RPC_SYSTEM" "dubbo"
"$SemanticAttributes.RPC_SYSTEM" "apache_dubbo"
"$SemanticAttributes.RPC_SERVICE" "io.opentelemetry.instrumentation.apachedubbo.v2_7.api.HelloService"
"$SemanticAttributes.RPC_METHOD" "hello"
"$SemanticAttributes.NET_PEER_IP" String
Expand Down Expand Up @@ -168,7 +168,7 @@ abstract class AbstractDubboTest extends InstrumentationSpecification {
kind CLIENT
childOf span(0)
attributes {
"$SemanticAttributes.RPC_SYSTEM" "dubbo"
"$SemanticAttributes.RPC_SYSTEM" "apache_dubbo"
"$SemanticAttributes.RPC_SERVICE" "org.apache.dubbo.rpc.service.GenericService"
"$SemanticAttributes.RPC_METHOD" "\$invokeAsync"
"$SemanticAttributes.NET_PEER_NAME" "localhost"
Expand All @@ -180,7 +180,7 @@ abstract class AbstractDubboTest extends InstrumentationSpecification {
kind SERVER
childOf span(1)
attributes {
"$SemanticAttributes.RPC_SYSTEM" "dubbo"
"$SemanticAttributes.RPC_SYSTEM" "apache_dubbo"
"$SemanticAttributes.RPC_SERVICE" "io.opentelemetry.instrumentation.apachedubbo.v2_7.api.HelloService"
"$SemanticAttributes.RPC_METHOD" "hello"
"$SemanticAttributes.NET_PEER_IP" String
Expand Down

0 comments on commit fed50dd

Please sign in to comment.