Documentation
¶
Index ¶
- func InitTracer(opts ...otlptracehttp.Option) error
- func InitTracerWithHoneycomb(key string, opts ...otlptracehttp.Option) error
- func LogRecoverToExit(ctx *context.Context, loc string)
- func LogRecoverToReturn(ctx *context.Context, loc string)
- func ShutdownTracer()
- func Tracer() trace.Tracer
- type UserAgentSampler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitTracer ¶
func InitTracer(opts ...otlptracehttp.Option) error
func InitTracerWithHoneycomb ¶
func InitTracerWithHoneycomb(key string, opts ...otlptracehttp.Option) error
func LogRecoverToExit ¶
LogRecoverToExit Recovers from a panic, logs and forwards it sentry and otel, then exits Does nothing when there is no panic.
func LogRecoverToReturn ¶
LogRecoverToReturn Recovers from a panic, logs and forwards it sentry and otel, then returns Does nothing when there is no panic.
func ShutdownTracer ¶
func ShutdownTracer()
nolint: contextcheck // deliberate use of local context to avoid getting tangled up in any existing timeouts or cancels
Types ¶
type UserAgentSampler ¶
type UserAgentSampler struct {
// contains filtered or unexported fields
}
func NewUserAgentSampler ¶
func NewUserAgentSampler(userAgent string, sampleRate int) *UserAgentSampler
func (*UserAgentSampler) Description ¶
func (h *UserAgentSampler) Description() string
Description returns information describing the Sampler.
func (*UserAgentSampler) ShouldSample ¶
func (h *UserAgentSampler) ShouldSample(parameters sdktrace.SamplingParameters) sdktrace.SamplingResult
ShouldSample returns a SamplingResult based on a decision made from the passed parameters.
Click to show internal directories.
Click to hide internal directories.