Sends traces, metrics, and logs through an OpenTelemetry Collector to Microsoft Fabric or Azure Data Explorer.
- Python 3.10+
microsoft-opentelemetryinstalled (pip install .from repo root)- An OTel Collector Contrib binary or Docker image
- A Fabric KQL database or Azure Data Explorer cluster with tables created (see full guide)
-
Update
collector-config.yamlwith your cluster URI and database name. -
Start the collector:
# Binary otelcol-contrib --config collector-config.yaml # Docker docker run --rm -p 4317:4317 -p 4318:4318 \ -v ${PWD}/samples/fabric/collector-config.yaml:/etc/otelcol-contrib/config.yaml \ otel/opentelemetry-collector-contrib:0.121.0
-
In another terminal, run the sample:
# Windows set OTEL_EXPORTER_OTLP_ENDPOINT=http://localhost:4318 python samples/fabric/app.py # Linux / macOS OTEL_EXPORTER_OTLP_ENDPOINT=http://localhost:4318 python samples/fabric/app.py
-
Query your ADX/Fabric tables to verify data arrived:
OTELTraces | take 10 OTELLogs | take 10 OTELMetrics | take 10
See docs/fabric-getting-started.md for the complete step-by-step walkthrough including table creation, permissions, and authentication options.