Use zero-code instrumentation
Use OpenTelemetry zero-code instrumentation by running opentelemetry-instrument:
opentelemetry-instrument --traces_exporter otlp python your_app.py
See these examples of zero-code instrumentation:
-
SDK mode: In examples/multi_agent_travel_planner see the explicit security checks with
inspect_prompt(). -
Gateway mode: In examples/gateway/multi_agent_travel_planner see the LLM calls through Cisco AI Defense Gateway.