Providing Feedback for Traces
You can create, modify, or delete feedback for trace spans. Feedback includes a rating from 1 (lowest) to 5 (highest) to evaluate the quality of a trace span.Creating New Feedback
You can create new feedback for traces using the API. Specify the target trace span usingfeedbackTargetId (returned in the headers of every AI Gateway response as x-tfy-feedback-target-id).
The feedback target ID is returned in the headers of every AI Gateway response as x-tfy-feedback-target-id. Currently, the feedback target ID only represents the root span in the trace.
Modifying Existing Feedback
Existing feedback can be modified using the following API request: The feedback target ID is returned in the headers of every AI Gateway response asx-tfy-feedback-target-id. Currently, the feedback target ID only represents the root span in the trace.
Deleting Existing Feedback
Existing feedback can be deleted using the following API request: The feedback target ID is returned in the headers of every AI Gateway response asx-tfy-feedback-target-id. Currently, the feedback target ID only represents the root span in the trace.
Reading Feedback
Feedback for any given trace span is displayed alongside the span in the trace view.
AI Gateway - Feedback for trace span
Raw Data section under the tfyGatewayFeedbacks field.