Skip to content

Commit 66b8202

Browse files
committed
naming
1 parent fd54cf1 commit 66b8202

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
@@ -461,7 +461,7 @@ _None_
461461

462462
Item type `"trace_metric"` contains an array of metric payloads encoded as JSON. This allows for multiple metric payloads to be sent in a single envelope item.
463463

464-
Only a single trace_metric container is allowed per envelope. The `item_count` field in the envelope item header must match the amount of metrics sent, it's not optional. A `content_type` field in the envelope item header must be set to `application/vnd.sentry.items.trace_metric+json`.
464+
Only a single trace_metric container is allowed per envelope. The `item_count` field in the envelope item header must match the amount of metrics sent. A `content_type` field in the envelope item header must be set to `application/vnd.sentry.items.trace-metric+json`. Both the `item_count` and `content_type` fields are required.
465465

466466
It's okay to mix metrics from different traces into the same trace_metric envelope item, but if you do, you MUST not attach a DSC (dynamic sampling context) to the envelope header.
467467

@@ -474,7 +474,7 @@ Example:
474474
{
475475
"type": "trace_metric",
476476
"item_count": 5,
477-
"content_type": "application/vnd.sentry.items.trace_metric+json"
477+
"content_type": "application/vnd.sentry.items.trace-metric+json"
478478
}
479479
{
480480
"items": [{..metric..}, {..metric..}, {..metric..}, {..metric..}, {..metric..}]
@@ -497,7 +497,7 @@ _None_
497497

498498
`content_type`
499499

500-
: **string, required.** The content type of the metric entries. Must be `application/vnd.sentry.items.trace_metric+json`.
500+
: **string, required.** The content type of the metric entries. Must be `application/vnd.sentry.items.trace-metric+json`.
501501

502502
### Reserved Types
503503

0 commit comments

Comments
 (0)