Renamed the method to sampled; related to gh-1799

This commit is contained in:
Marcin Grzejszczak
2020-12-10 10:48:23 +01:00
parent 7fee2670c7
commit f5bfb1e980
4 changed files with 4 additions and 4 deletions

View File

@@ -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();
}

View File

@@ -42,7 +42,7 @@ class NoOpTraceContext implements TraceContext {
}
@Override
public Boolean isSampled() {
public Boolean sampled() {
return false;
}

View File

@@ -52,7 +52,7 @@ class BraveTraceContext implements TraceContext {
}
@Override
public Boolean isSampled() {
public Boolean sampled() {
return this.traceContext.sampled();
}

View File

@@ -100,7 +100,7 @@ class OtelTraceContext implements TraceContext {
}
@Override
public Boolean isSampled() {
public Boolean sampled() {
return this.delegate.isSampled();
}