com.github.kristofa.brave.EmptySpanCollector Maven / Gradle / Ivy
package com.github.kristofa.brave;
import com.twitter.zipkin.gen.Span;
/**
* A {@link SpanCollector} implementation that does nothing with collected spans.
*
* @author adriaens
*
* @deprecated replaced by {@link zipkin.reporter.Reporter#NOOP}.
*/
@Deprecated
public class EmptySpanCollector implements SpanCollector {
/**
* {@inheritDoc}
*/
@Override
public void collect(final Span span) {
// Nothing
}
/**
* {@inheritDoc}
*/
@Override
public void addDefaultAnnotation(final String key, final String value) {
// Nothing
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy