Sentry Attributes

53 attributes in this category. 50 stable · 3 deprecated

Stable Attributes

sentry.action

string PII: Maybe OTel: False

Used as a generic attribute representing the action depending on the type of span. For instance, this is the database query operation for DB spans, and the request method for HTTP spans.

Example SELECT
Raw JSON
{
  "key": "sentry.action",
  "brief": "Used as a generic attribute representing the action depending on the type of span. For instance, this is the database query operation for DB spans, and the request method for HTTP spans.",
  "type": "string",
  "pii": {
    "key": "maybe"
  },
  "is_in_otel": false,
  "example": "SELECT"
}

sentry.cancellation_reason

string PII: False OTel: False

The reason why a span ended early.

Example document.hidden
Raw JSON
{
  "key": "sentry.cancellation_reason",
  "brief": "The reason why a span ended early.",
  "type": "string",
  "pii": {
    "key": "false"
  },
  "is_in_otel": false,
  "example": "document.hidden"
}

sentry.category

string PII: False OTel: False

The high-level category of a span, derived from the span operation or span attributes. This categorizes spans by their general purpose (e.g., database, HTTP, UI). Known values include: 'ai', 'ai.pipeline', 'app', 'browser', 'cache', 'console', 'db', 'event', 'file', 'function.aws', 'function.azure', 'function.gcp', 'function.nextjs', 'function.remix', 'graphql', 'grpc', 'http', 'measure', 'middleware', 'navigation', 'pageload', 'queue', 'resource', 'rpc', 'serialize', 'subprocess', 'template', 'topic', 'ui', 'ui.angular', 'ui.ember', 'ui.react', 'ui.svelte', 'ui.vue', 'view', 'websocket'.

Example db
Raw JSON
{
  "key": "sentry.category",
  "brief": "The high-level category of a span, derived from the span operation or span attributes. This categorizes spans by their general purpose (e.g., database, HTTP, UI). Known values include: 'ai', 'ai.pipeline', 'app', 'browser', 'cache', 'console', 'db', 'event', 'file', 'function.aws', 'function.azure', 'function.gcp', 'function.nextjs', 'function.remix', 'graphql', 'grpc', 'http', 'measure', 'middleware', 'navigation', 'pageload', 'queue', 'resource', 'rpc', 'serialize', 'subprocess', 'template', 'topic', 'ui', 'ui.angular', 'ui.ember', 'ui.react', 'ui.svelte', 'ui.vue', 'view', 'websocket'.",
  "type": "string",
  "pii": {
    "key": "false"
  },
  "is_in_otel": false,
  "example": "db"
}

sentry.client_sample_rate

double PII: False OTel: False

Rate at which a span was sampled in the SDK.

Example 0.5
Raw JSON
{
  "key": "sentry.client_sample_rate",
  "brief": "Rate at which a span was sampled in the SDK.",
  "type": "double",
  "pii": {
    "key": "false"
  },
  "is_in_otel": false,
  "example": 0.5
}

sentry.description

string PII: Maybe OTel: False

The human-readable description of a span.

Example index view query
Raw JSON
{
  "key": "sentry.description",
  "brief": "The human-readable description of a span.",
  "type": "string",
  "pii": {
    "key": "maybe"
  },
  "is_in_otel": false,
  "example": "index view query"
}

sentry.dist

string PII: False OTel: False

The sentry dist.

Example 1.0
Raw JSON
{
  "key": "sentry.dist",
  "brief": "The sentry dist.",
  "type": "string",
  "pii": {
    "key": "false"
  },
  "is_in_otel": false,
  "example": "1.0"
}

sentry.domain

string PII: Maybe OTel: False

Used as a generic attribute representing the domain depending on the type of span. For instance, this is the collection/table name for database spans, and the server address for HTTP spans.

Example example.com
Raw JSON
{
  "key": "sentry.domain",
  "brief": "Used as a generic attribute representing the domain depending on the type of span. For instance, this is the collection/table name for database spans, and the server address for HTTP spans.",
  "type": "string",
  "pii": {
    "key": "maybe"
  },
  "is_in_otel": false,
  "example": "example.com"
}

