Renamed the method to sampled; related to gh-1799
This commit is contained in:
@@ -48,6 +48,6 @@ public interface TraceContext {
|
||||
/**
|
||||
* @return {@code true} when sampled, {@code false} when not sampled and {@code null} when sampling decision should be deferred
|
||||
*/
|
||||
Boolean isSampled();
|
||||
Boolean sampled();
|
||||
|
||||
}
|
||||
|
||||
@@ -42,7 +42,7 @@ class NoOpTraceContext implements TraceContext {
|
||||
}
|
||||
|
||||
@Override
|
||||
public Boolean isSampled() {
|
||||
public Boolean sampled() {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
@@ -52,7 +52,7 @@ class BraveTraceContext implements TraceContext {
|
||||
}
|
||||
|
||||
@Override
|
||||
public Boolean isSampled() {
|
||||
public Boolean sampled() {
|
||||
return this.traceContext.sampled();
|
||||
}
|
||||
|
||||
|
||||
@@ -100,7 +100,7 @@ class OtelTraceContext implements TraceContext {
|
||||
}
|
||||
|
||||
@Override
|
||||
public Boolean isSampled() {
|
||||
public Boolean sampled() {
|
||||
return this.delegate.isSampled();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user