What is the difference between SENTRY_RELEASE
and __SENTRY__.hub._stack[0].client._options.release
?
#13328
Unanswered
Sc4ramouche
asked this question in
Q&A
Replies: 1 comment 2 replies
-
You don't need a correct release value if you are using the new(ish) Debug ID process to upload sourcemaps. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi all! I have a question regarding how Sentry identifies the
release
data. I stumbled upon two options:SENTRY_RELEASE
global object.__SENTRY__.hub._stack[0].client._options.release
Sentry client object.I noticed that in our setup those two values can be different if I print them with the following util:
Therefore I am curious what is the difference between the two and which one does Sentry use when an error event is sent.
Additional context — currently I am trying to make source maps to work in our microfrontends setup. Every MFE is it's own repo and we set
release
based on the latest commit sha for every MFE. However, when navigating from one MFE to another in the browser, I noticed thatrelease
can get out of sync, i.e.SENTRY_RELEASE
displayingrelease
of the MFE that I had navigated from. I assume that incorrectrelease
data can be a major problem for source maps to work correctly, thus wanted extend my knowledge regardingrelease
here.Any input is welcome, thank you!
Beta Was this translation helpful? Give feedback.
All reactions