Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewLoggerProvider ¶
func NewLoggerProvider(ctx context.Context, opts ...LoggerProviderOption) *sdk.LoggerProvider
NewLoggerProvider will autoconfigure exporters and create logger provider
Types ¶
type LoggerProviderOption ¶
type LoggerProviderOption interface {
// contains filtered or unexported methods
}
LoggerProviderOption configures a LoggerProvider.
func WithLogRecordProcessors ¶
func WithLogRecordProcessors(logsProcessors []sdk.LogRecordProcessor) LoggerProviderOption
WithLogRecordProcessors will configure processor to process logs
func WithResource ¶
func WithResource(r *resource.Resource) LoggerProviderOption
WithResource will configure OTLP logger with common resource attributes.
Parameters: r (*resource.Resource) list of resources will be added to every log as resource level tags
Click to show internal directories.
Click to hide internal directories.