sentry.dsc.environment

string PII: False OTel: False

The environment from the dynamic sampling context.

Example prod
Raw JSON
{
  "key": "sentry.dsc.environment",
  "brief": "The environment from the dynamic sampling context.",
  "type": "string",
  "pii": {
    "key": "false"
  },
  "is_in_otel": false,
  "example": "prod"
}

sentry.dsc.public_key

string PII: Maybe OTel: False

The public key from the dynamic sampling context.

Example c51734c603c4430eb57cb0a5728a479d
Raw JSON
{
  "key": "sentry.dsc.public_key",
  "brief": "The public key from the dynamic sampling context.",
  "type": "string",
  "pii": {
    "key": "maybe"
  },
  "is_in_otel": false,
  "example": "c51734c603c4430eb57cb0a5728a479d"
}

sentry.dsc.release

string PII: False OTel: False

The release identifier from the dynamic sampling context.

Example frontend@e8211be71b214afab5b85de4b4c54be3714952bb
Raw JSON
{
  "key": "sentry.dsc.release",
  "brief": "The release identifier from the dynamic sampling context.",
  "type": "string",
  "pii": {
    "key": "false"
  },
  "is_in_otel": false,
  "example": "frontend@e8211be71b214afab5b85de4b4c54be3714952bb"
}

sentry.dsc.sample_rate

string PII: False OTel: False

The sample rate from the dynamic sampling context.

Example 1.0
Raw JSON
{
  "key": "sentry.dsc.sample_rate",
  "brief": "The sample rate from the dynamic sampling context.",
  "type": "string",
  "pii": {
    "key": "false"
  },
  "is_in_otel": false,
  "example": "1.0"
}

sentry.dsc.sampled

boolean PII: False OTel: False

Whether the event was sampled according to the dynamic sampling context.

Example true
Raw JSON
{
  "key": "sentry.dsc.sampled",
  "brief": "Whether the event was sampled according to the dynamic sampling context.",
  "type": "boolean",
  "pii": {
    "key": "false"
  },
  "is_in_otel": false,
  "example": true
}

sentry.dsc.trace_id

string PII: False OTel: False

The trace ID from the dynamic sampling context.

Example 047372980460430cbc78d9779df33a46
Raw JSON
{
  "key": "sentry.dsc.trace_id",
  "brief": "The trace ID from the dynamic sampling context.",
  "type": "string",
  "pii": {
    "key": "false"
  },
  "is_in_otel": false,
  "example": "047372980460430cbc78d9779df33a46"
}

sentry.dsc.transaction

string PII: False OTel: False

The transaction name from the dynamic sampling context.

Example /issues/errors-outages/
Raw JSON
{
  "key": "sentry.dsc.transaction",
  "brief": "The transaction name from the dynamic sampling context.",
  "type": "string",
  "pii": {
    "key": "false"
  },
  "is_in_otel": false,
  "example": "/issues/errors-outages/"
}

sentry.environment

string PII: False OTel: False

The sentry environment.

Example production
Aliases environment
Raw JSON
{
  "key": "sentry.environment",
  "brief": "The sentry environment.",
  "type": "string",
  "pii": {
    "key": "false"
  },
  "is_in_otel": false,
  "example": "production",
  "alias": [
    "environment"
  ]
}

sentry.exclusive_time

double PII: Maybe OTel: False

The exclusive time duration of the span in milliseconds.

Example 1234
Raw JSON
{
  "key": "sentry.exclusive_time",
  "brief": "The exclusive time duration of the span in milliseconds.",
  "type": "double",
  "pii": {
    "key": "maybe"
  },
  "is_in_otel": false,
  "example": 1234
}

sentry.graphql.operation

string PII: Maybe OTel: False

Indicates the type of graphql operation, emitted by the Javascript SDK.

