Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ When SDKs parse a cookie header, the following rules apply:
- A segment without `"="` is a nameless cookie: the bare token is its **value**, not its name ([RFC 6265bis](https://datatracker.ietf.org/doc/html/draft-ietf-httpbis-rfc6265bis)). The SDK **MUST** replace the element with `"[Filtered]"`.
- `Set-Cookie` attributes such as `Max-Age`, `Path`, or `HttpOnly` are metadata, not cookies, and **MUST NOT** appear as cookie pairs.

For example, `Cookie: user_session=abc; theme=dark-mode;opaque-token` and `Set-Cookie: theme=light-mode; HttpOnly` become (based on [`http.request.header.<key>`](https://getsentry.github.io/sentry-conventions/attributes/http/#http-request-header-key)):
For example, `Cookie: user_session=abc; theme=dark-mode;opaque-token` and `Set-Cookie: theme=light-mode; HttpOnly` become (based on [`http.request.header.<key>`](https://conventions.sentry.dev/attributes/http/#http-request-header-key)):

```
http.request.header.cookie: ["user_session=[Filtered]", "theme=dark-mode", "[Filtered]"]
Expand Down
10 changes: 5 additions & 5 deletions develop-docs/sdk/foundations/client/integrations/mcp/tracing.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ The MCP Server module is the instrumentation for the [anthropic MCP](https://www

For your MCP Server data to show up in Sentry, specific spans must be created with well-defined names and data attributes. See below.

Span naming conventions for MCP spans are defined in the [Sentry Conventions](https://getsentry.github.io/sentry-conventions/names/#mcp) repo. Refer to that document for how to construct span names (operation values, naming templates, and examples). Sentry conventions follow OTel conventions closely, but we should keep an eye on how OTel's conventions change. The rest of this page covers the data attributes that **MUST** or **SHOULD** be set on each span type.
Span naming conventions for MCP spans are defined in the [Sentry Conventions](https://conventions.sentry.dev/names/#mcp) repo. Refer to that document for how to construct span names (operation values, naming templates, and examples). Sentry conventions follow OTel conventions closely, but we should keep an eye on how OTel's conventions change. The rest of this page covers the data attributes that **MUST** or **SHOULD** be set on each span type.

### Common Span Attributes

Expand Down Expand Up @@ -95,7 +95,7 @@ MCP Server spans use the operation value `"mcp.server"` and fall into these cate

### Tool Call Span

Describes MCP tool execution requests from clients. See [Sentry Conventions](https://getsentry.github.io/sentry-conventions/names/#mcp) for the span naming pattern.
Describes MCP tool execution requests from clients. See [Sentry Conventions](https://conventions.sentry.dev/names/#mcp) for the span naming pattern.

- The span `op` **MUST** be `"mcp.server"`.
- The `mcp.method.name` attribute **MUST** be `"tools/call"`.
Expand All @@ -116,7 +116,7 @@ Additional attributes on the span:

### Prompt Span

Describes MCP prompt requests from clients. See [Sentry Conventions](https://getsentry.github.io/sentry-conventions/names/#mcp) for the span naming pattern.
Describes MCP prompt requests from clients. See [Sentry Conventions](https://conventions.sentry.dev/names/#mcp) for the span naming pattern.

- The span `op` **MUST** be `"mcp.server"`.
- The `mcp.method.name` attribute **MUST** be `"prompts/get"`.
Expand All @@ -131,7 +131,7 @@ Additional attributes on the span:

### Resource Span

Describes MCP resource access requests from clients. See [Sentry Conventions](https://getsentry.github.io/sentry-conventions/names/#mcp) for the span naming pattern.
Describes MCP resource access requests from clients. See [Sentry Conventions](https://conventions.sentry.dev/names/#mcp) for the span naming pattern.

- The span `op` **MUST** be `"mcp.server"`.
- The `mcp.method.name` attribute **MUST** be `"resources/read"`.
Expand Down Expand Up @@ -162,7 +162,7 @@ Additional attributes on the span:

### Notification Span

Describes MCP notification messages (one-way messages that don't expect a response). See [Sentry Conventions](https://getsentry.github.io/sentry-conventions/names/#mcp) for the span naming pattern.
Describes MCP notification messages (one-way messages that don't expect a response). See [Sentry Conventions](https://conventions.sentry.dev/names/#mcp) for the span naming pattern.

- The span `op` **MUST** be `"mcp.notification.client_to_server"` or `"mcp.notification.server_to_client"`.
- The `mcp.method.name` attribute **MUST** be set to the notification method. (e.g. `"notifications/cancelled"`)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ Use this template as a starting point for the project description. For cross-SDK
<!-- Delete items that don't apply -->
- [ ] [Public docs](https://docs.sentry.io/)
- [ ] [Develop Docs](https://develop.sentry.dev)
- [ ] [Sentry Conventions](https://getsentry.github.io/sentry-conventions/)
- [ ] [Sentry Conventions](https://conventions.sentry.dev/)
- [ ] [Sentry CLI](https://github.com/getsentry/cli)
- [ ] Public SDK example projects
- [ ] In-product prompts/onboarding
Expand Down
4 changes: 2 additions & 2 deletions develop-docs/sdk/telemetry/spans/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -537,7 +537,7 @@ To associate an attachment with a span, submit a [trace attachment](/sdk/telemet

Attributes outside the [common attribute keys](#common-attribute-keys) list **MUST** only be attached to the span they conceptually belong on, and **MUST NOT** be propagated to children. Attributes mirroring transaction context data **SHOULD** only be set on the segment span.

All attributes set on a streamed span **MUST** use keys defined in [Sentry Conventions](https://getsentry.github.io/sentry-conventions/) before introduction in an SDK.
All attributes set on a streamed span **MUST** use keys defined in [Sentry Conventions](https://conventions.sentry.dev/) before introduction in an SDK.

Empty attributes **MUST** be omitted.

Expand All @@ -547,7 +547,7 @@ Guidelines for specific attributes:

#### HTTP Headers

HTTP headers **MUST** be emitted following the [`http.request.header.<key>`](https://getsentry.github.io/sentry-conventions/attributes/http/#http-request-header-key) and [`http.response.header.<key>`](https://getsentry.github.io/sentry-conventions/attributes/http/#http-response-header-key) conventions:
HTTP headers **MUST** be emitted following the [`http.request.header.<key>`](https://conventions.sentry.dev/attributes/http/#http-request-header-key) and [`http.response.header.<key>`](https://conventions.sentry.dev/attributes/http/#http-response-header-key) conventions:

- `<key>` **MUST** be the lowercased, but otherwise unchanged, header name.
- The value **MUST** be a string array, even if the header has a single value. Multiple values for the same header **MUST** be emitted as separate array elements.
Expand Down
4 changes: 2 additions & 2 deletions develop-docs/sdk/telemetry/traces/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ The option controls if attributes with code source information are set on databa
The following attributes, or a subset thereof, SHOULD be set on database query spans if the threshold is exceeded.
Values for some of the attributes below may be unavailable in some situations for the SDK, and in these cases a subset MAY be provided.

The attributes are described in <Link to="https://getsentry.github.io/sentry-conventions/generated/attributes/code.html">Sentry's Span Convention Documentation</Link>.
The attributes are described in <Link to="https://conventions.sentry.dev/attributes/code/">Sentry's Span Convention Documentation</Link>.

- code.file.path
- code.function.name
Expand All @@ -132,7 +132,7 @@ When enabled, the attributes SHOULD be attached only when the time to receive th
The following attributes, or a subset thereof, SHOULD be set if the threshold is exceeded.
Values for some of the attributes below may be unavailable in some situations for the SDK, and in these cases a subset MAY be provided.

The attributes are described in <Link to="https://getsentry.github.io/sentry-conventions/generated/attributes/code.html">Sentry's Span Convention Documentation</Link>.
The attributes are described in <Link to="https://conventions.sentry.dev/attributes/code/">Sentry's Span Convention Documentation</Link>.

- code.file.path
- code.function.name
Expand Down
2 changes: 1 addition & 1 deletion develop-docs/sdk/telemetry/traces/sql-transactions.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Transaction statements SHOULD produce spans whether they are issued through a da

### Span Data

Refer to <Link to="https://getsentry.github.io/sentry-conventions/generated/attributes/db.html">Database Span Data Conventions</Link> for a full list of attributes that database spans should have.
Refer to <Link to="https://conventions.sentry.dev/attributes/db/">Database Span Data Conventions</Link> for a full list of attributes that database spans should have.
The SDK SHOULD set the

- db.system.name
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ You can set attributes when starting a span:

<Alert level="info">

Sentry automatically sets several standard attributes on spans. To avoid accidentally overwriting these, refer to our <a href="https://getsentry.github.io/sentry-conventions/attributes/">Sentry Attribute Conventions</a>.
Sentry automatically sets several standard attributes on spans. To avoid accidentally overwriting these, refer to our <a href="https://conventions.sentry.dev/attributes/">Sentry Attribute Conventions</a>.

</Alert>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,7 @@ Scope `tags` and `extra` [aren't carried over to streamed spans](#scope-tags-and

### Span Names Are Low Cardinality

In stream mode, span names follow the [Sentry span name conventions](https://getsentry.github.io/sentry-conventions/names/). URLs, route parameters, and other client-supplied values are no longer part of the name:
In stream mode, span names follow the [Sentry span name conventions](https://conventions.sentry.dev/names/). URLs, route parameters, and other client-supplied values are no longer part of the name:

| Span op | Before | After |
| ------------------------ | --------------------------------------- | ---------------------------------------- |
Expand Down
2 changes: 1 addition & 1 deletion docs/platforms/python/tracing/streamed-spans/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ Attach structured metadata to spans using `attributes`, which can be `str`, `int

<Alert level="info">

Sentry automatically sets several standard attributes on spans. To avoid accidentally overwriting these, refer to our <a href="https://getsentry.github.io/sentry-conventions/attributes/">Sentry Attribute Conventions</a>.
Sentry automatically sets several standard attributes on spans. To avoid accidentally overwriting these, refer to our <a href="https://conventions.sentry.dev/attributes/">Sentry Attribute Conventions</a>.

</Alert>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ Attach structured metadata to spans using `attributes`, which can be `str`, `int

<Alert level="info">

Sentry automatically sets several standard attributes on spans. To avoid accidentally overwriting these, refer to our <a href="https://getsentry.github.io/sentry-conventions/attributes/">Sentry Attribute Conventions</a>.
Sentry automatically sets several standard attributes on spans. To avoid accidentally overwriting these, refer to our <a href="https://conventions.sentry.dev/attributes/">Sentry Attribute Conventions</a>.

</Alert>

Expand Down
2 changes: 1 addition & 1 deletion includes/migration/javascript-v11/span-name-changes.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ platformCategory: all
order: 85
---

In stream mode, span names follow the [Sentry span name conventions](https://getsentry.github.io/sentry-conventions/names/). URLs, route parameters, and other client-supplied values are no longer part of the name:
In stream mode, span names follow the [Sentry span name conventions](https://conventions.sentry.dev/names/). URLs, route parameters, and other client-supplied values are no longer part of the name:

| Span op | Before | After |
| ------------------------ | --------------------------------------- | ---------------------------------------- |
Expand Down
2 changes: 1 addition & 1 deletion platform-includes/metrics/usage/rust.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -45,4 +45,4 @@ metrics::distribution("http.response_time", 187.5)

Attributes let you filter and group metrics in Sentry. Add them with `.attribute(key, value)` before you call `.capture()`. You can add multiple attributes by chaining calls to `.attribute`.

When possible, use [Sentry Semantic Conventions](https://getsentry.github.io/sentry-conventions/) for attribute keys.
When possible, use [Sentry Semantic Conventions](https://conventions.sentry.dev/) for attribute keys.
Loading