mirror of
https://github.com/paperclipai/paperclip.git
synced 2026-10-06 10:48:12 +02:00
fix: attribute Sentry errors to the loaded source release (#13719)
Attribute optional server and browser Sentry events to their source build. Use validated build commits for Docker and source/npm artifacts, preserve explicit server release overrides, and keep cached browser bundles tied to the commit they loaded. Verify 127 focused tests, server/UI typechecks, Docker and source build stamps, all 53 CI checks, and Greptile 5/5 with no unresolved comments. Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
1 parent
2a99de80ec
commit
600e552d7b
14 files changed
+268
-10
No files matched your search
+17
-1
@@ -375,7 +375,23 @@ sends, so an operator can read what the feature does before turning it on.
|
||||
Each Sentry integration name below is verified against the default
|
||||
integration list of `@sentry/node@10.71.0` and `@sentry/browser@10.71.0`.
|
||||
|
||||
**Server attribute this feature sets**
|
||||
**Release attribution**
|
||||
|
||||
The server sets `release` to the full source commit from its build metadata.
|
||||
An explicit `SENTRY_RELEASE` overrides that default. If neither is available,
|
||||
the server leaves the release unset.
|
||||
|
||||
The browser also sets `release`, using the full `PAPERCLIP_BUILD_COMMIT`
|
||||
supplied when its bundle is built, or the checkout commit for source and npm
|
||||
builds. The server reads its packaged build stamp when no deployment marker
|
||||
is present. Docker passes the same commit to both
|
||||
application builds. A cached browser bundle keeps its own release after a
|
||||
server deployment, so its errors are attributed to the code actually loaded.
|
||||
Browser builds without a valid full commit leave the release unset. The
|
||||
browser does not read a release from the current server, page URL, or session.
|
||||
These fields contain build identifiers; they add no tenant or user identity.
|
||||
|
||||
**Server identity**
|
||||
|
||||
- `server_name` — every server event carries the host name of the process.
|
||||
The `@sentry/node` client already sets this value by default when the
|
||||
|
||||
Reference in new issue
Block a user