|
| 1 | +--- |
| 2 | +title: "Filtering Traces by Annotation" |
| 3 | +slug: filtering-traces-by-annotation |
| 4 | +date: 2025-10-14 |
| 5 | +tags: [v0.58.0] |
| 6 | +--- |
| 7 | + |
| 8 | +import Image from "@theme/IdealImage"; |
| 9 | + |
| 10 | + |
| 11 | +We rebuilt the filtering system in observability. We added a new dropdown with more options. Additionally, we added a new annotation filtering. You can now filter and search traces based on their annotations. This feature helps you find traces with low scores or bad feedback quickly. |
| 12 | + |
| 13 | +### New Filter Options |
| 14 | + |
| 15 | +The new dropdown is simpler and gives you more options. You can now filter by: |
| 16 | +- **Span status**: Find successful or failed spans |
| 17 | +- **Input keys**: Search for specific inputs in your spans |
| 18 | +- **App or environment**: Filter traces from specific apps or environments |
| 19 | +- **Any key within your span**: Search custom data in your trace structure |
| 20 | + |
| 21 | +<Image img={require('/static/images/changelog/changelog-filters-observability.png')} alt="Complete observability filters" style={{display: 'block', margin: '20px auto', textAlign: 'center', width: '20%'}} /> |
| 22 | + |
| 23 | +### Annotation Filtering |
| 24 | + |
| 25 | +Filter traces based on evaluations and feedback: |
| 26 | +- **Evaluator results**: Find spans evaluated by a specific evaluator |
| 27 | +- **User feedback**: Search for spans with feedback like `success=True` |
| 28 | + |
| 29 | +<Image img={require('/static/images/changelog/changelog-annotation-filter.png')} alt="Annotation filtering interface" style={{display: 'block', margin: '20px auto', textAlign: 'center'}} /> |
| 30 | + |
| 31 | +This feature enables powerful workflows: |
| 32 | + |
| 33 | +1. **Capture user feedback** from your application using our API ([see tutorial](/tutorials/cookbooks/capture-user-feedback)) |
| 34 | +2. **Filter traces** to find those with bad feedback or low scores |
| 35 | +3. **Add them to test sets** to track problematic cases |
| 36 | +4. **Improve your prompts** based on real user feedback |
| 37 | + |
| 38 | +The filtering system makes it easy to turn production issues into test cases. |
| 39 | + |
| 40 | +--- |
0 commit comments