Skip to content

Commit 7668647

Browse files
authored
Document backend SDKs metrics requirements (#15537)
1 parent e125414 commit 7668647

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

develop-docs/sdk/telemetry/metrics.mdx

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -425,6 +425,18 @@ By default, Relay should parse the user agent attached to an incoming metric env
425425
}
426426
```
427427

428+
#### Backend SDKs
429+
430+
For backend SDKs (Node.js, Python, PHP, etc.), the SDKs should attach the following:
431+
432+
1. `server.address`: The address of the server that sent the log. Equivalent to [`server_name`](sdk/data-model/event-payloads/#optional-attributes) we attach to errors and transactions.
433+
434+
```json
435+
{
436+
"server.address": "foo.example.com"
437+
}
438+
```
439+
428440
#### Future Default Attributes
429441

430442
The SDKs should aim to minimize the number of default attributes attached to a metric. Metrics cardinality can explode quickly with too many attributes, and we want to keep metrics lightweight and cost-effective.

0 commit comments

Comments
 (0)