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

com.github.kristofa.brave.http.BraveHttpHeaders Maven / Gradle / Ivy

Go to download

Abstraction that makes it easier to implement brave in http clients and servers.

There is a newer version: 4.13.6
Show newest version
package com.github.kristofa.brave.http;

/**
 * Contains the header keys that are used to represent trace id, span id, parent span id, sampled.
 * 

* The names correspond with the zipkin header values. *

* These can be used to submit as HTTP header in a new request. * *

See https://github.com/openzipkin/b3-propagation for details * * @deprecated Replaced by {@code Propagation.B3} from brave instead. */ @Deprecated public enum BraveHttpHeaders { /** * 128 or 64-bit trace ID lower-hex encoded into 32 or 16 characters (required) */ TraceId("X-B3-TraceId"), /** * 64-bit span ID lower-hex encoded into 16 characters (required) */ SpanId("X-B3-SpanId"), /** * 64-bit parent span ID lower-hex encoded into 16 characters (absent on root span) */ ParentSpanId("X-B3-ParentSpanId"), /** * "1" means report this span to the tracing system, "0" means do not. (absent means defer the * decision to the receiver of this header). */ Sampled("X-B3-Sampled"); private final String name; BraveHttpHeaders(final String name) { this.name = name; } public String getName() { return name; } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy