telemetry

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2025 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	ServiceName     string
	TracingEnabled  bool
	TracingEndpoint string
	MetricsEnabled  bool
}

Config holds telemetry configuration

type Provider

type Provider struct {
	// contains filtered or unexported fields
}

Provider provides the telemetry components

func NewProvider

func NewProvider(cfg Config) (*Provider, error)

NewProvider creates a new telemetry Provider

func (*Provider) Meter

func (t *Provider) Meter() metric.Meter

Meter returns the meter

func (*Provider) Shutdown

func (t *Provider) Shutdown(ctx context.Context) error

Shutdown shuts down the telemetry

func (*Provider) Tracer

func (t *Provider) Tracer() trace.Tracer

Tracer returns the tracer

Jump to

Keyboard shortcuts

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