sentry-conventions

Sentry Attributes

Stable Attributes

sentry.cancellation_reason

The reason why a span ended early.

Property Value
Type string
Has PII false
Exists in OpenTelemetry No
Example document.hidden

sentry.client_sample_rate

Rate at which a span was sampled in the SDK.

Property Value
Type double
Has PII false
Exists in OpenTelemetry No
Example 0.5

sentry.description

The human-readable description of a span.

Property Value
Type string
Has PII maybe
Exists in OpenTelemetry No
Example index view query

sentry.dist

The sentry dist.

Property Value
Type string
Has PII false
Exists in OpenTelemetry No
Example 1.0

sentry.environment

The sentry environment.

Property Value
Type string
Has PII false
Exists in OpenTelemetry No
Example production
Aliases environment

sentry.exclusive_time

The exclusive time duration of the span.

Property Value
Type integer
Has PII false
Exists in OpenTelemetry No
Example 1234

sentry.http.prefetch

If an http request was a prefetch request.

Property Value
Type boolean
Has PII false
Exists in OpenTelemetry No
Example true

sentry.idle_span_finish_reason

The reason why an idle span ended early.

Property Value
Type string
Has PII false
Exists in OpenTelemetry No
Example idleTimeout

sentry.message.parameter.<key>

A parameter used in the message template. <key> can either be the number that represent the parameter’s position in the template string (sentry.message.parameter.0, sentry.message.parameter.1, etc) or the parameter’s name (sentry.message.parameter.item_id, sentry.message.parameter.user_id, etc)

Property Value
Type string
Has PII maybe
Exists in OpenTelemetry No
Example sentry.message.parameter.0='123'

sentry.message.template

The parameterized template string.

Property Value
Type string
Has PII maybe
Exists in OpenTelemetry No
Example Hello, {name}!

sentry.module.<key>

A module that was loaded in the process. The key is the name of the module.

Property Value
Type string
Has PII maybe
Exists in OpenTelemetry No
Has dynamic suffix Yes
Example sentry.module.brianium/paratest='v7.7.0'

sentry.nextjs.ssr.function.route

A parameterized route for a function in Next.js that contributes to Server-Side Rendering. Should be present on spans that track such functions when the file location of the function is known.

Property Value
Type string
Has PII false
Exists in OpenTelemetry No
Example /posts/[id]/layout

sentry.nextjs.ssr.function.type

A descriptor for a for a function in Next.js that contributes to Server-Side Rendering. Should be present on spans that track such functions.

Property Value
Type string
Has PII false
Exists in OpenTelemetry No
Example generateMetadata

sentry.op

The operation of a span.

Property Value
Type string
Has PII false
Exists in OpenTelemetry No
Example http.client

sentry.origin

The origin of the instrumentation (e.g. span, log, etc.)

Property Value
Type string
Has PII false
Exists in OpenTelemetry No
Example auto.http.otel.fastify

sentry.platform

The sdk platform that generated the event.

Property Value
Type string
Has PII false
Exists in OpenTelemetry No
Example php

sentry.profile_id

The id of the sentry profile.

Property Value
Type string
Has PII false
Exists in OpenTelemetry No
Example 123e4567e89b12d3a456426614174000
Aliases profile_id

sentry.release

The sentry release.

Property Value
Type string
Has PII false
Exists in OpenTelemetry No
Example 7.0.0
Aliases service.version, release

sentry.replay_id

The id of the sentry replay.

Property Value
Type string
Has PII false
Exists in OpenTelemetry No
Example 123e4567e89b12d3a456426614174000
Aliases replay_id

sentry.sdk.integrations

A list of names identifying enabled integrations. The list shouldhave all enabled integrations, including default integrations. Defaultintegrations are included because different SDK releases may contain differentdefault integrations.

Property Value
Type string[]
Has PII false
Exists in OpenTelemetry No
Example ["InboundFilters","FunctionToString","BrowserApiErrors","Breadcrumbs"]

sentry.sdk.name

The sentry sdk name.

Property Value
Type string
Has PII false
Exists in OpenTelemetry No
Example @sentry/react

sentry.sdk.version

The sentry sdk version.

Property Value
Type string
Has PII false
Exists in OpenTelemetry No
Example 7.0.0

sentry.segment.id

The segment ID of a span

Property Value
Type string
Has PII false
Exists in OpenTelemetry No
Example 051581bf3cb55c13
Aliases sentry.segment_id

sentry.segment.name

The segment name of a span

Property Value
Type string
Has PII maybe
Exists in OpenTelemetry No
Example GET /user

sentry.server_sample_rate

Rate at which a span was sampled in Relay.

Property Value
Type double
Has PII false
Exists in OpenTelemetry No
Example 0.5

sentry.span.source

The source of a span, also referred to as transaction source.

Property Value
Type string
Has PII false
Exists in OpenTelemetry No
Example route

sentry.trace.parent_span_id

The span id of the span that was active when the log was collected. This should not be set if there was no active span.

Property Value
Type string
Has PII false
Exists in OpenTelemetry No
Example b0e6f15b45c36b12

sentry.transaction

The sentry transaction (segment name).

Property Value
Type string
Has PII false
Exists in OpenTelemetry No
Example GET /
Aliases transaction

Deprecated Attributes

These attributes are deprecated and will be removed in a future version. Please use the recommended replacements.

sentry.browser.name

The name of the browser.

Property Value
Type string
Has PII maybe
Exists in OpenTelemetry No
Example Chrome
Deprecated Yes, use browser.name instead
Aliases browser.name

sentry.browser.version

The version of the browser.

Property Value
Type string
Has PII maybe
Exists in OpenTelemetry No
Example 120.0.6099.130
Deprecated Yes, use browser.version instead
Aliases browser.version

sentry.segment_id

The segment ID of a span

Property Value
Type string
Has PII false
Exists in OpenTelemetry No
Example 051581bf3cb55c13
Deprecated Yes, use sentry.segment.id instead
Aliases sentry.segment.id