Documentation
¶
Index ¶
Constants ¶
View Source
const ( ProviderJaeger = "jaeger" ProviderZipkin = "zipkin" ProviderOtlpHttp = "otlp-http" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Conf ¶
type Conf struct { Id string // service id Name string // service name Env string // environment Endpoint string // service address }
Conf struct
func (*Conf) CreateTracerProvider ¶
func (c *Conf) CreateTracerProvider(provider, url string) (tracesdk.SpanExporter, error)
CreateTracerProvider create provider
func (*Conf) TraceProvider ¶
func (c *Conf) TraceProvider(options ...OptionFunc) *tracesdk.TracerProvider
TraceProvider create provider
func (*Conf) WithProvider ¶
func (c *Conf) WithProvider(provider string) OptionFunc
WithProvider set provider type
func (*Conf) WithSampling ¶
func (c *Conf) WithSampling(sampling float64) OptionFunc
WithSampling set sampling rate
type OptionFunc ¶
type OptionFunc func(*Option)
Click to show internal directories.
Click to hide internal directories.