getsentry / getsentry/sentry

stack.function search should index frames from top-level stacktrace (message events), not just exception frames

Open
#105,292 3 comments 0 reactions 0 assignees View on GitHub
Improvement Product Area: Discover
Dominant language
Python
Stars
44.8k
Forks
4.9k
Avg merge
21h 10m
Merged PRs (30d)
635

Description

### Environment

SaaS (https://sentry.io/)

### Steps to Reproduce

1. Send a message event (not an exception/crash) with a top-level stacktrace interface containing frames
2. In Discover, search using stack.function: for a function name present in that stacktrace
3. Alternatively, search the raw function name as a string

### Expected Result

The event should be returned in search results, as the stack frames are visible in the issue UI.

### Actual Result

No results returned. The stack.function field only indexes frames from exception.values[].stacktrace.frames, not from top-level stacktrace.frames. This means stack traces on message events are viewable but not searchable.

### Product Area

Discover

### Link

_No response_

### DSN

_No response_

### Version

_No response_

Contributor guide

Open the contributing guide

Research direction

Start by tracing how Discover indexes stack.function from exception frames, then compare that path with the top-level stacktrace.frames used by message events. Reproduce the reported message event and verify that searching by the frame's function name and as a raw string returns the event.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
search
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.