Example getUserById
Raw JSON
{
  "key": "sentry.graphql.operation",
  "brief": "Indicates the type of graphql operation, emitted by the Javascript SDK.",
  "type": "string",
  "pii": {
    "key": "maybe"
  },
  "is_in_otel": false,
  "example": "getUserById"
}

sentry.group

string PII: False OTel: False

Stores the hash of `sentry.normalized_description`. This is primarily used for grouping spans in the product end.

Raw JSON
{
  "key": "sentry.group",
  "brief": "Stores the hash of `sentry.normalized_description`. This is primarily used for grouping spans in the product end.",
  "type": "string",
  "pii": {
    "key": "false"
  },
  "is_in_otel": false
}

sentry.http.prefetch

boolean PII: False OTel: False

If an http request was a prefetch request.

Example true
Raw JSON
{
  "key": "sentry.http.prefetch",
  "brief": "If an http request was a prefetch request.",
  "type": "boolean",
  "pii": {
    "key": "false"
  },
  "is_in_otel": false,
  "example": true
}

sentry.idle_span_finish_reason

string PII: False OTel: False

The reason why an idle span ended early.

Example idleTimeout
Raw JSON
{
  "key": "sentry.idle_span_finish_reason",
  "brief": "The reason why an idle span ended early.",
  "type": "string",
  "pii": {
    "key": "false"
  },
  "is_in_otel": false,
  "example": "idleTimeout"
}

sentry.is_remote

boolean PII: False OTel: False

Indicates whether a span's parent is remote.

Example true
Raw JSON
{
  "key": "sentry.is_remote",
  "brief": "Indicates whether a span's parent is remote.",
  "type": "boolean",
  "pii": {
    "key": "false"
  },
  "is_in_otel": false,
  "example": true
}

sentry.kind

string PII: Maybe OTel: False

Used to clarify the relationship between parents and children, or to distinguish between spans, e.g. a `server` and `client` span with the same name.

Example server
Raw JSON
{
  "key": "sentry.kind",
  "brief": "Used to clarify the relationship between parents and children, or to distinguish between spans, e.g. a `server` and `client` span with the same name.",
  "type": "string",
  "pii": {
    "key": "maybe"
  },
  "is_in_otel": false,
  "example": "server"
}

sentry.message.parameter.<key>

string PII: Maybe OTel: False

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)

Example sentry.message.parameter.0='123'
Raw JSON
{
  "key": "sentry.message.parameter.<key>",
  "brief": "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)",
  "type": "string",
  "pii": {
    "key": "maybe"
  },
  "is_in_otel": false,
  "example": "sentry.message.parameter.0='123'"
}

sentry.message.template

string PII: Maybe OTel: False

The parameterized template string.

Example Hello, {name}!
Raw JSON
{
  "key": "sentry.message.template",
  "brief": "The parameterized template string.",
  "type": "string",
  "pii": {
    "key": "maybe"
  },
  "is_in_otel": false,
  "example": "Hello, {name}!"
}

sentry.module.<key>

string PII: Maybe OTel: False Dynamic

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

Example sentry.module.brianium/paratest='v7.7.0'
Dynamic Suffix Yes - the key contains dynamic parts
Raw JSON
{
  "key": "sentry.module.<key>",
  "brief": "A module that was loaded in the process. The key is the name of the module.",
  "has_dynamic_suffix": true,
  "type": "string",
  "pii": {
    "key": "maybe"
  },
  "is_in_otel": false,
  "example": "sentry.module.brianium/paratest='v7.7.0'"
}

sentry.nextjs.ssr.function.route

string PII: False OTel: False

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.

Example /posts/[id]/layout
SDKs javascript
Raw JSON
{
  "key": "sentry.nextjs.ssr.function.route",
  "brief": "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.",
  "type": "string",
  "pii": {
    "key": "false"
  },
  "is_in_otel": false,
  "example": "/posts/[id]/layout",
  "sdks": [
    "javascript"
  ]
}

sentry.nextjs.ssr.function.type

