Fixed broken compilation

This commit is contained in:
Marcin Grzejszczak
2020-12-10 11:18:12 +01:00
parent f5bfb1e980
commit 96979e1e27
3 changed files with 2 additions and 11 deletions

View File

@@ -46,7 +46,8 @@ public interface TraceContext {
String spanId();
/**
* @return {@code true} when sampled, {@code false} when not sampled and {@code null} when sampling decision should be deferred
* @return {@code true} when sampled, {@code false} when not sampled and {@code null}
* when sampling decision should be deferred
*/
Boolean sampled();

View File

@@ -61,11 +61,6 @@ class BraveTraceContext implements TraceContext {
return this.traceContext != null ? this.traceContext.toString() : "null";
}
@Nullable
public Boolean sampled() {
return this.traceContext.sampled();
}
static brave.propagation.TraceContext toBrave(TraceContext traceContext) {
if (traceContext == null) {
return null;

View File

@@ -109,11 +109,6 @@ class OtelTraceContext implements TraceContext {
return this.delegate != null ? this.delegate.toString() : "null";
}
@Nullable
public Boolean sampled() {
return this.delegate.isSampled();
}
Span span() {
return this.span;
}