Skip to content

feat(attributes): Add device.hinge_status attribute - #746

Open
itaybre wants to merge 1 commit into
mainfrom
feat/device-hinge-status
Open

itaybre wants to merge 1 commit into
mainfrom
feat/device-hinge-status

Conversation

@itaybre

@itaybre itaybre commented Oct 23, 2026

Copy link
Copy Markdown
Contributor

Description

Adds device.hinge_status, the hinge status of a foldable device such as iPhone Duo, with the values closed, partially_open, and fully_open. It mirrors device.thermal_state and device.orientation: a string in the device context with apply_scrubbing: manual.

The Cocoa SDK will report it in the device context from UIKit's UIHingeInteraction (iOS 27.1 and later): getsentry/sentry-cocoa#9426 (alternative implementation in getsentry/sentry-cocoa#9433). The SDK side will not be released before this convention is merged.

OpenTelemetry has no attribute for the fold or hinge state of a device, so is_in_otel is false.

PR Checklist

  • I have run yarn test and verified that the tests pass.
  • I have run yarn generate to generate and format code and docs.

If an attribute was added:

  • The attribute is in a namespace (e.g. nextjs.function_id, not function_id)
  • I have used the correct value for apply_scrubbing (i.e. manual or auto. Use never only for values that should never be scrubbed such as IDs)

The Cocoa SDK reports the hinge status of foldable devices, such as
iPhone Duo, in the device context: closed, partially_open, or
fully_open.
@vercel

vercel Bot commented Oct 23, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
sentry-conventions Ready Ready Preview Oct 23, 2026 6:08pm UTC

Request Review

@github-actions

Copy link
Copy Markdown

Semver Impact of This PR

🟡 Minor (new features)

📋 Changelog Preview

This is how your changes will appear in the changelog.
Entries from this PR are highlighted with a left border (blockquote style).


New Features ✨

  • (attributes) Add device.hinge_status attribute by itaybre in #746

🤖 This preview updates automatically when you update the PR.

This branch was successfully deployed

1 active deployment
Preview — dcd9cfb9 Deployed Oct 23, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant