Skip to main content
Create one @lifecycle.telemetry_exporter factory for each destination:
extensions/telemetry.py
Configure complete OTLP/HTTP signal URLs:

Factory contract

Harnest batches each configured signal, flushes one-shot runs, and shuts exporters down with the server. OTLP/HTTP exporters are included. Add the exporter package to pyproject.toml when using another backend-specific exporter type.

Combine environment and authored sinks

The standard environment sink is additive. If OTEL_EXPORTER_OTLP_ENDPOINT is set alongside these factories, it receives signals too. HARNEST_OTEL_ENABLED=false disables only the environment sink. Authored factories remain active. Use an OpenTelemetry Collector instead when routing and fan-out should be managed outside the agent process.