Comment on page
Having end-to-end visibility of your requests is crucial. Portkey supports request tracing to help you monitor your applications throughout the lifecycle of a request.
To enable tracing, you can pass a
trace-idin the header of any request made via Portkey. This trace ID will be associated with the journey of the request, from initiation to completion, providing insights into the entire process.
To enable tracing, include the
x-portkey-trace-idin your request header.
"x-portkey-trace-id": "<YOUR TRACE ID>"
Trace IDs can also be used to link user feedback to specific generations. This can be used in a system where users provide feedback, like a thumbs up or thumbs down, or something more complex via our feedback APIs. This feedback can be linked to traces which can span over a single generation or multiple ones.
You can view all the requests with a common
trace-ideasily on the logs page.