![]() |
VOOZH | about |
End-user feedback captures input from users of your LLM application in Agent Observability. Examples include thumbs-up or thumbs-down ratings, whether a user accepted an agent’s change, and free-text comments about a response.
Feedback is different from an evaluation. Use feedback for signals submitted by an end user. Use external evaluations for results produced by your own evaluator logic, where who submitted the evaluation is not relevant. Use Annotation Queues for structured review workflows run by your team.
Submitted feedback appears when viewing Agent Observability sessions, traces, or spans.
Submit feedback with the Evaluations API by setting event_kind to feedback.
Feedback events require:
event_kind: "feedback"submitter.id, which identifies the user or agent that submitted the feedbackspan_id, trace_id, session_id, or feedback_join_keymetric_typeFeedback events must not include join_on. If eval_scope is omitted, Datadog infers it from the target field. If eval_scope is provided, it must match the selected target.
| Target | Field | Use when |
|---|---|---|
| Span | span_id | The feedback applies to one span. |
| Trace | trace_id | The feedback applies to an entire trace. |
| Session | session_id | The feedback applies to an entire session. |
| External entity | feedback_join_key | The feedback applies to a customer-defined entity, such as an incident ID, report ID, task ID, or release check ID. |
Use feedback_join_key when feedback is not tied to a single span, trace, or session. First, enrich your spans with the feedback_join_key tag related to the external entity using the SDK’s Enriching spans workflow or the Spans API. Then, submit feedback with the same feedback_join_key.
{
"data": {
"type": "evaluation_metric",
"attributes": {
"metrics": [
{
"event_kind": "feedback",
"span_id": "20245611112024561111",
"ml_app": "weather-bot",
"timestamp_ms": 1765990800016,
"metric_type": "categorical",
"label": "thumbs",
"categorical_value": "down",
"assessment": "fail",
"submitter": {
"id": "user-123",
"type": "user"
}
}
]
}
}
}{
"data": {
"type": "evaluation_metric",
"attributes": {
"metrics": [
{
"event_kind": "feedback",
"feedback_join_key": "incident-123",
"ml_app": "incident-agent",
"timestamp_ms": 1765990800016,
"metric_type": "text",
"label": "user_comment",
"text_value": "The investigation missed the customer impact.",
"assessment": "fail",
"submitter": {
"id": "user-123",
"type": "user"
}
}
]
}
}
}To create a dashboard widget for feedback, create the widget as you would for an evaluation and add the filter @event_kind:feedback.
@event_kind:feedback instead.Additional helpful documentation, links, and articles:
| |