telemetry

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2026 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Setup

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

Setup installs the global OTel providers. Always installs real SDK providers (not no-op) so that third-party instrumentation (otelhttp, otelgrpc) can cache them and work on hot-swap. If Endpoint is empty, no exporters are configured but the providers still exist and work.

Types

type Config

type Config struct {
	// Endpoint is the OTLP gRPC target (e.g. "localhost:4317").
	// Empty string disables exporting but still installs real SDK providers.
	Endpoint    string
	ServiceName string
	Version     string
	DBPath      string
	Insecure    bool
}

Config controls Spaniel's own OTLP self-telemetry.

Jump to

Keyboard shortcuts

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