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

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

The newest version!
package com.github.kristofa.brave;

import com.github.kristofa.brave.internal.Nullable;
import com.twitter.zipkin.gen.Span;

/**
 * Maintains state for a single local span. This means nesting is not supported.
 *
 * 

Local spans can be at the following locations in the span tree. *

    *
  • The root-span of a trace originated by Brave
  • *
  • A child of a server span originated by Brave
  • *
*/ public interface LocalSpanState extends CommonSpanState { /** * Gets the Span for the local request that was started as part of current request. *

* Should be thread-aware to support multiple parallel requests. * * @return Local request span for current thread. */ @Nullable Span getCurrentLocalSpan(); /** * Sets current local span. *

* Should be thread-aware to support multiple parallel requests. * * @param span Local span. */ void setCurrentLocalSpan(Span span); }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy