com.instana.opentracing.InstanaNoopSpan Maven / Gradle / Ivy
package com.instana.opentracing;
import io.opentracing.Span;
import io.opentracing.SpanContext;
import java.util.Collections;
import java.util.Map;
class InstanaNoopSpan implements Span, SpanContext {
static final Span INSTANCE = new InstanaNoopSpan();
@Override
public SpanContext context() {
return this;
}
@Override
public Iterable> baggageItems() {
return Collections.emptyMap().entrySet();
}
@Override
public void finish() {
}
@Override
public void finish(long finishMicros) {
}
@Override
public void close() {
}
@Override
public Span setTag(String key, String value) {
return this;
}
@Override
public Span setTag(String key, boolean value) {
return this;
}
@Override
public Span setTag(String key, Number value) {
return this;
}
@Override
public Span log(Map fields) {
return this;
}
@Override
public Span log(long timestampMicroseconds, Map fields) {
return this;
}
@Override
public Span log(String event) {
return this;
}
@Override
public Span log(long timestampMicroseconds, String event) {
return this;
}
@Override
public Span setBaggageItem(String key, String value) {
return this;
}
@Override
public String getBaggageItem(String key) {
return null;
}
@Override
public Span setOperationName(String operationName) {
return this;
}
@Override
public Span log(String eventName, Object payload) {
return this;
}
@Override
public Span log(long timestampMicroseconds, String eventName, Object payload) {
return this;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy