Exporter factory contract
Environment controls
Exports
TelemetryExporter
One named telemetry destination with optional trace and log exporters.— means no declared default):
Parameters and example
Parameters and example
TelemetryExporterError
A runtime telemetry-exporter factory returned an invalid destination.Example
Example
TelemetryState
Own the providers and processors configured for one agent runtime.— means no declared default):
Parameters and example
Parameters and example
TelemetryState.force_flush
Parameters and example
Parameters and example
TelemetryState.shutdown
Example
Example
configure_observability
Configure console logging and optional OTLP traces/logs once per process.Parameters and example
Parameters and example
get_tracer
Return a tracer from Harnest’s configured or global telemetry provider.Parameters and example
Parameters and example
instrument_fastapi
Attach server request spans to one FastAPI application.Parameters and example
Parameters and example
resolve_telemetry_exporters
Call discovered exporter factories only during runtime bootstrap.Parameters and example
Parameters and example