Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type LookupExporter ¶ added in v0.16.0
LookupExporter creates exporter by name.
type Option ¶ added in v0.16.0
type Option interface {
// contains filtered or unexported methods
}
Option applies a configuration option value to a LoggerProvider.
func WithLookupExporter ¶ added in v0.16.0
func WithLookupExporter(lookup LookupExporter) Option
WithLookupExporter sets exporter lookup function.
func WithResource ¶ added in v0.16.0
WithResource associates a Resource with a LoggerProvider. This Resource represents the entity producing telemetry and is associated with all Meters the LoggerProvider 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.16.0
WithWriter sets writer for the stderr, stdout exporters.
type ShutdownFunc ¶ added in v0.16.0
ShutdownFunc is a function that shuts down the MeterProvider.
func NewLoggerProvider ¶ added in v0.16.0
func NewLoggerProvider(ctx context.Context, options ...Option) ( meterProvider log.LoggerProvider, meterShutdown ShutdownFunc, err error, )
NewLoggerProvider initializes new log.LoggerProvider with the given options from environment variables.