Skip to content

Commit e73cb13

Browse files
committed
clarify reasoning for no origin on manual log creation and clarify automatically emitted logs origin
1 parent 82516ee commit e73cb13

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

develop-docs/sdk/telemetry/logs.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -309,13 +309,13 @@ If a log is generated by an SDK integration, the SDK should also set the `sentry
309309

310310
Logs can be generated in three ways:
311311

312-
1. User calls Sentry’s Logging API directly: No `sentry.origin`.
312+
1. User calls Sentry’s Logging API directly: No `sentry.origin`. Users are charged by how many bytes are used, therefore we want to minimize the size of each log.
313313

314314
2. Captured from a logging library: Use `auto.log.<name>` format. where `<name>` is the relevant integration. For example, the .NET Serilog library emits:
315315
```json
316316
{ "sentry.origin": "auto.log.serilog" }
317317
```
318-
3. Auto-emitted logs from other instrumented systems: Use the matching trace origin category (e.g. db, http, etc.).
318+
3. Auto-emitted logs from other instrumented systems: Use the `auto.<category>.<integration-name>` format as outlined in [Trace Origin](/sdk/telemetry/traces/trace-origin/) documentation.
319319
```json
320320
{ "sentry.origin": "auto.db.prisma" }
321321
```

0 commit comments

Comments
 (0)