trace

package
v2.26.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 20, 2024 License: Apache-2.0 Imports: 14 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Propagator is the default Reva propagator.
	Propagator = propagation.NewCompositeTextMapPropagator(propagation.Baggage{}, propagation.TraceContext{})
)

Functions

func ContextGetTracerProvider added in v2.6.0

func ContextGetTracerProvider(ctx context.Context) trace.TracerProvider

ContextGetTracerProvider returns the TracerProvider associated with the ctx. If no TracerProvider is associated is associated, the global default TracerProvider is returned

func ContextSetTracerProvider added in v2.6.0

func ContextSetTracerProvider(ctx context.Context, p trace.TracerProvider) context.Context

ContextSetTracerProvider returns a copy of ctx with p associated.

func DefaultProvider added in v2.6.0

func DefaultProvider() trace.TracerProvider

DefaultProvider returns the "global" default TracerProvider Currently used by the pool to get the global tracer

func InitDefaultTracerProvider deprecated added in v2.6.0

func InitDefaultTracerProvider(collector, endpoint string)

InitDefaultTracerProvider initializes a global default jaeger TracerProvider at a package level.

Deprecated: Use NewTracerProvider and SetDefaultTracerProvider to properly initialize a tracer provider with options

func NewTracerProvider added in v2.14.0

func NewTracerProvider(opts ...Option) trace.TracerProvider

NewTracerProvider returns a new TracerProvider, configure for the specified service

func SetDefaultTracerProvider added in v2.14.0

func SetDefaultTracerProvider(tp trace.TracerProvider)

SetDefaultTracerProvider sets the default trace provider

Types

type Option added in v2.14.0

type Option func(o *Options)

Option for trace

func WithCollector added in v2.14.0

func WithCollector(v string) Option

WithCollector option Deprecated: unused

func WithEnabled added in v2.14.0

func WithEnabled() Option

WithEnabled option

func WithEndpoint added in v2.14.0

func WithEndpoint(v string) Option

WithEndpoint option

func WithExporter added in v2.14.0

func WithExporter(v string) Option

WithExporter option Deprecated: unused

func WithInsecure added in v2.14.0

func WithInsecure() Option

WithInsecure option

func WithServiceName added in v2.14.0

func WithServiceName(v string) Option

WithServiceName option

func WithTransportCredentials added in v2.19.0

func WithTransportCredentials(v credentials.TransportCredentials) Option

WithTransportCredentials option

type Options added in v2.14.0

type Options struct {
	Enabled              bool
	Insecure             bool
	Exporter             string
	Collector            string
	Endpoint             string
	ServiceName          string
	TransportCredentials credentials.TransportCredentials
}

Options for trace

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL