{"name":"@sentry/conventions","version":"0.28.0","license":"MIT","_id":"@sentry/conventions@0.28.0","maintainers":[{"name":"sentry-bot","email":"accounts@sentry.io"}],"homepage":"https://github.com/getsentry/sentry-conventions#readme","bugs":{"url":"https://github.com/getsentry/sentry-conventions/issues"},"dist":{"shasum":"b39da9152da9214bc7f1827e627a1fc91e021141","tarball":"http://registry-npm.ywwl.com/@sentry/conventions/download/@sentry/conventions-0.28.0.tgz","fileCount":40,"integrity":"sha512-kpJurYYu/O7qXVON8cEeEwF6a5Lw3MF26mesnnDofVanVTLRfFaJnC7FJ3r5CXg75nIDZBg9mmJH2lTU0g989g==","signatures":[{"sig":"MEQCIFBPME2AAgB3XNQFEiLvjtOTa/GnhThS1FcoQ6eSoCa/AiAkOkyPukuVPJmYSCYIYOvUKIYkj84375ovJ6zfjpoKqg==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEUCIQC2OPl0yLsu1vEzCpg29jo98k2iy9SGcXUDhhxe3hkZIgIgCUbrnCjcc/gWZQr9CLfv4ETCh/4D4zNzozHgowlzwS0=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":8925696,"size":1323845,"noattachment":false,"key":"/@sentry/conventions/-/@sentry/conventions-0.28.0.tgz"},"main":"./dist/index.cjs","_from":"file:/tmp/craft-5MaNqy/sentry-conventions-v0.28.0.tgz","types":"./dist/index.d.ts","engines":{"node":">=14"},"exports":{".":{"import":"./dist/index.mjs","require":"./dist/index.cjs"},"./op":{"import":"./dist/op.mjs","require":"./dist/op.cjs"},"./attributes":{"import":"./dist/attributes.mjs","require":"./dist/attributes.cjs"},"./attributes/search":{"import":"./dist/search.mjs","require":"./dist/search.cjs"}},"scripts":{"build":"unbuild","build:tarball":"yarn build && yarn pack"},"_npmUser":{"name":"sentry-bot","email":"accounts@sentry.io"},"_resolved":"/tmp/craft-5MaNqy/sentry-conventions-v0.28.0.tgz","_integrity":"sha512-kpJurYYu/O7qXVON8cEeEwF6a5Lw3MF26mesnnDofVanVTLRfFaJnC7FJ3r5CXg75nIDZBg9mmJH2lTU0g989g==","repository":{"url":"git+https://github.com/getsentry/sentry-conventions.git","type":"git"},"_npmVersion":"11.19.1","description":"<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","directories":{},"sideEffects":false,"_nodeVersion":"24.22.1","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"unbuild":"^3.6.1","typescript":"^6.0.3"},"_npmOperationalInternal":{"tmp":"tmp/conventions_0.28.0_1792752084465_0.2271122240745771","host":"s3://npm-registry-packages-npm-production"},"readme":"<p align=\"center\">\n  <a href=\"https://sentry.io/?utm_source=github&utm_medium=logo\" target=\"_blank\">\n    <picture>\n      <source srcset=\"https://sentry-brand.storage.googleapis.com/sentry-logo-white.png\" media=\"(prefers-color-scheme: dark)\" />\n      <source srcset=\"https://sentry-brand.storage.googleapis.com/sentry-logo-black.png\" media=\"(prefers-color-scheme: light), (prefers-color-scheme: no-preference)\" />\n      <img src=\"https://sentry-brand.storage.googleapis.com/sentry-logo-black.png\" alt=\"Sentry\" width=\"280\">\n    </picture>\n  </a>\n</p>\n\n<h1>Sentry Conventions</h1>\n\n<h4>The Sentry Conventions are a set of semantic conventions for naming and describing events in Sentry.</h4>\n\n[![npm version](https://img.shields.io/npm/v/@sentry/conventions.svg)](https://www.npmjs.com/package/@sentry/conventions)\n[![npm dm](https://img.shields.io/npm/dm/@sentry/conventions.svg)](https://www.npmjs.com/package/@sentry/conventions)\n[![npm dt](https://img.shields.io/npm/dt/@sentry/conventions.svg)](https://www.npmjs.com/package/@sentry/conventions)\n[![Discord Chat](https://img.shields.io/discord/621778831602221064.svg)](https://discord.gg/sentry)\n\n![GitHub Actions](https://github.com/getsentry/sentry-conventions/actions/workflows/build.yml/badge.svg)\n[![Codecov](https://codecov.io/gh/getsentry/sentry-conventions/graph/badge.svg?token=fQNlGihNOf)](https://codecov.io/gh/getsentry/sentry-conventions)\n\nThe package exports:\n\n- `attributes`: contains constants for all attribute names and their types, as defined in the Sentry semantic conventions\n- `attributes.ATTRIBUTE_METADATA`: provides metadata about attributes, such as their type, scrubbing definition, deprecation info, and lookup keys\n- `@sentry/conventions/attributes/search`: contains constants and metadata for the names exposed in Sentry search\n- `attributes.Attributes`: represents a bag of typed attributes\n- `op`: contains constants for span operations used in Sentry\n\n## Attribute Key Chains\n\nAn 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:\n\n```ts\nimport { ATTRIBUTE_METADATA, HTTP_METHOD } from '@sentry/conventions/attributes';\n\nATTRIBUTE_METADATA[HTTP_METHOD].keys;\n// ['http.request.method', 'http.method', 'http.request_method', 'method']\n```\n\nThe order within a chain is:\n\n1. the attribute heading the chain, followed by the names it is exposed as in Sentry search\n2. its non-deprecated aliases, each followed by their own search names\n3. the deprecated attributes it replaces, in alphabetical order, each followed by their own search names\n\nDeprecated attributes are only added to a chain if their status is `normalize` or `backfill`.\nIf an attribute is deprecated with another status or status `null`, it's own `keys` array will not contain any\nreplacing attribute. Therefore, there's **no guarantee** for a stable attribute in a key chain.\n","publish_time":1792752084649,"_cnpm_publish_time":1792752084649,"dist-tags":{"latest":"0.36.0"}}