Skip to content

Commit 7c879e6

Browse files
committed
Add common span attributes
1 parent 35befac commit 7c879e6

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

develop-docs/sdk/telemetry/spans/span-protocol.mdx

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,11 +167,22 @@ Attributes are stored as key-value pairs where each value is an object with type
167167

168168
#### Common Attribute Keys
169169

170+
All attributes mentioned below must be attached to every span being emitted from the SDK, depending on the platform.
171+
Empty attributes must be emitted.
172+
170173
| Attribute Key | Type | Description |
171174
|---------------|------|-------------|
172175
| `sentry.release` | string | The release version of the application |
173176
| `sentry.environment` | string | The environment name (e.g., "production", "staging", "development") |
174-
| `sentry.platform` | string | The platform/language (e.g., "php", "javascript", "python") |
177+
| `sentry.segment.name` | string | The segment name (e.g., "GET /users") |
178+
| `os.name` | string | The operating system name (e.g., "Linux", "Windows", "macOS") |
179+
| `browser.name` | string | The browser name (e.g., "Chrome", "Firefox", "Safari") |
180+
| `user.id` | string | The user ID (gated by `sendDefaultPii`) |
181+
| `user.email` | string | The user email (gated by `sendDefaultPii`) |
182+
| `user.ip_address` | string | The user IP address (gated by `sendDefaultPii`) |
183+
| `user.username` | string | The user username (gated by `sendDefaultPii`) |
184+
| `thread.id` | string | The thread ID |
185+
| `thread.name` | string | The thread name |
175186
| `sentry.sdk.name` | string | Name of the Sentry SDK (e.g., "sentry.php", "sentry.javascript") |
176187
| `sentry.sdk.version` | string | Version of the Sentry SDK |
177188

0 commit comments

Comments
 (0)