Skip to main content

Medical diagnosis workflow

From keywordsai-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

From examples/simple_span_updating_example.py. Uses get_client().update_current_span(...).

Client API: span updates, events, exceptions

From examples/span_updating_example.py. Demonstrates updates, events, error recording.

Custom exporters

From examples/custom_exporter_example.py. File and console exporters.

Backend export patterns

From examples/backend_trace_collection_example.py. Direct logging and safe trace collection.

Threading and context experiments

From examples/threading_context_experiment.py and run_threading_experiment.py. Shows OpenTelemetry context propagation, manual attach/detach, and ThreadPoolExecutor behavior.

Traces API example

From examples/traces_API_examples/list_traces.py. Fetch traces via API.

Logging hierarchy

From examples/logging_hierarchy_example.py. Demonstrates logger inheritance and levels.

Debug logging

From examples/debug_logging_example.py. Use log_level to control verbosity.