telemetry

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2024 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SeverityTrace = log.SeverityTrace
	SeverityDebug = log.SeverityDebug
	SeverityInfo  = log.SeverityInfo
	SeverityWarn  = log.SeverityWarn
	SeverityError = log.SeverityError
	SeverityFatal = log.SeverityFatal
)

Variables

This section is empty.

Functions

func CreateLogRecord

func CreateLogRecord(severity log.Severity, message string, attrs ...log.KeyValue) log.Record

CreateLogRecord is a helper function to create OpenTelemetry log records with consistent timestamp and formatting.

func NewProvider

func NewProvider(serviceName, endpoint string, secure bool, protocol string, headers map[string]string) (*sdktrace.TracerProvider, *sdkmetric.MeterProvider, *sdklog.LoggerProvider, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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