Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions develop-docs/sdk/telemetry/spans/span-protocol.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,11 @@ The envelope item payload must contain an `items` array with span one and up to
"http.response.status_code": {
"type": "integer",
"value": 200
},
"session.duration": {
"type": "integer",
"value": 164,
"unit": "second"
}
},
"links": [
Expand Down Expand Up @@ -158,9 +163,9 @@ Attributes are stored as key-value pairs where each value is an object with type

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `type` | string | Yes | The data type of the attribute value. Values: `"string"`, `"integer"`, `"double"`, `"boolean"` |
| `type` | string | Yes | The data type of the attribute value. Values: `"string"`, `"integer"`, `"double"`, `"boolean"`, `"string[]"`, `"integer[]"`, `"double[]"`, `"boolean[]"` |
| `value` | any | Yes | The actual attribute value, must match the specified type |
| `unit` | string | No | The unit of the attribute value. Example values: `"ms"`, `"s"`, `"bytes"`, `"count"`, `"percent"` |
| `unit` | string | No | The unit of the attribute value. Example values: `"millisecond"`, `"second"`, `"byte"`, `"ratio"`. Units MUST be one of the [MetricUnit](https://getsentry.github.io/relay/relay_metrics/enum.MetricUnit.html)s supported by Relay, excluding `""`, `"none"` or custom units. |

#### Common Attribute Keys

Expand Down
Loading