Open rchl opened 4 years ago
Yeah, glob is tricky. I used https://globster.xyz/ and the only thing that actually matched app/...
(your first frame) was app/**
. Could you try that?
No sorry, this still doesn't work.
But then this page also seems to match for **app/**
:
If you go to JSON download of the app, what is the JSON object surrounding that problematic path string? I can try some things locally.
Here is the whole exception
object:
Okay... we use abs_path
for matching. I tried this now in the shell using the Python function that is used on the server:
**/app/**
let me know
That works well indeed. 👍
In that case, I'm not sure there is any action to do here. Maybe adding some clarity to the UI? Either with more complex examples, link to a more detailed explanation or some online playground for testing globs. :)
Talking about this place:
Yeah for sure. I think one pitfall here is also that filename
is visible in teh UI and the actual value matched against is abs_path
. We can tweak that logic a little, maybe.
Like maybe prepend **/
automatically (behind the scenes even) if that exact string does not start with that pattern.
(at least for path
matcher)
This issue has gone three weeks without activity. In another week, I will close it.
But! If you comment or otherwise update it, I will reset the clock, and if you label it Status: Accepted
, I will leave it alone ... forever!
"A weed is but an unloved flower." ― Ella Wheeler Wilcox 🥀
Important Details
How are you running Sentry?
Saas (sentry.io)
Description
Custom grouping rule
path:**app/**/*.* +app
, to mark frames as "app", is not applied when expected.Steps to Reproduce
Project -> General -> Grouping Settings
, set a grouping rule:path:**app/**/*.* +app
app/...
An example stacktrace (JS):
Note that the first frame from the top is not matched but second (starting with
./
) is.I've also tried globs like:
path:*app/**/*.* +app
path:app/**/*.* +app
and those also don't match the first frame.What you expected to happen
The
**app/**/*.*
(orapp/**/*.*
) glob matches the path starting withapp/...
.Possible Solution
Match using further components of the path which makes the match less reliable.