Skip to main content
All Python modules · Import and compatibility guidance

Exporter factory contract

Environment controls

Exports

TelemetryExporter

One named telemetry destination with optional trace and log exporters.
Fields (— means no declared default):

TelemetryExporterError

A runtime telemetry-exporter factory returned an invalid destination.

TelemetryState

Own the providers and processors configured for one agent runtime.
Fields (— means no declared default):

TelemetryState.force_flush

Flush owned providers or only processors added to adopted providers.

TelemetryState.shutdown

Shut down providers or processors created and owned by Harnest.

configure_observability

Configure console logging and optional OTLP traces/logs once per process.

get_tracer

Return a tracer from Harnest’s configured or global telemetry provider.

instrument_fastapi

Attach server request spans to one FastAPI application.

resolve_telemetry_exporters

Call discovered exporter factories only during runtime bootstrap.