Portkey’s auto-instrumentation allows you to instrument tracing and logging for multiple LLM/Agent frameworks and view the logs, traces, and metrics in a single place.
This feature is currently in beta. We’re rolling out support for more frameworks and will also be exposing the otel collector endpoint to view the traces and logs.
Using portkey for auto-instrumentation is fairly straightforward. A one line addition at the top of your code execution will start sending traces and logs to Portkey.
Copy
Ask AI
from portkey import PortkeyPortkey(api_key="{{PORTKEY_API_KEY}}", instrumentation=True)