Skip to content

Commit ac3064a

Browse files
authored
ref(span-v2-sdk): Add sentry.span.source attribute to common attributes list (#15946)
1 parent d61e0aa commit ac3064a

2 files changed

Lines changed: 7 additions & 0 deletions

File tree

develop-docs/sdk/data-model/event-payloads/transaction.mdx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,12 @@ _Optional_. An object containing standard/custom measurements with keys signifyi
181181

182182
## Transaction Annotations
183183

184+
<Alert level="info">
185+
186+
Span name source information MUST still be set for Span v2 segment spans, although via a span attribute. See [Span v2 Protocol](/sdk/telemetry/spans/span-protocol/#common-attribute-keys) for more information.
187+
188+
</Alert>
189+
184190
`transaction_info`
185191

186192
_Recommended_. Additional information about the name of the transaction.

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,7 @@ Empty attributes must be omitted.
168168
| `sentry.environment` | string | The environment name (e.g., "production", "staging", "development") |
169169
| `sentry.segment.name` | string | The segment name (e.g., "GET /users") |
170170
| `sentry.segment.id` | string | The segment span id |
171+
| `sentry.span.source` | string | The source of the span name. **MUST** be set on segment spans, **MAY** be set on child spans. <br/> See [Sentry Conventions](https://github.com/getsentry/sentry-conventions/attributes/sentry#sentry-span-source) for all supported sources. <br/>See [Transaction Annotations](/sdk/data-model/event-payloads/transaction/#transaction-annotations) and [Clustering](/backend/application-domains/transaction-clustering/#automatic-transaction-clustering) for more information.|
171172
| `os.name` | string | The operating system name (e.g., "Linux", "Windows", "macOS") |
172173
| `browser.name` | string | The browser name (e.g., "Chrome", "Firefox", "Safari") |
173174
| `user.id` | string | The user ID (gated by `sendDefaultPii`) |

0 commit comments

Comments
 (0)