Help us shape the future of Go! Take the 2026 Go Developer Survey

otlp

package
v0.2.49 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2026 License: MPL-2.0 Imports: 19 Imported by: 0

Documentation

Overview

Package otlp is the bundled "otlp" telemetry exporter: each tenant's validated metric events feed a tenant-private OTel MeterProvider whose periodic reader ships OTLP/HTTP batches to the endpoint named by the tenant's TELEMETRY_ENDPOINT secret (auth headers from the optional TELEMETRY_HEADERS secret, OTel "k1=v1,k2=v2" format).

Per-tenant providers are cached and re-validated on a TTL: rotating the secrets swaps in a fresh provider (the old one flushes to the old destination on its way out), deleting them turns the tenant off, and a tenant without secrets costs one negative-cache lookup per TTL. All delivery is best-effort — export failures count toward the chassis telemetry.dropped diagnostic and never surface to requests.

Every option that otlpmetrichttp can read from OTEL_EXPORTER_OTLP_* env vars is passed EXPLICITLY here (endpoint, headers), because those env vars configure the chassis's own telemetry on a production node — inheriting them would aim chassis credentials at tenant-controlled destinations.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

New builds the otlp exporter. Exported for tests; production code goes through telemetry.Open("otlp", cfg).

Types

This section is empty.

Jump to

Keyboard shortcuts

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