string PII: False OTel: False

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.

Example generateMetadata
SDKs javascript
Raw JSON
{
  "key": "sentry.nextjs.ssr.function.type",
  "brief": "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.",
  "type": "string",
  "pii": {
    "key": "false"
  },
  "is_in_otel": false,
  "example": "generateMetadata",
  "sdks": [
    "javascript"
  ]
}

sentry.normalized_db_query

string PII: Maybe OTel: False

The normalized version of `db.query.text`.

Example SELECT .. FROM sentry_project WHERE (project_id = %s)
Raw JSON
{
  "key": "sentry.normalized_db_query",
  "brief": "The normalized version of `db.query.text`.",
  "type": "string",
  "pii": {
    "key": "maybe"
  },
  "is_in_otel": false,
  "example": "SELECT .. FROM sentry_project WHERE (project_id = %s)"
}

sentry.normalized_db_query.hash

string PII: False OTel: False

The hash of `sentry.normalized_db_query`.

Raw JSON
{
  "key": "sentry.normalized_db_query.hash",
  "brief": "The hash of `sentry.normalized_db_query`.",
  "type": "string",
  "pii": {
    "key": "false"
  },
  "is_in_otel": false
}

sentry.normalized_description

string PII: Maybe OTel: False

Used as a generic attribute representing the normalized `sentry.description`. This refers to the legacy use case of `sentry.description` where it holds relevant data depending on the type of span (e.g. database query, resource url, http request description, etc).

Example SELECT .. FROM sentry_project WHERE (project_id = %s)
Raw JSON
{
  "key": "sentry.normalized_description",
  "brief": "Used as a generic attribute representing the normalized `sentry.description`. This refers to the legacy use case of `sentry.description` where it holds relevant data depending on the type of span (e.g. database query, resource url, http request description, etc).",
  "type": "string",
  "pii": {
    "key": "maybe"
  },
  "is_in_otel": false,
  "example": "SELECT .. FROM sentry_project WHERE (project_id = %s)"
}

sentry.observed_timestamp_nanos

string PII: False OTel: False

The timestamp at which an envelope was received by Relay, in nanoseconds.

Example 1544712660300000000
Raw JSON
{
  "key": "sentry.observed_timestamp_nanos",
  "brief": "The timestamp at which an envelope was received by Relay, in nanoseconds.",
  "type": "string",
  "pii": {
    "key": "false"
  },
  "is_in_otel": false,
  "example": "1544712660300000000"
}

sentry.op

string PII: False OTel: False

The operation of a span.

Example http.client
Raw JSON
{
  "key": "sentry.op",
  "brief": "The operation of a span.",
  "type": "string",
  "pii": {
    "key": "false"
  },
  "is_in_otel": false,
  "example": "http.client"
}

sentry.origin

string PII: False OTel: False

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

Example auto.http.otel.fastify
Raw JSON
{
  "key": "sentry.origin",
  "brief": "The origin of the instrumentation (e.g. span, log, etc.)",
  "type": "string",
  "pii": {
    "key": "false"
  },
  "is_in_otel": false,
  "example": "auto.http.otel.fastify"
}

sentry.platform

string PII: False OTel: False

The sdk platform that generated the event.

Example php
Raw JSON
{
  "key": "sentry.platform",
  "brief": "The sdk platform that generated the event.",
  "type": "string",
  "pii": {
    "key": "false"
  },
  "is_in_otel": false,
  "example": "php"
}

sentry.profile_id

string PII: False OTel: False

The id of the sentry profile.

Example 123e4567e89b12d3a456426614174000
Aliases profile_id
Raw JSON
{
  "key": "sentry.profile_id",
  "brief": "The id of the sentry profile.",
  "type": "string",
  "pii": {
    "key": "false"
  },
  "is_in_otel": false,
  "example": "123e4567e89b12d3a456426614174000",
  "alias": [
    "profile_id"
  ]
}

sentry.profiler_id

string PII: False OTel: False

