Skip to main content
Logs support in the OpenTelemetry Python SDK is currently experimental and subject to change. To check the status for each language, refer to the OpenTelemetry status page.
This example shows how to configure the OpenTelemetry Python SDK’s logger provider to send logs from a Python application to Honeycomb or an OpenTelemetry Collector.
1

Acquire Dependencies

Install the OpenTelemetry API, SDK, and OTLP exporter packages:
2

Configure the Logger Provider

During application setup, create and configure the logger provider:
3

Run Your Application

Set environment variables to configure the exporter and define your service name, then run your application.To send logs directly to Honeycomb:
To send logs to an OpenTelemetry Collector instead: