Skip to content

Commit 24c761e

Browse files
committed
wip
1 parent c8f9a87 commit 24c761e

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

develop-docs/sdk/telemetry/scopes.mdx

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -60,18 +60,15 @@ Users MUST be able to attach attributes to any scope using a dedicated method (e
6060

6161
Attributes are key-value pairs where each value is an object containing:
6262

63-
- `type`: The data type (`"string"`, `"integer"`, `"double"`, or `"boolean"`)
63+
- `type`: The data type (`"string"`, `"integer"`, `"double"`, `"boolean"`, `"string[]"`, `"integer[]"` and `"double[]"`)
6464
- `value`: The actual attribute value, which MUST match the specified type
6565
- `unit` (optional): The unit of measurement (e.g., `"ms"`, `"s"`, `"bytes"`, `"count"`, `"percent"`)
6666

6767
#### Example Usage
6868

6969
```javascript
7070
Sentry.getGlobalScope().setAttributes({
71-
"app.feature_flag.enabled": {
72-
type: "boolean",
73-
value: true
74-
},
71+
"app.feature_flag.enabled": true,
7572
"app.session_duration": {
7673
type: "integer",
7774
value: 3600,
@@ -82,10 +79,7 @@ Sentry.getGlobalScope().setAttributes({
8279

8380
```python
8481
sentry_sdk.get_global_scope().set_attributes({
85-
"app.feature_flag.enabled": {
86-
"type": "boolean",
87-
"value": True
88-
},
82+
"app.feature_flag.enabled": True,
8983
"app.session_duration": {
9084
"type": "integer",
9185
"value": 3600,

0 commit comments

Comments
 (0)