Open Telemetry
- maykin_common.otel.setup_otel() None
Initialize the Open Telemetry machinery.
This is an application-global hook to configure the Open Telemetry machinery:
set up the metadata about the resource being monitored
initialize the metrics processor and exporter
initialize the traces processor and exporter
instrument the python code so that metrics and traces are captured
The exports are responsible for shipping the telemetry data to an endpoint that supports OpenTelemetryProtocol (OTLP), either over gRPC or HTTP/protobuf protocols. Often, this will be an OpenTelemetry Collector running somewhere.
Part of the SDK initialization process is starting a background thread to periodically ship the telemetry to the configured endpoint.