Documentation
¶
Index ¶
- func StartCacheSpanFromContext(ctx context.Context, tracer CacheTracer, operation, method string, ...) (context.Context, otr.Span)
- func StartDatabaseSpanFromContext(ctx context.Context, tracer DatabaseTracer, operation, method string, ...) (context.Context, otr.Span)
- func StartSpanFromContext(ctx context.Context, tracer otr.Tracer, kind, operation, method string, ...) (context.Context, otr.Span)
- func StartTransportSpanFromContext(ctx context.Context, tracer TransportTracer, operation, method string, ...) (context.Context, otr.Span)
- type CacheTracer
- type Config
- type DatabaseTracer
- type TransportTracer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func StartCacheSpanFromContext ¶ added in v1.52.0
func StartCacheSpanFromContext(ctx context.Context, tracer CacheTracer, operation, method string, opts ...otr.StartSpanOption) (context.Context, otr.Span)
StartCacheSpanFromContext for opentracing. nolint:ireturn
func StartDatabaseSpanFromContext ¶ added in v1.52.0
func StartDatabaseSpanFromContext(ctx context.Context, tracer DatabaseTracer, operation, method string, opts ...otr.StartSpanOption) (context.Context, otr.Span)
StartDatabaseSpanFromContext for opentracing. nolint:ireturn
func StartSpanFromContext ¶
func StartSpanFromContext(ctx context.Context, tracer otr.Tracer, kind, operation, method string, opts ...otr.StartSpanOption) (context.Context, otr.Span)
StartSpanFromContext for opentracing. nolint:ireturn
func StartTransportSpanFromContext ¶ added in v1.52.0
func StartTransportSpanFromContext(ctx context.Context, tracer TransportTracer, operation, method string, opts ...otr.StartSpanOption) (context.Context, otr.Span)
StartTransportSpanFromContext for opentracing. nolint:ireturn
Types ¶
type CacheTracer ¶ added in v1.52.0
CacheTracer for opentracing.
func NewDataDogCacheTracer ¶ added in v1.52.0
NewDataDogCacheTracer for opentracing. nolint:ireturn
func NewJaegerCacheTracer ¶ added in v1.52.0
func NewJaegerCacheTracer(lc fx.Lifecycle, logger *zap.Logger, cfg *jaeger.Config) (CacheTracer, error)
NewJaegerCacheTracer for opentracing. nolint:ireturn
type DatabaseTracer ¶ added in v1.52.0
DatabaseTracer for opentracing.
func NewDataDogDatabaseTracer ¶ added in v1.52.0
func NewDataDogDatabaseTracer(lc fx.Lifecycle, logger *zap.Logger, cfg *datadog.Config) DatabaseTracer
NewDataDogDatabaseTracer for opentracing. nolint:ireturn
func NewJaegerDatabaseTracer ¶ added in v1.52.0
func NewJaegerDatabaseTracer(lc fx.Lifecycle, logger *zap.Logger, cfg *jaeger.Config) (DatabaseTracer, error)
NewJaegerDatabaseTracer for opentracing. nolint:ireturn
type TransportTracer ¶ added in v1.52.0
TransportTracer for opentracing.
func NewDataDogTransportTracer ¶ added in v1.52.0
func NewDataDogTransportTracer(lc fx.Lifecycle, logger *zap.Logger, cfg *datadog.Config) TransportTracer
NewDataDogTransportTracer for opentracing. nolint:ireturn
func NewJaegerTransportTracer ¶ added in v1.52.0
func NewJaegerTransportTracer(lc fx.Lifecycle, logger *zap.Logger, cfg *jaeger.Config) (TransportTracer, error)
NewJaegerTransportTracer for opentracing. nolint:ireturn