telemetry

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2025 License: Apache-2.0 Imports: 23 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateLoggerWithTelemetry added in v0.9.0

func CreateLoggerWithTelemetry() *slog.Logger

func CreateMeter

func CreateMeter() metric.Meter

func CreateTracer

func CreateTracer() trace.Tracer

func SetupTelemetry added in v0.9.0

func SetupTelemetry(ctx context.Context, cfg Config) (shutdown func(context.Context) error, err error)

Types

type Config added in v0.9.0

type Config struct {
	Protocol string `env:"EXPORTER_OTLP_PROTOCOL, default=grpc"`
}

func (*Config) IsProtocolGrpc added in v0.9.0

func (c *Config) IsProtocolGrpc() bool

func (*Config) IsProtocolHttp added in v0.9.0

func (c *Config) IsProtocolHttp() bool

Jump to

Keyboard shortcuts

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