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: 3.7.0
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. * * @author kristof */ public enum BraveHttpHeaders { /** * Trace id http header field name. */ TraceId("X-B3-TraceId"), /** * Span id http header field name. */ SpanId("X-B3-SpanId"), /** * Parent span id http header field name. */ ParentSpanId("X-B3-ParentSpanId"), /** * Sampled http header field name. Indicates if this trace should be sampled or not. */ 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