{"name":"@sentry/conventions","version":"0.6.0","license":"MIT","_id":"@sentry/conventions@0.6.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":"db2b9358b154683f72e870b38b6d26ab79bd0336","tarball":"http://registry-npm.ywwl.com/@sentry/conventions/download/@sentry/conventions-0.6.0.tgz","fileCount":26,"integrity":"sha512-kE294CZCL72OGeylHNvzc3x6i64/4I+pYfJI+1ZD0bZKiYOn5U5vnj2tLEOb3WBaY7eBd0JR9PJ2VN0OaqmNbg==","signatures":[{"sig":"MEUCIQDq2smIyg4tfMugF2QUNDoYn/cscAqG/IKN9RjnaDCAeAIgXSLxyct7k3tlreFqTKpjur/dk023Oj4p7sTRoAMKEVo=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":2960746,"size":466493,"noattachment":false,"key":"/@sentry/conventions/-/@sentry/conventions-0.6.0.tgz"},"main":"./dist/index.cjs","_from":"file:/tmp/craft-WkcBB0/sentry-conventions-v0.6.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-WkcBB0/sentry-conventions-v0.6.0.tgz","_integrity":"sha512-kE294CZCL72OGeylHNvzc3x6i64/4I+pYfJI+1ZD0bZKiYOn5U5vnj2tLEOb3WBaY7eBd0JR9PJ2VN0OaqmNbg==","repository":{"url":"git+https://github.com/getsentry/sentry-conventions.git","type":"git"},"_npmVersion":"10.9.7","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.22.2","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"unbuild":"^3.5.0","typescript":"^5.8.3"},"_npmOperationalInternal":{"tmp":"tmp/conventions_0.6.0_1777908775192_0.7608645766846005","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":1777908775431,"_cnpm_publish_time":1777908775431,"dist-tags":{"latest":"0.36.0"}}