Skip to content

Commit 35780bd

Browse files
committed
fix ClassCastException
1 parent 3c43c82 commit 35780bd

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

dubbo-metrics/dubbo-tracing/src/main/java/org/apache/dubbo/tracing/handler/DubboClientTracingObservationHandler.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,6 @@ public void onScopeOpened(T context) {}
3535

3636
@Override
3737
public boolean supportsContext(Observation.Context context) {
38-
return context instanceof SenderContext;
38+
return context instanceof DubboClientContext;
3939
}
4040
}

dubbo-metrics/dubbo-tracing/src/main/java/org/apache/dubbo/tracing/handler/DubboServerTracingObservationHandler.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,6 @@ public void onScopeOpened(T context) {
4646

4747
@Override
4848
public boolean supportsContext(Observation.Context context) {
49-
return context instanceof ReceiverContext;
49+
return context instanceof DubboServerContext;
5050
}
5151
}

0 commit comments

Comments
 (0)