Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix ClassCastException #14966

Open
wants to merge 4 commits into
base: 3.3
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@

import io.micrometer.observation.Observation;
import io.micrometer.observation.ObservationHandler;
import io.micrometer.observation.transport.SenderContext;
import io.micrometer.tracing.Tracer;

public class DubboClientTracingObservationHandler<T extends DubboClientContext> implements ObservationHandler<T> {
Expand All @@ -35,6 +34,6 @@ public void onScopeOpened(T context) {}

@Override
public boolean supportsContext(Observation.Context context) {
return context instanceof SenderContext;
return context instanceof DubboClientContext;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@

import io.micrometer.observation.Observation;
import io.micrometer.observation.ObservationHandler;
import io.micrometer.observation.transport.ReceiverContext;
import io.micrometer.tracing.TraceContext;
import io.micrometer.tracing.Tracer;

Expand All @@ -46,6 +45,6 @@ public void onScopeOpened(T context) {

@Override
public boolean supportsContext(Observation.Context context) {
return context instanceof ReceiverContext;
return context instanceof DubboServerContext;
}
}
Loading