Open benvinegar opened 8 years ago
This would be useful. It seems like just being able to search the text of the stack trace would cover most cases...
Why is this issue so quiet? For me this is hugely important. It is the single most important reason to get all my exceptions in 1 place: so I can search them properly. And searching by a string occuring in a stacktrace is vital in that. When there are bugs happening with a certain component of an application, the first thing you want to do is search the names of the relevant classes/functions in Sentry, and Sentry would show in which Exception-stacktraces this class or function shows up.
Consider for example a webhook failing to take all notifications for some unknown reason. You would go to Sentry, and search for the name of the relevant controller(-method) of that endpoint, and any failure not just of the class or method itself, but also of any subroutine, would pop up in the search results. Exceptions bubble up, remember, subroutines crash parent routines, so failures of subroutines are just as relevant. If we could do this it would be enormously powerful in debugging issues on a production environment.
I'm not in this project and so don't know anything about its intricacies, so please correct me if I'm wrong about any assumptions here, but I'm just wondering because from a distance, implementation seems fairly straightforward. If you, for this function, treat the entire stacktrace as a piece of text, this text can just be added to the set of text fields searched by the full text search. Is it that Sentry does not have a full text search component, and is that why this issue is harder to make?
I just found myself to be able to search by exception stacktrace via Discovery tool. Query looks like stack.function:*main*
or stack.filename:**/main.cpp
. Maybe this workaround will help a little.
This issue can be closed. The feature was added long ago as @kirik points out.
hi,i am confused about how to disable the feature(Search by source code context or filename ),because if i post the request,i can change the filename, that may cause ssrf!
So, it's there anyway to prevent fetching the request! I have already disabled the Enable JavaScript source fetching, but when i launch the page, it will still fetch the url...... @BYK
The feature was added long ago
«clicks link»
This feature is available only if your organization is on either a Business or Trial Plan
🤔
Basically, the ability to locate an error by searching for affected source code, i.e. a function call or particular variable.