New:Socket for Asana Is Now Available.Learn more
Get Started

@sentry/conventions

Package Overview
Dependencies
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sentry/conventions

<source srcset="https://sentry-brand.storage.googleapis.com/sentry-logo-white.png" media="(prefers-color-scheme: dark)" /> <sour

latest
Source
npmnpm
Version
0.20.0
Version published
Weekly downloads
13M
5.94%
Maintainers
1
Weekly downloads
 
Created
Source

Sentry

Sentry Conventions

The Sentry Conventions are a set of semantic conventions for naming and describing events in Sentry.

npm version npm dm npm dt Discord Chat

GitHub Actions Codecov

The package exports:

  • attributes: contains constants for all attribute names and their types, as defined in the Sentry semantic conventions
  • attributes.ATTRIBUTE_METADATA: provides metadata about attributes, such as their type, scrubbing definition, deprecation info, and lookup keys
  • attributes.Attributes: represents a bag of typed attributes
  • op: contains constants for span operations used in Sentry

Attribute Key Chains

An attribute's value may be readable under several keys: its own, the names Sentry search exposes it as, and the deprecated attributes it replaces. ATTRIBUTE_METADATA[key].keys lists all of them, most preferred first:

import { ATTRIBUTE_METADATA, HTTP_METHOD } from '@sentry/conventions/attributes';

ATTRIBUTE_METADATA[HTTP_METHOD].keys;
// ['http.request.method', 'http.method', 'http.request_method', 'method']

The order within a chain is:

  • the attribute heading the chain, followed by the names it is exposed as in Sentry search
  • its non-deprecated aliases, each followed by their own search names
  • the deprecated attributes it replaces, in alphabetical order, each followed by their own search names

Deprecated attributes are only added to a chain if their status is normalize or backfill. If an attribute is deprecated with another status or status null, it's own keys array will not contain any replacing attribute. Therefore, there's no guarantee for a stable attribute in a key chain.

FAQs

Package last updated on 24 Aug 2026

Related posts