Repository navigation
feat(attributes): Add and deprecate runtime context attributes - #383
Conversation
Add top-level runtime.* attributes mapping to the Sentry runtime context: runtime.name, runtime.version, runtime.build, and runtime.raw_description. Co-Authored-By: Claude Opus 4.6 <[email protected]>
Semver Impact of This PR🟡 Minor (new features) 📋 Changelog PreviewThis is how your changes will appear in the changelog. New Features ✨Attributes
Other
Bug Fixes 🐛
🤖 This preview updates automatically when you update the PR. |
buenaflor
left a comment
There was a problem hiding this comment.
are these the runtime attributes that we send in mobile today?
|
Yeah it's confusing, as far as I can see runtime exists for a while now (e.g. sentry-java backend or cocoa).
|
yea, though migrations like backfilling and coalescing are currently limited to EAP afaict we don't need to migrate SDKs now but I guess it does make sense to at least document it as a deprecated attribute e.g |
There was a problem hiding this comment.
I agree, we should deprecate the runtime namespace in favour of process.runtime. I think it's okay for now to continue sending the old ones if we already did this before but long-term, we should align to OTel's specification.
(Meaning, for this PR, we add and deprecate the runtime.* attributes and also add the missing process.runtime.* replacements)
…runtime.* Mark runtime.name, runtime.version, runtime.raw_description, and runtime.build as deprecated, pointing to their OTel-aligned process.runtime.* equivalents. Add symmetric aliases between the old and new attribute names. Co-Authored-By: Claude Opus 4.6 <[email protected]>
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 2 potential issues.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 083bdff. Configure here.
| "deprecation": { | ||
| "reason": "The runtime.* namespace is deprecated in favor of process.runtime.*. No direct OTel equivalent exists for this attribute.", | ||
| "_status": null | ||
| }, |
There was a problem hiding this comment.
runtime.build incorrectly marked deprecated
Medium Severity
The PR specifies that runtime.build has no OTel equivalent and should stay non-deprecated, but the model adds a deprecation block and generated SDK output marks RUNTIME_BUILD as deprecated with no replacement. That steers integrators away from the only top-level attribute for runtime build strings.
Reviewed by Cursor Bugbot for commit 083bdff. Configure here.
Incorporate visibility field from main into runtime and process.runtime attribute definitions. Regenerate all code. Co-Authored-By: Claude Opus 4.6 <[email protected]>
Resolve conflict in shared/deprecated_attributes.json by accepting its deletion (main removed the deprecated-attributes JSON generation in #404). Regenerate JS/Python attribute code and docs. Co-Authored-By: Claude Opus 4.8 <[email protected]>


Summary
Adds the
runtimeevent context as deprecated attributes. SDKs (e.g. sentry-java, sentry-cocoa) are currently sending these but they were never formally defined in conventions. They are deprecated in favor of the existing OTel-alignedprocess.runtime.*attributes.Attributes
runtime.nameprocess.runtime.nameruntime.versionprocess.runtime.versionruntime.raw_descriptionprocess.runtime.descriptionruntime.build