Traceloop’s non-intrusive instrumentation combined with Prisma AIRS AI Gateway’s intelligent gateway provides comprehensive observability without modifying your application code, while adding routing intelligence, caching, and failover capabilities.
Why Traceloop + the AI Gateway?
Non-Intrusive Monitoring
Automatic instrumentation without changing your application code
OpenTelemetry Native
Built on industry-standard OpenTelemetry for maximum compatibility
Flexible Export Options
Send traces to the AI Gateway or any OpenTelemetry-compatible backend
Enhanced Intelligence
The AI Gateway adds gateway features like caching, fallbacks, and load balancing
Quick Start
Prerequisites
- Python
- Strata Cloud Manager account with API key
- OpenAI API key (or add it to Model Catalog)
Step 1: Install Dependencies
Install the required packages for Traceloop and AI Gateway integration:Step 2: Initialize Traceloop
Configure Traceloop to send traces to the AI Gateway’s OpenTelemetry endpoint:Step 3: Configure AI Gateway
Set up the OpenAI client to use the AI Gateway’s intelligent gateway:Step 4: Make Instrumented LLM Calls
Your LLM calls are now automatically traced by Traceloop and enhanced by the AI Gateway:Complete Example
Here’s a full example bringing everything together:Next Steps
Configure Gateway
Set up intelligent routing, fallbacks, and caching
Model Catalog
Manage AI providers, credentials, and model access centrally
View Analytics
Analyze costs, performance, and usage patterns
Set Up Alerts
Configure alerts for anomalies and performance issues

