From 04a1073d99f173c11c73a29ff69a7ca96f385bf4 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Mon, 29 Jun 2026 14:10:29 +0000 Subject: [PATCH] [skill-drift] update(sentry-svelte-sdk): document setAttribute and setAttributes APIs Automated drift-fix run. Co-Authored-By: Claude (claude-sonnet-4-5) --- .../references/error-monitoring.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/skills/sentry-svelte-sdk/references/error-monitoring.md b/skills/sentry-svelte-sdk/references/error-monitoring.md index d26ec8fb..fa0dd50a 100644 --- a/skills/sentry-svelte-sdk/references/error-monitoring.md +++ b/skills/sentry-svelte-sdk/references/error-monitoring.md @@ -151,6 +151,20 @@ Sentry.setTags({ Key constraints: ≤32 chars, alphanumeric + `_`, `.`, `:`, `-`. Value: ≤200 chars, no newlines. +### Attributes (applied to logs, metrics, and spans) + +```typescript +Sentry.setAttribute("is_admin", true); +Sentry.setAttribute("render_duration", 150); +Sentry.setAttributes({ + is_admin: true, + payment_selection: "credit_card", + render_duration: 150, +}); +``` + +Attributes are applied to logs, metrics, and streamed spans. Supported types: `string`, `number`, `boolean`, and arrays of these types (`string[]`, `number[]`, `boolean[]`). + ### Context Objects (structured, non-indexed) ```typescript