The id of the currently running profiler (continuous profiling)

Example 18779b64dd35d1a538e7ce2dd2d3fad3
Raw JSON
{
  "key": "sentry.profiler_id",
  "brief": "The id of the currently running profiler (continuous profiling)",
  "type": "string",
  "pii": {
    "key": "false"
  },
  "is_in_otel": false,
  "example": "18779b64dd35d1a538e7ce2dd2d3fad3"
}

sentry.release

string PII: False OTel: False

The sentry release.

Example 7.0.0
Aliases service.versionrelease
Raw JSON
{
  "key": "sentry.release",
  "brief": "The sentry release.",
  "type": "string",
  "pii": {
    "key": "false"
  },
  "is_in_otel": false,
  "example": "7.0.0",
  "alias": [
    "service.version",
    "release"
  ]
}

sentry.replay_id

string PII: False OTel: False

The id of the sentry replay.

Example 123e4567e89b12d3a456426614174000
Aliases replay_id
Raw JSON
{
  "key": "sentry.replay_id",
  "brief": "The id of the sentry replay.",
  "type": "string",
  "pii": {
    "key": "false"
  },
  "is_in_otel": false,
  "example": "123e4567e89b12d3a456426614174000",
  "alias": [
    "replay_id"
  ]
}

sentry.replay_is_buffering

boolean PII: False OTel: False

A sentinel attribute on log events indicating whether the current Session Replay is being buffered (onErrorSampleRate).

Example true
Raw JSON
{
  "key": "sentry.replay_is_buffering",
  "brief": "A sentinel attribute on log events indicating whether the current Session Replay is being buffered (onErrorSampleRate).",
  "type": "boolean",
  "pii": {
    "key": "false"
  },
  "is_in_otel": false,
  "example": true
}

sentry.sdk.integrations

string[] PII: False OTel: False

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.

Example ["InboundFilters","FunctionToString","BrowserApiErrors","Breadcrumbs"]
Raw JSON
{
  "key": "sentry.sdk.integrations",
  "brief": "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.",
  "type": "string[]",
  "pii": {
    "key": "false"
  },
  "is_in_otel": false,
  "example": [
    "InboundFilters",
    "FunctionToString",
    "BrowserApiErrors",
    "Breadcrumbs"
  ]
}

sentry.sdk.name

string PII: False OTel: False

The sentry sdk name.

Example @sentry/react
Raw JSON
{
  "key": "sentry.sdk.name",
  "brief": "The sentry sdk name.",
  "type": "string",
  "pii": {
    "key": "false"
  },
  "is_in_otel": false,
  "example": "@sentry/react"
}

sentry.sdk.version

string PII: False OTel: False

The sentry sdk version.

Example 7.0.0
Raw JSON
{
  "key": "sentry.sdk.version",
  "brief": "The sentry sdk version.",
  "type": "string",
  "pii": {
    "key": "false"
  },
  "is_in_otel": false,
  "example": "7.0.0"
}

sentry.segment.id

string PII: False OTel: False

The segment ID of a span

Example 051581bf3cb55c13
Aliases sentry.segment_id
Raw JSON
{
  "key": "sentry.segment.id",
  "brief": "The segment ID of a span",
  "type": "string",
  "pii": {
    "key": "false"
  },
  "is_in_otel": false,
  "example": "051581bf3cb55c13",
  "alias": [
    "sentry.segment_id"
  ]
}

sentry.segment.name

string PII: Maybe OTel: False

The segment name of a span

Example GET /user
Raw JSON
{
  "key": "sentry.segment.name",
  "brief": "The segment name of a span",
  "type": "string",
  "pii": {
    "key": "maybe"
  },
  "is_in_otel": false,
  "example": "GET /user"
}

sentry.server_sample_rate

double PII: False OTel: False

Rate at which a span was sampled in Relay.

Example 0.5
Raw JSON
{
  "key": "sentry.server_sample_rate",
  "brief": "Rate at which a span was sampled in Relay.",
  "type": "double",
  "pii": {
    "key": "false"
  },
  "is_in_otel": false,
  "example": 0.5
}

