Skip to content
Open
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
19 changes: 13 additions & 6 deletions develop-docs/sdk/telemetry/logs.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -305,13 +305,20 @@ If there are no `sentry.message.parameter.X` attributes included in the log, the

#### SDK Integration Attributes

If a log is generated by an SDK integration, the SDK should also set the `sentry.origin` attribute, as per the [Trace Origin](/sdk/telemetry/traces/trace-origin/) documentation. It is assumed that logs without a `sentry.origin` attribute are manually created by the user.
If a log is generated by an SDK integration, the SDK should also set the `sentry.origin` attribute, as per the [Trace Origin](/sdk/telemetry/traces/trace-origin/) documentation.

```json
{
"sentry.origin": "auto.db.graphql"
}
```
Logs can be generated in three ways:

1. User calls Sentry’s Logging API directly: No `sentry.origin`.

2. Captured from a logging library: Use `auto.log.<name>` format. where `<name>` is the relevant integration. For example, the .NET Serilog library emits:
```json
{ "sentry.origin": "auto.log.serilog" }
```
3. Auto-emitted logs from other instrumented systems: Use the matching trace origin category (e.g. db, http, etc.).
```json
{ "sentry.origin": "auto.db.prisma" }
```

#### User Attributes

Expand Down
1 change: 1 addition & 0 deletions develop-docs/sdk/telemetry/traces/span-operations.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,7 @@ Messages/Queue spans are expected follow OpenTelemetry's [Messaging](https://git
| graphql | |
| grpc | |
| http | |
| log | |
| mark | |
| measure | |
| middleware | |
Expand Down
Loading