package rocks.inspectit.agent.java.tracing.core.adapter; import io.opentracing.propagation.Format; /** * Server request requestAdapter works together with the * {@link rocks.inspectit.agent.java.tracing.core.ServerInterceptor} in order to correctly retrieve * data from the server request. The requestAdapter is responsible for providing opentracing format * and carrier that can provide baggage that is propagated as well as for providing the basic * information about the request as propagation type and tags associated with the request. * <p> * This class is inspired by the Zipkin/Brave implementation, but is adapted to our needs. * * @param <C> * type of the carrier provided by this adapter * @author Ivan Senic * */ public interface ServerRequestAdapter<C> extends RequestAdapter { /** * Format that the carrier supports. * * @return Format that the carrier supports. */ Format<C> getFormat(); /** * Carrier for extracting the baggage. * * @return carrier */ C getCarrier(); }