Documentation ¶
Index ¶
- Variables
- type Logger
- type Meter
- type MeterConfiguration
- type MetricConfiguration
- type Tracer
- func (x Tracer) ForceFlush(ctx context.Context) error
- func (x Tracer) RegisterSpanProcessor(s sdk_trace.SpanProcessor)
- func (x Tracer) Shutdown(ctx context.Context) error
- func (x Tracer) UnregisterSpanProcessor(s sdk_trace.SpanProcessor)
- func (t *Tracer) WithContext(ctx context.Context) context.Context
- type TracerConfiguration
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Attribute attr Attr attr Code code )
Functions ¶
This section is empty.
Types ¶
type Meter ¶
func MetricMeter ¶ added in v0.6.2
func MetricMeter(ctx context.Context, c ...*MeterConfiguration) *Meter
type MeterConfiguration ¶
type MetricConfiguration ¶ added in v0.6.2
func (MetricConfiguration) MetricCounter ¶ added in v0.6.2
type Tracer ¶
func (Tracer) ForceFlush ¶
func (Tracer) RegisterSpanProcessor ¶
func (x Tracer) RegisterSpanProcessor(s sdk_trace.SpanProcessor)
func (Tracer) UnregisterSpanProcessor ¶
func (x Tracer) UnregisterSpanProcessor(s sdk_trace.SpanProcessor)
type TracerConfiguration ¶
type TracerConfiguration struct { Name string Jaeger struct{ URL string } OTLP struct { GRPC struct { Compression string Endpoint string Headers map[string]string ReconnectionPeriod time.Duration Retry struct { // Enabled indicates whether to not retry sending batches in case of // export failure. Enabled bool // InitialInterval the time to wait after the first failure before // retrying. InitialInterval time.Duration // MaxInterval is the upper bound on backoff interval. Once this value is // reached the delay between consecutive retries will always be // `MaxInterval`. MaxInterval time.Duration // MaxElapsedTime is the maximum amount of time (including retries) spent // trying to send a request/batch. Once this value is reached, the data // is discarded. MaxElapsedTime time.Duration } // Timeout sets the max amount of time a client will attempt to export a // batch of spans. This takes precedence over any retry settings defined with // WithRetry, once this time limit has been reached the export is abandoned // and the batch of spans is dropped. // // If unset, the default timeout will be set to 10 seconds. Timeout time.Duration } HTTP struct { Compression string Endpoint string Headers map[string]string Retry struct { // Enabled indicates whether to not retry sending batches in case of // export failure. Enabled bool // InitialInterval the time to wait after the first failure before // retrying. InitialInterval time.Duration // MaxInterval is the upper bound on backoff interval. Once this value is // reached the delay between consecutive retries will always be // `MaxInterval`. MaxInterval time.Duration // MaxElapsedTime is the maximum amount of time (including retries) spent // trying to send a request/batch. Once this value is reached, the data // is discarded. MaxElapsedTime time.Duration } // Timeout tells the driver the max waiting time for the backend to process // each spans batch. If unset, the default will be 10 seconds. Timeout time.Duration // URLPath allows one to override the default URL path used // for sending traces. If unset, default ("/v1/traces") will be used. URLPath string } } }
Click to show internal directories.
Click to hide internal directories.