Skip to content

Commit 9fc6809

Browse files
committed
add note about default attributes
1 parent e446de7 commit 9fc6809

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

develop-docs/sdk/telemetry/logs.mdx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -371,6 +371,12 @@ For mobile, desktop, and native SDKs (Android, Apple, Electron, etc.), the SDKs
371371
}
372372
```
373373

374+
#### Future Default Attributes
375+
376+
The SDKs should aim to minimize the number of default attributes attached to a log. Logs are intended to be lightweight, and we want to try to keep the average byte size of a log as small as possible as users will be charged per byte size of logs sent.
377+
378+
We are trying to settle on a balance of debuggability vs. smaller byte size for logs which is why new default attributes should only be added after significant feedback from users and discussion internally with the SDK and ingest teams. There is no hard rule about what exact attributes are allowed, every proposed new attribute will be evaluated on a case-by-case basis.
379+
374380
### Data Category and Rate Limiting
375381

376382
A new data category for logs has been added to Relay, `log_item`. Both the `log` envelope and `otel_log` envelope is covered by this data category. This will need to implemented in the SDK. Rate limiting applies as usual, there is no special rate limit or rate limiting behaviour for logs. With this data category, client outcomes should be tracked by the SDKs to track how often logs are dropped by the SDK.

0 commit comments

Comments
 (0)