Skip to content

aspecto-io/airflow-otel-basic-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published