Skip to content
Merged
Show file tree
Hide file tree
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
4 changes: 3 additions & 1 deletion develop-docs/sdk/data-model/envelope-items.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -430,7 +430,9 @@ _None_

**Additional Item Headers:**

_None_
`platform`

: **String, required.** The platform of the profiled application. This item header is used for rate limiting and categorization. It must match the `platform` in the payload. the Examples: `"javascript"`, `"node"`, `"python"`, `"cocoa"`, etc.

### Check-Ins

Expand Down
8 changes: 3 additions & 5 deletions develop-docs/sdk/telemetry/profiles/sample-format-v2.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -280,17 +280,15 @@ It's suggested to remove unnecessary data like thread data without samples from

## Ingestion

After this payload is generated, serialize it as JSON, pack it into an
After this payload is generated, serialize it as JSON, pack it into an [Envelope](/sdk/data-model/envelopes/) with the item type [`profile_chunk`](/sdk/data-model/envelope-items/#profile-chunk) and send it to Relay.

[Envelope](/sdk/data-model/envelopes/) with the item type [`profile_chunk`](/sdk/data-model/envelope-items/#profile-chunk) and send

it to Relay.
The `platform` item header is required for rate limiting and categorization of the profile chunk and must match the `platform` in the payload.

This envelope should look like this:

```json
{"event_id":"a229377b82ad4898be7c3a6272d052d9"}
{"type":"profile_chunk"}
{"type":"profile_chunk", "platform":"node"}
{ /* profile_chunk JSON payload */}
````

Expand Down