logs

package
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 8, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL