Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Init ¶
func Init(ctx context.Context, config OtelGoLogsConfig) (context.Context, *sdk.LoggerProvider, error)
Init initializes an OpenTelemetry logger with a specified configuration.
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.
Click to show internal directories.
Click to hide internal directories.