Comment on page
Logs & Analytics
One of the many advantages of integrating with Portkey is the detailed logs and analytics provided directly on the Portkey dashboard. Once your application is integrated with Portkey, this feature is enabled automatically, providing you with valuable insights into your application's usage patterns and performance.
This feature does not require any additional headers to be passed in your requests. As soon as the Portkey integration is done, all logs and analytics will begin to appear in the Portkey dashboard.
The Logs and Analytics section is split into two parts:
The Analytics section of the Portkey dashboard provides a visual and interactive interface for understanding your LLM application Here, you can see various graphs and metrics related to requests to different LLMs, costs, latencies, tokens, user activity, feedback, cache hits, errors, and much more.
The metrics in the Analytics section can help you understand the overall efficiency of your application, discover patterns, identify areas of optimization, and much more.
The Logs section presents a chronological list of all the requests processed through Portkey. Each log entry provides useful data such as the timestamp, request type, LLM used, tokens generated, and cost. By clicking on an entry, a side panel opens up, revealing the entire raw data with the request and response objects.
This detailed log can be invaluable when troubleshooting issues or understanding specific interactions. It provides full transparency into each request and response, enabling you to see exactly what data was sent and received.
Each log on Portkey has a unique URL. You can just copy the link from the address bar and directly share it with anyone in your org.
Wondering how your requests are being handled by Portkey? The Status column on the Logs page gives you a snapshot of the gateway activity for every request.
Common Queries Answered:
- Is Caching Working?: Enabled caching but unsure if it's active? The Status column will confirm it for you.
- How Many Retries Took Place?: Curious about the retry count for a successful request? See it with a glance.
- Fallback and Loadbalance: Want to know if loadbalance is active or which fallback option was triggered? See it with a glance