Skip to content

[skill-drift] update(sentry-browser-sdk): document setAttribute and setAttributes APIs#223

Open
github-actions[bot] wants to merge 1 commit into
mainfrom
skill-drift/sentry-browser-sdk-skill-drift-update-sentry-browser-sdk-do-1782742190
Open

[skill-drift] update(sentry-browser-sdk): document setAttribute and setAttributes APIs#223
github-actions[bot] wants to merge 1 commit into
mainfrom
skill-drift/sentry-browser-sdk-skill-drift-update-sentry-browser-sdk-do-1782742190

Conversation

@github-actions

Copy link
Copy Markdown
Contributor

Warning

Auto-generated from external SDK content. Review all links and code suggestions before acting on them.

Summary

  • Added documentation for Sentry.setAttribute() and Sentry.setAttributes() APIs introduced in SDK v10.61.0
  • Added new "Attributes" section in error-monitoring.md after the Tags section
  • Updated scope methods reference to include setAttribute and setAttributes

Context

PR #21705 added top-level setAttribute(s) APIs for setting scope attributes, analogous to setTag(s). These APIs write attributes to the isolation scope and simplify scope enrichment with structured key names (e.g., user.num_orders, subscription.tier).

Changes Made

File: skills/sentry-browser-sdk/references/error-monitoring.md

  1. Added new "Attributes — Structured Scope Properties" section with:

    • Single attribute examples using Sentry.setAttribute()
    • Multiple attributes examples using Sentry.setAttributes()
    • Scoped attribute example with withScope()
    • Note about SDK version requirement (v10.61.0+)
  2. Updated "Scope Methods" reference to include:

    • scope.setAttribute("key", value)
    • scope.setAttributes({ key1: v1, key2: v2 })

SDK Version

These APIs are available in @sentry/browser >= 10.61.0 (released 2026-06-25).

Co-Authored-By: Claude Sonnet 4.5 noreply@anthropic.com

Source PRs

…etAttributes APIs

Automated drift-fix run.

Co-Authored-By: Claude (claude-sonnet-4-5) <noreply@anthropic.com>
@github-actions github-actions Bot requested a review from a team as a code owner June 29, 2026 14:09
@github-actions github-actions Bot removed the request for review from a team June 29, 2026 14:09
@github-actions github-actions Bot requested a review from mydea June 29, 2026 14:09
@github-actions github-actions Bot requested review from Lms24 and logaretm June 29, 2026 14:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants