self-hosted
self-hosted copied to clipboard
Sentry version and compatible SDK Loader Versions
Problem Statement
Hi,
how do we manage the sentry application version and its compatible SDK versions. In another words, When we select SDK version on GUI JavaScript Loader Script page/section (7.X, 8.X, or 9.X), it use some certain minor versions of the SDK. For example when we select 9.X, it brings SDK 9.22.0 version . But 9.29 is already released on SDK project. How does this compatability managed? How can we follow/track compatability of these two project?
https://docs.sentry.io/platforms/javascript/install/loader/#sdk-version
Solution Brainstorm
No response
How does this compatability managed?
For each releases (or basically Docker image build) on Sentry, there will be a JSON file generated somewhere that contains the JS SDK registry for JS Loader purposes. Then, it will be hard-embedded into the Docker image.
See this line for testing if the file exists, I don't remember the exact line of code where they generate the JSON file: https://github.com/getsentry/sentry/blob/229e3f223f5c2ec874ab3417c6c62d52ae045725/self-hosted/Dockerfile#L73
How can we follow/track compatability of these two project?
Honestly I have no idea. On this script, I just query the last entry on that JSON file: https://github.com/getsentry/self-hosted/blob/1b88e90e30f1c920aa274e834c59a6d073028cec/install/setup-js-sdk-assets.sh#L24-L30
Obviously, it won't be as up to date as the one on the SaaS.
Thank you very much @aldy505 for your explanation. I will try to find a WA, then hope that will be easily managable on platform.
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 remove the label Waiting for: Community, I will leave it alone ... forever!
"A weed is but an unloved flower." ― Ella Wheeler Wilcox 🥀