Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Initialize ¶
func Initialize(options ...TracerOptionFunc) (io.Closer, error)
Initialize create an instance of Jaeger Tracer and sets it as GlobalTracer.
Types ¶
type SamplerType ¶
type SamplerType string
const ( ConstantSampler SamplerType = jaeger.SamplerTypeConst ProbabilisticSampler SamplerType = jaeger.SamplerTypeProbabilistic RateLimitingSampler SamplerType = jaeger.SamplerTypeRateLimiting RemoteSampler SamplerType = jaeger.SamplerTypeRemote )
type Span ¶
type Span struct {
opentracing.Span
}
func SpanFromContext ¶
func StartSpanFromContext ¶
func (*Span) HandleError ¶
func (*Span) SetHTTPResponseStatus ¶
type SpanOptionFunc ¶
type SpanOptionFunc func(*SpanOptions)
func WithCustomResource ¶
func WithCustomResource(resource types.NamespacedName) SpanOptionFunc
func WithOperationName ¶
func WithOperationName(operation string) SpanOptionFunc
type SpanOptions ¶
type SpanOptions struct {
// contains filtered or unexported fields
}
func (*SpanOptions) Operation ¶
func (o *SpanOptions) Operation() string
type TracerOptionFunc ¶
type TracerOptionFunc func(*config.Configuration) error
func WithEndpoint ¶
func WithEndpoint(endpoint string) TracerOptionFunc
func WithSamplerParam ¶
func WithSamplerParam(samplerParam float64) TracerOptionFunc
func WithSamplerType ¶
func WithSamplerType(samplerType SamplerType) TracerOptionFunc
func WithServiceName ¶
func WithServiceName(service string) TracerOptionFunc
Click to show internal directories.
Click to hide internal directories.