observability

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OTel

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

func InitOTel

func InitOTel(cfg OTelConfig) (*OTel, error)

func (*OTel) Shutdown

func (o *OTel) Shutdown(ctx context.Context) error

type OTelConfig

type OTelConfig struct {
	ServiceName    string
	ServiceVersion string

	Exporter sdktrace.SpanExporter

	// Default sampler is ParentBased(TraceIDRatioBased(1.0)) if unset.
	Sampler sdktrace.Sampler
}

type Prometheus

type Prometheus struct {
	Registry *prometheus.Registry
}

func NewPrometheus

func NewPrometheus() *Prometheus

Jump to

Keyboard shortcuts

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