2018-08-01 11:52:03 +00:00
|
|
|
// Copyright (c) 2017 Uber Technologies, Inc.
|
2018-01-10 16:48:04 +00:00
|
|
|
//
|
2018-08-01 11:52:03 +00:00
|
|
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
// you may not use this file except in compliance with the License.
|
|
|
|
// You may obtain a copy of the License at
|
2018-01-10 16:48:04 +00:00
|
|
|
//
|
2018-08-01 11:52:03 +00:00
|
|
|
// http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
//
|
|
|
|
// Unless required by applicable law or agreed to in writing, software
|
|
|
|
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
// See the License for the specific language governing permissions and
|
|
|
|
// limitations under the License.
|
2018-01-10 16:48:04 +00:00
|
|
|
|
|
|
|
package jaeger
|
|
|
|
|
|
|
|
const (
|
|
|
|
// JaegerClientVersion is the version of the client library reported as Span tag.
|
2019-04-05 09:58:06 +00:00
|
|
|
JaegerClientVersion = "Go-2.16.0"
|
2018-01-10 16:48:04 +00:00
|
|
|
|
|
|
|
// JaegerClientVersionTagKey is the name of the tag used to report client version.
|
|
|
|
JaegerClientVersionTagKey = "jaeger.version"
|
|
|
|
|
|
|
|
// JaegerDebugHeader is the name of HTTP header or a TextMap carrier key which,
|
|
|
|
// if found in the carrier, forces the trace to be sampled as "debug" trace.
|
|
|
|
// The value of the header is recorded as the tag on the root span, so that the
|
|
|
|
// trace can be found in the UI using this value as a correlation ID.
|
|
|
|
JaegerDebugHeader = "jaeger-debug-id"
|
|
|
|
|
|
|
|
// JaegerBaggageHeader is the name of the HTTP header that is used to submit baggage.
|
|
|
|
// It differs from TraceBaggageHeaderPrefix in that it can be used only in cases where
|
|
|
|
// a root span does not exist.
|
|
|
|
JaegerBaggageHeader = "jaeger-baggage"
|
|
|
|
|
|
|
|
// TracerHostnameTagKey used to report host name of the process.
|
|
|
|
TracerHostnameTagKey = "hostname"
|
|
|
|
|
|
|
|
// TracerIPTagKey used to report ip of the process.
|
|
|
|
TracerIPTagKey = "ip"
|
|
|
|
|
2018-08-01 11:52:03 +00:00
|
|
|
// TracerUUIDTagKey used to report UUID of the client process.
|
|
|
|
TracerUUIDTagKey = "client-uuid"
|
|
|
|
|
2018-01-10 16:48:04 +00:00
|
|
|
// SamplerTypeTagKey reports which sampler was used on the root span.
|
|
|
|
SamplerTypeTagKey = "sampler.type"
|
|
|
|
|
|
|
|
// SamplerParamTagKey reports the parameter of the sampler, like sampling probability.
|
|
|
|
SamplerParamTagKey = "sampler.param"
|
|
|
|
|
2018-08-01 11:52:03 +00:00
|
|
|
// TraceContextHeaderName is the http header name used to propagate tracing context.
|
2018-01-10 16:48:04 +00:00
|
|
|
// This must be in lower-case to avoid mismatches when decoding incoming headers.
|
2018-08-01 11:52:03 +00:00
|
|
|
TraceContextHeaderName = "uber-trace-id"
|
|
|
|
|
|
|
|
// TracerStateHeaderName is deprecated.
|
|
|
|
// Deprecated: use TraceContextHeaderName
|
|
|
|
TracerStateHeaderName = TraceContextHeaderName
|
2018-01-10 16:48:04 +00:00
|
|
|
|
|
|
|
// TraceBaggageHeaderPrefix is the prefix for http headers used to propagate baggage.
|
|
|
|
// This must be in lower-case to avoid mismatches when decoding incoming headers.
|
|
|
|
TraceBaggageHeaderPrefix = "uberctx-"
|
|
|
|
|
|
|
|
// SamplerTypeConst is the type of sampler that always makes the same decision.
|
|
|
|
SamplerTypeConst = "const"
|
|
|
|
|
|
|
|
// SamplerTypeRemote is the type of sampler that polls Jaeger agent for sampling strategy.
|
|
|
|
SamplerTypeRemote = "remote"
|
|
|
|
|
|
|
|
// SamplerTypeProbabilistic is the type of sampler that samples traces
|
|
|
|
// with a certain fixed probability.
|
|
|
|
SamplerTypeProbabilistic = "probabilistic"
|
|
|
|
|
|
|
|
// SamplerTypeRateLimiting is the type of sampler that samples
|
|
|
|
// only up to a fixed number of traces per second.
|
|
|
|
SamplerTypeRateLimiting = "ratelimiting"
|
|
|
|
|
|
|
|
// SamplerTypeLowerBound is the type of sampler that samples
|
2018-08-01 11:52:03 +00:00
|
|
|
// at least a fixed number of traces per second.
|
2018-01-10 16:48:04 +00:00
|
|
|
SamplerTypeLowerBound = "lowerbound"
|
2018-08-01 11:52:03 +00:00
|
|
|
|
|
|
|
// DefaultUDPSpanServerHost is the default host to send the spans to, via UDP
|
|
|
|
DefaultUDPSpanServerHost = "localhost"
|
|
|
|
|
|
|
|
// DefaultUDPSpanServerPort is the default port to send the spans to, via UDP
|
|
|
|
DefaultUDPSpanServerPort = 6831
|
2019-02-05 17:20:03 +00:00
|
|
|
|
|
|
|
// DefaultMaxTagValueLength is the default max length of byte array or string allowed in the tag value.
|
|
|
|
DefaultMaxTagValueLength = 256
|
2018-01-10 16:48:04 +00:00
|
|
|
)
|