Skip to content

Python Auto Instrumentation

KloudMate natively supports OpenTelemetry (OTel) for auto-instrumenting Python applications. Because OpenTelemetry actively maintains robust auto-instrumentation agents for Python, we rely on their standard process to ensure you always have the most up-to-date and compatible tracing capabilities.

To send auto-instrumented data to KloudMate, you only need to configure the OpenTelemetry agent with KloudMate’s OTLP endpoint and your API key using environment variables.

When running your Python application (e.g., using opentelemetry-instrument), provide the following environment variables:

export OTEL_EXPORTER_OTLP_ENDPOINT="https://otel.kloudmate.com:4318"
export OTEL_EXPORTER_OTLP_HEADERS="Authorization=YOUR_API_KEY"
export OTEL_SERVICE_NAME="your-python-service-name"

Replace YOUR_API_KEY with your actual KloudMate API key.

For the actual installation and usage instructions of the OpenTelemetry Python tools (opentelemetry-bootstrap, opentelemetry-instrument), please refer to the official OpenTelemetry documentation.

View Official OpenTelemetry Python Zero-code Instrumentation Docs →