Medical diagnosis workflow
Fromrespan-tracing/examples/medical_agent/Main.py. Runs a full agent workflow with workflow, task, tool, concurrent execution and file save.
Update span during OpenAI call
Fromexamples/simple_span_updating_example.py. Uses get_client().update_current_span(...).
Client API: span updates, events, exceptions
Fromexamples/span_updating_example.py. Demonstrates updates, events, error recording.
Custom exporters
Fromexamples/custom_exporter_example.py. File and console exporters.
Backend export patterns
Fromexamples/backend_trace_collection_example.py. Direct logging and safe trace collection.
Threading and context experiments
Fromexamples/threading_context_experiment.py and run_threading_experiment.py. Shows OpenTelemetry context propagation, manual attach/detach, and ThreadPoolExecutor behavior.
Traces API example
Fromexamples/traces_API_examples/list_traces.py. Fetch traces via API.
Logging hierarchy
Fromexamples/logging_hierarchy_example.py. Demonstrates logger inheritance and levels.
Debug logging
Fromexamples/debug_logging_example.py. Use log_level to control verbosity.