{"name":"@sentry/conventions","version":"0.2.0","license":"MIT","_id":"@sentry/conventions@0.2.0","maintainers":[{"name":"billyvg","email":"npm@mmo.me"},{"name":"mitsuhiko","email":"armin.ronacher@active-4.com"},{"name":"haza","email":"daniel.griesser.86@gmail.com"},{"name":"jauer","email":"account@jauer.org"},{"name":"sentry-bot","email":"accounts@sentry.io"},{"name":"evanpurkhiser","email":"evanpurkhiser@gmail.com"},{"name":"lynnagara","email":"lyn.nagara@gmail.com"},{"name":"leedongwei","email":"danny@dongwei.li"},{"name":"markstory","email":"mark@mark-story.com"},{"name":"zeeg","email":"dcramer@gmail.com"}],"homepage":"https://github.com/getsentry/sentry-conventions#readme","bugs":{"url":"https://github.com/getsentry/sentry-conventions/issues"},"dist":{"shasum":"b52d4424c40b5664c4751c7d292bb08f4844e5bb","tarball":"http://registry-npm.ywwl.com/@sentry/conventions/download/@sentry/conventions-0.2.0.tgz","fileCount":26,"integrity":"sha512-tOJnJfTdiWSIXri5oXg8ZVWMkFmtqYneK3xqp14N7QmISdh4q3Thm4FOQK2XQhbsymuumuLeupWFzlqa4a2kiw==","signatures":[{"sig":"MEYCIQD7yuaylQIPo4SINhkM/VJ30xK9BbuhYpc6X6dMLrb57wIhANLui2P4mQmJKoqKraH9zlAfwIJ5xx0sVu7Rwcy+ydwX","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":1736337,"size":285054,"noattachment":false,"key":"/@sentry/conventions/-/@sentry/conventions-0.2.0.tgz"},"main":"./dist/index.cjs","_from":"file:/tmp/craft-7wXNeR/sentry-conventions-v0.2.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"}},"scripts":{"build":"unbuild","build:tarball":"yarn build && yarn pack"},"_npmUser":{"name":"sentry-bot","email":"accounts@sentry.io"},"_resolved":"/tmp/craft-7wXNeR/sentry-conventions-v0.2.0.tgz","_integrity":"sha512-tOJnJfTdiWSIXri5oXg8ZVWMkFmtqYneK3xqp14N7QmISdh4q3Thm4FOQK2XQhbsymuumuLeupWFzlqa4a2kiw==","repository":{"url":"git+https://github.com/getsentry/sentry-conventions.git","type":"git"},"_npmVersion":"10.9.2","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":"22.17.1","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"unbuild":"^3.5.0","typescript":"^5.8.3"},"_npmOperationalInternal":{"tmp":"tmp/conventions_0.2.0_1760546310904_0.8734343838870509","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":1760546311137,"_cnpm_publish_time":1760546311137,"dist-tags":{"latest":"0.36.0"}}