Documentation ¶
Overview ¶
Package autotracer provides an OpenTelemetry TracerProvider creation function.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LookupExporter ¶ added in v0.15.2
LookupExporter creates exporter by name.
type Option ¶
type Option interface {
// contains filtered or unexported methods
}
Option applies a configuration option value to a MeterProvider.
func WithLookupExporter ¶ added in v0.15.2
func WithLookupExporter(lookup LookupExporter) Option
WithLookupExporter sets exporter lookup function.
func WithResource ¶
WithResource associates a Resource with a MeterProvider. This Resource represents the entity producing telemetry and is associated with all Meters the MeterProvider will create.
By default, if this Option is not used, the default Resource from the go.opentelemetry.io/otel/sdk/resource package will be used.
func WithWriter ¶ added in v0.7.1
WithWriter sets writer for the stderr, stdout exporters.
type ShutdownFunc ¶
func NewTracerProvider ¶
func NewTracerProvider(ctx context.Context, options ...Option) ( tracerProvider trace.TracerProvider, tracerShutdown ShutdownFunc, err error, )
Click to show internal directories.
Click to hide internal directories.