All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.kristofa.brave.EmptySpanCollector Maven / Gradle / Ivy

There is a newer version: 4.13.6
Show newest version
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