Skip to content

Commit 2d2ed52

Browse files
authored
ref(trace-attachments): Content-type (#15770)
1 parent 4ba2704 commit 2d2ed52

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

develop-docs/sdk/data-model/envelope-items.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ file. It is always associated to an event or transaction.
115115

116116
### Trace Attachment
117117

118-
Item type `"attachment"` with content type `"application/vnd.sentry.attachment.v2"`. This item contains a raw payload of an attachment together with metadata. Contrary to V1 attachments, trace attachments are only optionally associated with other trace items (spans, logs, ...). Their main association is with the trace itself.
118+
Item type `"attachment"` with content type `"application/vnd.sentry.trace-attachment"`. This item contains a raw payload of an attachment together with metadata. Contrary to V1 attachments, trace attachments are only optionally associated with other trace items (spans, logs, ...). Their main association is with the trace itself.
119119

120120
**Envelope Headers:**
121121

@@ -128,7 +128,7 @@ The trace attachment item header must contain the following properties:
128128
```json
129129
{
130130
"type": "attachment",
131-
"content_type": "application/vnd.sentry.attachment.v2",
131+
"content_type": "application/vnd.sentry.trace-attachment",
132132
"length": 212341234,
133133
"meta_length": 123
134134
}
@@ -161,7 +161,7 @@ The trace attachment item payload consists of a JSON object containing metadata
161161
| `attachment_id` | string | Yes | 32-character hexadecimal string (a valid [Version 7](https://en.wikipedia.org/wiki/Universally_unique_identifier#Version_7_(timestamp_and_random)) or Version 4 UUID without dashes) |
162162
| `timestamp` | float | Yes | a UNIX timestamp corresponding to the attachment's occurrence. It may be the same as the start or end timestamp of the owner span. |
163163
| `filename` | string | No | The file name of the attachment. |
164-
| `content_type` | string | Yes | the content type of the attachment body (not to be confused with the content type of the envelope item, which is always `application/vnd.sentry.attachment.v2`). |
164+
| `content_type` | string | Yes | the content type of the attachment body (not to be confused with the content type of the envelope item, which is always `application/vnd.sentry.trace-attachment`). |
165165
| `attributes` | object | No | arbitrary attributes that will be queryable on the attachment trace item, similar to spans, logs, and trace metrics. |
166166

167167

0 commit comments

Comments
 (0)