Skip to content

Commit 46b7214

Browse files
fix: Add example of array attribute to telemetry attributes (#15994)
<!-- Use this checklist to make sure your PR is ready for merge. You may delete any sections you don't need. --> Original: https://develop.sentry.dev/sdk/telemetry/attributes/ Vercel preview: ## DESCRIBE YOUR PR Adds an example of the `array` type attribute, to avoid confusion about needing to send `integer[]` as the type. Defined in Relay: https://github.com/getsentry/relay/blob/master/relay-event-schema/src/protocol/attributes.rs#L158 (added in getsentry/relay#5394 with [examples here](https://github.com/getsentry/relay/pull/5394/changes#diff-59db6f882cc2165a2f15dccf0fb5600c27bccbd508620327834b62f6dd1499a4R683)) ## IS YOUR CHANGE URGENT? Help us prioritize incoming PRs by letting us know when the change needs to go live. - [ ] Urgent deadline (GA date, etc.): <!-- ENTER DATE HERE --> - [ ] Other deadline: <!-- ENTER DATE HERE --> - [x] None: Not urgent, can wait up to 1 week+ ## SLA - Teamwork makes the dream work, so please add a reviewer to your PRs. - Please give the docs team up to 1 week to review your PR unless you've added an urgent due date to it. Thanks in advance for your help! ## PRE-MERGE CHECKLIST *Make sure you've checked the following before merging your changes:* - [ ] Checked Vercel preview for correctness, including links - [ ] PR was reviewed and approved by any necessary SMEs (subject matter experts) - [ ] PR was reviewed and approved by a member of the [Sentry docs team](https://github.com/orgs/getsentry/teams/docs)
1 parent f03d108 commit 46b7214

1 file changed

Lines changed: 9 additions & 2 deletions

File tree

develop-docs/sdk/telemetry/attributes.mdx

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,18 @@ Attributes are stored as key-value pairs where each value is an object with type
1919
"value": 123,
2020
"unit": "millisecond",
2121
"type": "integer"
22-
}
22+
},
23+
"my_list": {
24+
"value": [1, 2, 3],
25+
"type": "array"
26+
},
2327
}
2428
```
2529

30+
<Alert>
31+
Sentry only supports <strong>non-mixed arrays</strong> as attribute values (e.g., all elements must be of the same type). Attributes with the 'array' type are not yet visible in the Sentry UI.
32+
</Alert>
33+
2634
### Properties
2735

2836
| Property | Type | Required | Description |
@@ -86,4 +94,3 @@ The following units are [supported by Relay](https://getsentry.github.io/relay/r
8694
## Semantic Conventions
8795

8896
See [Sentry Conventions](https://github.com/getsentry/sentry-conventions/) for a full list of supported attributes.
89-

0 commit comments

Comments
 (0)