logs

package
v1.2.3 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2024 License: Apache-2.0 Imports: 11 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

Init initializes an OpenTelemetry logger with a specified configuration.

func Shutdown added in v1.2.0

func Shutdown(ctx context.Context, logProvider *sdk.LoggerProvider)

Shutdown closes the logger provider.

Types

type OtelGoLogsConfig

type OtelGoLogsConfig struct {
	Attributes []attribute.KeyValue `json:"attributes"` // Attributes specifies the attributes to be added to the logger resource. Default is an empty slice.
}

OtelGoLogsConfig specifies the configuration for the OpenTelemetry logs.

Jump to

Keyboard shortcuts

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