Skip to content
This repository has been archived by the owner on Oct 31, 2024. It is now read-only.

Latest commit

 

History

History
21 lines (15 loc) · 558 Bytes

README.md

File metadata and controls

21 lines (15 loc) · 558 Bytes

airflow-otel-basic-example

In dags/tracing.py, replace "your-aspecto-token" with your account token from here

Then run

docker compose build
docker compose up

And run "otel_dag", you should be able to see traces in aspecto.

This repo demonstrate creating manual spans in a python operator:

with tracer.start_as_current_span("airflow span") as span:
    print("Doing work")
    requests.get('https://w3schools.com/python/demopage.htm')

And auto instrumentating the request library