@sentry/conventions
<p align="center"> <a href="https://sentry.io/?utm_source=github&utm_medium=logo" target="_blank"> <picture> <source srcset="https://sentry-brand.storage.googleapis.com/sentry-logo-white.png" media="(prefers-color-scheme: dark)" /> <sour
Last updated 22 days ago by sentry-bot .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ npm install @sentry/conventions 
SYNC missed versions from official npm registry.

<picture> <source srcset="https://sentry-brand.storage.googleapis.com/sentry-logo-white.png" media="(prefers-color-scheme: dark)" /> <source srcset="https://sentry-brand.storage.googleapis.com/sentry-logo-black.png" media="(prefers-color-scheme: light), (prefers-color-scheme: no-preference)" /> Sentry </picture>

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
  • @sentry/conventions/attributes/search: contains constants and metadata for the names exposed in Sentry search
  • 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:

  1. the attribute heading the chain, followed by the names it is exposed as in Sentry search
  2. its non-deprecated aliases, each followed by their own search names
  3. 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.

Current Tags

  • 0.36.0                                ...           latest (4 days ago)

40 Versions

  • 0.36.0                                ...           4 days ago
  • 0.35.0                                ...           7 days ago
  • 0.34.0                                ...           8 days ago
  • 0.33.0                                ...           17 days ago
  • 0.32.0                                ...           18 days ago
  • 0.31.0                                ...           22 days ago
  • 0.30.0                                ...           a month ago
  • 0.29.0                                ...           a month ago
  • 0.28.0                                ...           a month ago
  • 0.27.0                                ...           a month ago
  • 0.26.0                                ...           2 months ago
  • 0.25.0                                ...           2 months ago
  • 0.24.0                                ...           2 months ago
  • 0.23.0                                ...           3 months ago
  • 0.22.0                                ...           3 months ago
  • 0.21.0                                ...           3 months ago
  • 0.20.0                                ...           3 months ago
  • 0.19.0                                ...           4 months ago
  • 0.17.0                                ...           4 months ago
  • 0.16.0                                ...           4 months ago
  • 0.15.1                                ...           5 months ago
  • 0.15.0                                ...           5 months ago
  • 0.14.0                                ...           5 months ago
  • 0.13.0                                ...           5 months ago
  • 0.12.0                                ...           5 months ago
  • 0.11.1                                ...           5 months ago
  • 0.11.0                                ...           6 months ago
  • 0.10.0                                ...           6 months ago
  • 0.9.0                                ...           6 months ago
  • 0.8.0                                ...           6 months ago
  • 0.7.0                                ...           6 months ago
  • 0.6.0                                ...           7 months ago
  • 0.5.0                                ...           7 months ago
  • 0.4.0                                ...           9 months ago
  • 0.3.1                                ...           a year ago
  • 0.3.0                                ...           a year ago
  • 0.2.1                                ...           a year ago
  • 0.2.0                                ...           a year ago
  • 0.1.1                                ...           a year ago
  • 0.1.0                                ...           a year ago
Maintainers (1)
Downloads
Total 84
Today 0
This Week 1
This Month 80
Last Day 0
Last Week 64
Last Month 4
Dependencies (0)
None
Dev Dependencies (2)

© 2010 - cnpmjs.org x YWFE | Home | YWFE