Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Next Next commit
ref(logs): Change documentation for logs sentry.origin consolidation
  • Loading branch information
alexsohn1126 committed Oct 3, 2025
commit 1a438ff2df75ed2864a7ec7dfc2f42d5b6b1996f
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 3rd-party logging library: Use `auto.log[...]` format.
```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