sentry.span.source

string PII: False OTel: False

The source of a span, also referred to as transaction source. Known values are: `'custom'`, `'url'`, `'route'`, `'component'`, `'view'`, `'task'`.

Example route
Raw JSON
{
  "key": "sentry.span.source",
  "brief": "The source of a span, also referred to as transaction source. Known values are:  `'custom'`, `'url'`, `'route'`, `'component'`, `'view'`, `'task'`.",
  "type": "string",
  "pii": {
    "key": "false"
  },
  "is_in_otel": false,
  "example": "route"
}

sentry.status_code

integer PII: Maybe OTel: False

The HTTP status code used in Sentry Insights. Typically set by Sentry during ingestion, rather than by clients.

Example 200
Raw JSON
{
  "key": "sentry.status_code",
  "brief": "The HTTP status code used in Sentry Insights. Typically set by Sentry during ingestion, rather than by clients.",
  "type": "integer",
  "pii": {
    "key": "maybe"
  },
  "is_in_otel": false,
  "example": 200
}

sentry.status.message

string PII: Maybe OTel: False

The from OTLP extracted status message.

Example foobar
Raw JSON
{
  "key": "sentry.status.message",
  "brief": "The from OTLP extracted status message.",
  "type": "string",
  "pii": {
    "key": "maybe"
  },
  "is_in_otel": false,
  "example": "foobar"
}

sentry.trace.parent_span_id

string PII: False OTel: False

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.

Example b0e6f15b45c36b12
Raw JSON
{
  "key": "sentry.trace.parent_span_id",
  "brief": "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.",
  "type": "string",
  "pii": {
    "key": "false"
  },
  "is_in_otel": false,
  "example": "b0e6f15b45c36b12"
}

sentry.transaction

string PII: False OTel: False

The sentry transaction (segment name).

Example GET /
Aliases transaction
Raw JSON
{
  "key": "sentry.transaction",
  "brief": "The sentry transaction (segment name).",
  "type": "string",
  "pii": {
    "key": "false"
  },
  "is_in_otel": false,
  "example": "GET /",
  "alias": [
    "transaction"
  ]
}

Deprecated Attributes

These attributes are deprecated and should not be used in new code. See each attribute for migration guidance.

sentry.browser.name Deprecated

string PII: Maybe OTel: False

The name of the browser.

Example Chrome
Aliases browser.name

Use browser.name instead.

Raw JSON
{
  "key": "sentry.browser.name",
  "brief": "The name of the browser.",
  "type": "string",
  "pii": {
    "key": "maybe"
  },
  "is_in_otel": false,
  "example": "Chrome",
  "deprecation": {
    "replacement": "browser.name",
    "_status": null
  },
  "alias": [
    "browser.name"
  ]
}

sentry.browser.version Deprecated

string PII: Maybe OTel: False

The version of the browser.

Example 120.0.6099.130
Aliases browser.version

Use browser.version instead.

Raw JSON
{
  "key": "sentry.browser.version",
  "brief": "The version of the browser.",
  "type": "string",
  "pii": {
    "key": "maybe"
  },
  "is_in_otel": false,
  "example": "120.0.6099.130",
  "deprecation": {
    "replacement": "browser.version",
    "_status": null
  },
  "alias": [
    "browser.version"
  ]
}

sentry.segment_id Deprecated

string PII: False OTel: False

The segment ID of a span

Example 051581bf3cb55c13
Aliases sentry.segment.id

Use sentry.segment.id instead.

Raw JSON
{
  "key": "sentry.segment_id",
  "brief": "The segment ID of a span",
  "type": "string",
  "pii": {
    "key": "false"
  },
  "is_in_otel": false,
  "example": "051581bf3cb55c13",
  "deprecation": {
    "replacement": "sentry.segment.id",
    "_status": null
  },
  "alias": [
    "sentry.segment.id"
  ]
}