-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rethink where to put debug_id
in event Payload
#7161
Comments
What is JavaScript specific about this protocol atm? It's just a uuid on the frame. It's open ended enough that it can be taken advantage of in other platforms as well! |
I am with you on this. @mitsuhiko mentioned this as an issue. Maybe there are some other considerations we lack context for? |
Honestly, writing this all down made me want to go with our original implementation again. It just makes so much more sense. |
We have evaluated this in the past and it's not that someone clearly decided against it. However it causes some extra complexity that we haven't been willing to consider yet. In particular I think we can evaluate |
There are considerations around whether the location we currently have
debug_id
under is a good location. It is now located underevent.exception.values[].stacktrace.frames[].debug_id
. While it is currently not used, there are worries (mainly by @mitsuhiko and @jan-auer) that having a JavaScript-specific field in the stack frame protocol will complicate many things in our code base.As of now, the better alternative seems to be putting the
debug_id
mappings inside the Debug Meta Interface. Here we would have an image type that maps fromabs_path
(of the JS source file) todebug_id
(an identifier for the source map in the backend). Develop PR for more context.There is a potential issue we may face down the line:
There is a good chance that the
filename
of a stack frame and thesource_filename
value of the Debug Meta mapping will not match, especially since we provide a dedicated API with theRewriteFrames
integration to manipulate the file path in order to match source maps in the cases where the path may be dynamic. Essentially this means using the newdebug_id
approach alongside theRewriteFrames
integration will in many cases not work.The alternative solution is to keep the
debug_id
inside the stack frame object, completely disassociating the filename from source map resolving.The text was updated successfully, but these errors were encountered: