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
17 changes: 16 additions & 1 deletion develop-docs/sdk/telemetry/logs.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,24 @@ There are two ways to send logs to Sentry: via the `log` envelope and Sentry Log

All SDKs are required to send logs via the `log` envelope and Sentry Log protocol. The `otel_log` envelope and OpenTelemetry Log protocol are just documented for completeness and to provide a reference for SDK authors. See the [Appendix A](#appendix-a-otel_log-envelope-item-payload) for the `otel_log` envelope item payload.

### `log` Envelope Item

The `log` envelope item is an object that contains an array of log payloads encoded as JSON. This allows for multiple log payloads to be sent in a single envelope item. For more details on the `log` envelope item, see the [Log Envelope Item](/sdk/data-model/envelope-items/#log) documentation.

```json
{
"type": "log",
"item_count": 5,
"content_type": "application/vnd.sentry.items.log+json"
}
{
"items": [{..log..}, {..log..}, {..log..}, {..log..}, {..log..}]
}
```

### `log` Envelope Item Payload

The `log` envelope item payload is a JSON object that represents a Sentry Log. Multiple `log` envelope items can be sent in a single envelope.
The `log` envelope item payload is a JSON object that represents a Sentry Log.

```json
{
Expand Down