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

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

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

import com.twitter.zipkin.gen.Span;

/**
 * Maintains state for a single client span.
 *
 * 

Client 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
  • *
  • A child of a local span originated by Brave
  • *
* * @author kristof */ public interface ClientSpanState extends CommonSpanState { /** * Gets the Span for the client request that was started as part of current request. *

* Should be thread-aware to support multiple parallel requests. * * @return Client request span for current thread. */ Span getCurrentClientSpan(); /** * Sets current client span. *

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





© 2015 - 2024 Weber Informatics LLC | Privacy Policy