telemetry

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2026 License: BSD-2-Clause Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Setup

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

Setup bootstraps the OpenTelemetry pipeline with OTLP exporters. Configuration is read from environment variables:

  • OTEL_EXPORTER_OTLP_ENDPOINT: Collector endpoint (default: localhost:4317)
  • OTEL_EXPORTER_OTLP_INSECURE: Use insecure connection (default: true for localhost)
  • OTEL_SERVICE_NAME: Service name for telemetry (default: mindns)

If it does not return an error, make sure to call shutdown for proper cleanup.

Types

This section is empty.

Jump to

Keyboard shortcuts

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