question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Stack parsers use both `?` and `<anonymous>` to denote anonymous functions

See original GitHub issue

Issue Analytics

  • State:open
  • Created a year ago
  • Comments:9 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
kamilogorekcommented, Aug 8, 2022

@kamilogorek any ideas on why this happens?

Historical reasons. It was called <anonymous> (the same value as anonymous URLs/files in some old browsers) since raven SDK, and we kept it like that. ? comes directly from Tracekit, which was also not changed since the old SDK, as the grouping strategy back then did not group them together afair. Changing this would cause some new issues to pop up.

Now, this will not affect any grouping (at least for one version of it), due to those frames being skipped, see: https://github.com/getsentry/sentry/blob/46d9c2aa672b8abe2e26e52c60e9ffc32eba9c23/src/sentry/grouping/strategies/newstyle.py#L394-L398

Also original references: https://github.com/getsentry/sentry-javascript/blob/7b664ff3a828fe59e32ccc182d5b4bb449dc9402/packages/raven-js/src/raven.js#L1122 https://github.com/getsentry/sentry-javascript/blob/7b664ff3a828fe59e32ccc182d5b4bb449dc9402/packages/raven-js/vendor/TraceKit/tracekit.js#L29

1reaction
AbhiPrasadcommented, Aug 31, 2022

How about we just backlog for the next major bump then? I don’t mind tabling this patch until then since we treat it identically for grouping strategies.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Why do you need to invoke an anonymous function on the ...
Those are two completely seperate anonymous functions. You have to invoke an anonymous function immediately because it has no name and can't be...
Read more >
JavaScript Anonymous Functions - GeeksforGeeks
Anonymous Function is a function that does not have any name associated with it. Normally we use the function keyword before the function...
Read more >
Is there a common set of best practices for passing ...
Well, sure. Anonymous functions are used because we are too lazy to write an own stragety-pattern-like class for each single anonymous function.
Read more >
Lambda expressions and anonymous functions | Microsoft Learn
In both cases, you can use the same lambda expression to specify the parameter value. That makes the two Select calls to look...
Read more >
the different ways of declaring a function + 5 best practices
A function can be declared using a function expression. It is declared quite differently from the general syntax because it uses a variable...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found