{"_id":"@arthurfiorette/instrumentation-fastify","_rev":"7-cd0d82ebf5c2ff7fc488e2107979e6e9","name":"@arthurfiorette/instrumentation-fastify","dist-tags":{"latest":"1.0.5"},"versions":{"1.0.0":{"name":"@arthurfiorette/instrumentation-fastify","version":"1.0.0","keywords":["fastify","instrumentation","nodejs","opentelemetry","profiling","tracing"],"author":{"name":"OpenTelemetry Authors"},"license":"Apache-2.0","_id":"@arthurfiorette/instrumentation-fastify@1.0.0","maintainers":[{"name":"hazork","email":"arthur.fiorette@gmail.com"}],"homepage":"https://github.com/open-telemetry/opentelemetry-js-contrib/tree/main/plugins/node/opentelemetry-instrumentation-fastify#readme","bugs":{"url":"https://github.com/open-telemetry/opentelemetry-js-contrib/issues"},"dist":{"shasum":"b0ff3d29aafc0be5f7bb67e4a369b6dd12e8fa36","tarball":"https://registry.npmjs.org/@arthurfiorette/instrumentation-fastify/-/instrumentation-fastify-1.0.0.tgz","fileCount":27,"integrity":"sha512-7ye6MGi3blvBoUBFlwTDHEvu88fvORcIDgiK1dOk4ZaQUNudMKMonnN0DmrUpL8nGdaSsNjTjb4x9PVIYJC29A==","signatures":[{"sig":"MEQCIC4Yn2lt+2o+rWCAnMeJcQ5ZjwHrEe8t+WmcOYFVEjzpAiBX7upLOYog5PwrlbIwdHHGyg7f957MM7Rg4XgtMcNJ0A==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":70119},"main":"build/src/index.js","types":"build/src/index.d.ts","engines":{"node":">=14"},"gitHead":"21e1331a29e06092fb1e460ca99e0c28b1b57ac4","scripts":{"lint":"eslint . --ext .ts","test":"nyc mocha 'test/**/*.test.ts'","clean":"rimraf build/*","watch":"tsc -w","compile":"tsc -p .","lint:fix":"eslint . --ext .ts --fix","prewatch":"npm run precompile","lint:readme":"node ../../../scripts/lint-readme.js","prepublishOnly":"npm run compile","version:update":"node ../../../scripts/version-update.js","test-all-versions":"tav"},"_npmUser":{"name":"hazork","email":"arthur.fiorette@gmail.com"},"repository":{"url":"git+https://github.com/open-telemetry/opentelemetry-js-contrib.git","type":"git"},"_npmVersion":"10.8.1","description":"OpenTelemetry instrumentation for `fastify` http web application framework","directories":{},"_nodeVersion":"20.14.0","dependencies":{"@opentelemetry/core":"^1.8.0","@opentelemetry/instrumentation":"^0.57.0","@opentelemetry/semantic-conventions":"^1.27.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"nyc":"15.1.0","rimraf":"5.0.10","semver":"^7.5.4","fastify":"4.18.0","typescript":"4.4.4","@types/node":"18.15.3","@types/mocha":"7.0.2","@types/semver":"7.5.8","@types/express":"4.17.21","@fastify/express":"^3.0.0","test-all-versions":"6.1.0","@opentelemetry/api":"^1.3.0","@opentelemetry/sdk-trace-base":"^1.8.0","@opentelemetry/sdk-trace-node":"^1.8.0","@opentelemetry/contrib-test-utils":"^0.45.0","@opentelemetry/context-async-hooks":"^1.8.0","@opentelemetry/instrumentation-http":"^0.57.0"},"peerDependencies":{"@opentelemetry/api":"^1.3.0"},"_npmOperationalInternal":{"tmp":"tmp/instrumentation-fastify_1.0.0_1735089895825_0.47718599101211323","host":"s3://npm-registry-packages-npm-production"},"deprecated":"Use @fastify/otel instead"},"1.0.1":{"name":"@arthurfiorette/instrumentation-fastify","version":"1.0.1","keywords":["fastify","instrumentation","nodejs","opentelemetry","profiling","tracing"],"author":{"name":"OpenTelemetry Authors"},"license":"Apache-2.0","_id":"@arthurfiorette/instrumentation-fastify@1.0.1","maintainers":[{"name":"hazork","email":"arthur.fiorette@gmail.com"}],"homepage":"https://github.com/open-telemetry/opentelemetry-js-contrib/tree/main/plugins/node/opentelemetry-instrumentation-fastify#readme","bugs":{"url":"https://github.com/open-telemetry/opentelemetry-js-contrib/issues"},"dist":{"shasum":"085e9983208e3987d9d144394a465af543a15cbf","tarball":"https://registry.npmjs.org/@arthurfiorette/instrumentation-fastify/-/instrumentation-fastify-1.0.1.tgz","fileCount":27,"integrity":"sha512-O4Oa6F1WvpYUauGDgDr5FuqSyIze4y7xmZ6EAZX6ZXTkYwtAVLXo+Erha0cGlUUSC5pNlYdrwwtuHREVz2xKxQ==","signatures":[{"sig":"MEQCIGEwbZ2D13WFN610VCxPGhju6oEdn8xP12mZlxm0fpWuAiBK4hStBB/sM5d57ZbP256nHiVc0gcO/1mo0LvS1/zplA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":72699},"main":"build/src/index.js","types":"build/src/index.d.ts","engines":{"node":">=14"},"gitHead":"ece8f72a609f5e29b2eef60daa134ed831349d6a","scripts":{"lint":"eslint . --ext .ts","test":"nyc mocha 'test/**/*.test.ts'","clean":"rimraf build/*","watch":"tsc -w","compile":"tsc -p .","lint:fix":"eslint . --ext .ts --fix","prewatch":"npm run precompile","lint:readme":"node ../../../scripts/lint-readme.js","prepublishOnly":"npm run compile","version:update":"node ../../../scripts/version-update.js","test-all-versions":"tav"},"_npmUser":{"name":"hazork","email":"arthur.fiorette@gmail.com"},"repository":{"url":"git+https://github.com/open-telemetry/opentelemetry-js-contrib.git","type":"git"},"_npmVersion":"10.8.1","description":"OpenTelemetry instrumentation for `fastify` http web application framework","directories":{},"_nodeVersion":"20.14.0","dependencies":{"@opentelemetry/core":"^1.8.0","@opentelemetry/instrumentation":"^0.57.0","@opentelemetry/semantic-conventions":"^1.27.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"nyc":"15.1.0","rimraf":"5.0.10","semver":"^7.5.4","fastify":"4.18.0","typescript":"4.4.4","@types/node":"18.15.3","@types/mocha":"7.0.2","@types/semver":"7.5.8","@types/express":"4.17.21","@fastify/express":"^3.0.0","test-all-versions":"6.1.0","@opentelemetry/api":"^1.3.0","@opentelemetry/sdk-trace-base":"^1.8.0","@opentelemetry/sdk-trace-node":"^1.8.0","@opentelemetry/contrib-test-utils":"^0.45.0","@opentelemetry/context-async-hooks":"^1.8.0","@opentelemetry/instrumentation-http":"^0.57.0"},"peerDependencies":{"@opentelemetry/api":"^1.3.0"},"_npmOperationalInternal":{"tmp":"tmp/instrumentation-fastify_1.0.1_1735090656158_0.5684226518723206","host":"s3://npm-registry-packages-npm-production"},"deprecated":"Use @fastify/otel instead"},"1.0.2":{"name":"@arthurfiorette/instrumentation-fastify","version":"1.0.2","keywords":["fastify","instrumentation","nodejs","opentelemetry","profiling","tracing"],"author":{"name":"OpenTelemetry Authors"},"license":"Apache-2.0","_id":"@arthurfiorette/instrumentation-fastify@1.0.2","maintainers":[{"name":"hazork","email":"arthur.fiorette@gmail.com"}],"homepage":"https://github.com/open-telemetry/opentelemetry-js-contrib/tree/main/plugins/node/opentelemetry-instrumentation-fastify#readme","bugs":{"url":"https://github.com/open-telemetry/opentelemetry-js-contrib/issues"},"dist":{"shasum":"1526292278db8ab8a47356b8a0a15639394b76c8","tarball":"https://registry.npmjs.org/@arthurfiorette/instrumentation-fastify/-/instrumentation-fastify-1.0.2.tgz","fileCount":27,"integrity":"sha512-0keghUGFqj2AaaAnXOg2Bp/xoXy9AkVxH/weJrrLUSax+4YZx6v1L1rop465gwqP7xNP6ZfEtoq8ttjeLhJDzQ==","signatures":[{"sig":"MEQCIHZyh6x+DDxNCSgReNGGunDcNMiEg/BNHGzsysoiAnB9AiAQ65YnsIJWR2+LmP9abI9hu5RHeUlgODdZaYMiXieNRA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":72774},"main":"build/src/index.js","types":"build/src/index.d.ts","engines":{"node":">=14"},"gitHead":"9b7d96772e22d53ae53c86354d84fb5eea972515","scripts":{"lint":"eslint . --ext .ts","test":"nyc mocha 'test/**/*.test.ts'","clean":"rimraf build/*","watch":"tsc -w","compile":"tsc -p .","lint:fix":"eslint . --ext .ts --fix","prewatch":"npm run precompile","lint:readme":"node ../../../scripts/lint-readme.js","prepublishOnly":"npm run compile","version:update":"node ../../../scripts/version-update.js","test-all-versions":"tav"},"_npmUser":{"name":"hazork","email":"arthur.fiorette@gmail.com"},"repository":{"url":"git+https://github.com/open-telemetry/opentelemetry-js-contrib.git","type":"git"},"_npmVersion":"10.8.1","description":"OpenTelemetry instrumentation for `fastify` http web application framework","directories":{},"_nodeVersion":"20.14.0","dependencies":{"@opentelemetry/core":"^1.8.0","@opentelemetry/instrumentation":"^0.57.0","@opentelemetry/semantic-conventions":"^1.27.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"nyc":"15.1.0","rimraf":"5.0.10","semver":"^7.5.4","fastify":"4.18.0","typescript":"4.4.4","@types/node":"18.15.3","@types/mocha":"7.0.2","@types/semver":"7.5.8","@types/express":"4.17.21","@fastify/express":"^3.0.0","test-all-versions":"6.1.0","@opentelemetry/api":"^1.3.0","@opentelemetry/sdk-trace-base":"^1.8.0","@opentelemetry/sdk-trace-node":"^1.8.0","@opentelemetry/contrib-test-utils":"^0.45.0","@opentelemetry/context-async-hooks":"^1.8.0","@opentelemetry/instrumentation-http":"^0.57.0"},"peerDependencies":{"@opentelemetry/api":"^1.3.0"},"_npmOperationalInternal":{"tmp":"tmp/instrumentation-fastify_1.0.2_1735092292418_0.004588510530597167","host":"s3://npm-registry-packages-npm-production"},"deprecated":"Use @fastify/otel instead"},"1.0.3":{"name":"@arthurfiorette/instrumentation-fastify","version":"1.0.3","keywords":["fastify","instrumentation","nodejs","opentelemetry","profiling","tracing"],"author":{"name":"OpenTelemetry Authors"},"license":"Apache-2.0","_id":"@arthurfiorette/instrumentation-fastify@1.0.3","maintainers":[{"name":"hazork","email":"arthur.fiorette@gmail.com"}],"homepage":"https://github.com/open-telemetry/opentelemetry-js-contrib/tree/main/plugins/node/opentelemetry-instrumentation-fastify#readme","bugs":{"url":"https://github.com/open-telemetry/opentelemetry-js-contrib/issues"},"dist":{"shasum":"81566e9f649bb68a055b66cb26b684ed5db27b64","tarball":"https://registry.npmjs.org/@arthurfiorette/instrumentation-fastify/-/instrumentation-fastify-1.0.3.tgz","fileCount":27,"integrity":"sha512-Lqx6W8aLrmekEdqBNyZK/yc959DS8V2wBC5nuMcDwX5PkhRcWKheLjAaMIM7FrAr1qXkS9TAXVMaMxxcSTavhA==","signatures":[{"sig":"MEYCIQDXAOcqEADJZUr24i4UETPyhDb/7v6zwGPzTTorlL6t3wIhANrjiJSEJRCy62cqnyJZEzC3BH7+48PxMJ4DooHoos0K","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":72077},"main":"build/src/index.js","types":"build/src/index.d.ts","engines":{"node":">=14"},"gitHead":"5b79941c9d00fe24f24b1eb62efebfc6b045d2cb","scripts":{"lint":"eslint . --ext .ts","test":"nyc mocha 'test/**/*.test.ts'","clean":"rimraf build/*","watch":"tsc -w","compile":"tsc -p .","lint:fix":"eslint . --ext .ts --fix","prewatch":"npm run precompile","lint:readme":"node ../../../scripts/lint-readme.js","prepublishOnly":"npm run compile","version:update":"node ../../../scripts/version-update.js","test-all-versions":"tav"},"_npmUser":{"name":"hazork","email":"arthur.fiorette@gmail.com"},"repository":{"url":"git+https://github.com/open-telemetry/opentelemetry-js-contrib.git","type":"git"},"_npmVersion":"10.8.1","description":"OpenTelemetry instrumentation for `fastify` http web application framework","directories":{},"_nodeVersion":"20.14.0","dependencies":{"@opentelemetry/core":"^1.8.0","@opentelemetry/instrumentation":"^0.57.0","@opentelemetry/semantic-conventions":"^1.27.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"nyc":"15.1.0","rimraf":"5.0.10","semver":"^7.5.4","fastify":"4.18.0","typescript":"4.4.4","@types/node":"18.15.3","@types/mocha":"7.0.2","@types/semver":"7.5.8","@types/express":"4.17.21","@fastify/express":"^3.0.0","test-all-versions":"6.1.0","@opentelemetry/api":"^1.3.0","@opentelemetry/sdk-trace-base":"^1.8.0","@opentelemetry/sdk-trace-node":"^1.8.0","@opentelemetry/contrib-test-utils":"^0.45.0","@opentelemetry/context-async-hooks":"^1.8.0","@opentelemetry/instrumentation-http":"^0.57.0"},"peerDependencies":{"@opentelemetry/api":"^1.3.0"},"_npmOperationalInternal":{"tmp":"tmp/instrumentation-fastify_1.0.3_1735093439185_0.020368747340264504","host":"s3://npm-registry-packages-npm-production"},"deprecated":"Use @fastify/otel instead"},"1.0.4":{"name":"@arthurfiorette/instrumentation-fastify","version":"1.0.4","keywords":["fastify","instrumentation","nodejs","opentelemetry","profiling","tracing"],"author":{"name":"OpenTelemetry Authors"},"license":"Apache-2.0","_id":"@arthurfiorette/instrumentation-fastify@1.0.4","maintainers":[{"name":"hazork","email":"arthur.fiorette@gmail.com"}],"homepage":"https://github.com/open-telemetry/opentelemetry-js-contrib/tree/main/plugins/node/opentelemetry-instrumentation-fastify#readme","bugs":{"url":"https://github.com/open-telemetry/opentelemetry-js-contrib/issues"},"dist":{"shasum":"dcd4eea22fc70bbf0757780a04c924163c8f7ce7","tarball":"https://registry.npmjs.org/@arthurfiorette/instrumentation-fastify/-/instrumentation-fastify-1.0.4.tgz","fileCount":27,"integrity":"sha512-cJyBrgdb26S2ODFVVqlAmjgc0bcuNIdm2Yzk2GvnYLYNxaK2vOL1SFaNmVq5U3+C9n6N9NKeoWbat9pu3cvLCg==","signatures":[{"sig":"MEYCIQCERGBBr4rJWulhCZVTX9Dx+hvssPsOCjOLRr3g4Y6vRQIhALOHVcou2ibBZj3fz5MG0EVVQsFbnCIJZxxXLiTXASP0","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":72501},"main":"build/src/index.js","types":"build/src/index.d.ts","engines":{"node":">=14"},"gitHead":"b662894733a196e08de1cd3adf5455eec4f281b0","scripts":{"lint":"eslint . --ext .ts","test":"nyc mocha 'test/**/*.test.ts'","clean":"rimraf build/*","watch":"tsc -w","compile":"tsc -p .","lint:fix":"eslint . --ext .ts --fix","prewatch":"npm run precompile","lint:readme":"node ../../../scripts/lint-readme.js","prepublishOnly":"npm run compile","version:update":"node ../../../scripts/version-update.js","test-all-versions":"tav"},"_npmUser":{"name":"hazork","email":"arthur.fiorette@gmail.com"},"repository":{"url":"git+https://github.com/open-telemetry/opentelemetry-js-contrib.git","type":"git"},"_npmVersion":"10.8.1","description":"OpenTelemetry instrumentation for `fastify` http web application framework","directories":{},"_nodeVersion":"20.14.0","dependencies":{"@opentelemetry/core":"^1.8.0","@opentelemetry/instrumentation":"^0.57.0","@opentelemetry/semantic-conventions":"^1.27.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"nyc":"15.1.0","rimraf":"5.0.10","semver":"^7.5.4","fastify":"4.18.0","typescript":"4.4.4","@types/node":"18.15.3","@types/mocha":"7.0.2","@types/semver":"7.5.8","@types/express":"4.17.21","@fastify/express":"^3.0.0","test-all-versions":"6.1.0","@opentelemetry/api":"^1.3.0","@opentelemetry/sdk-trace-base":"^1.8.0","@opentelemetry/sdk-trace-node":"^1.8.0","@opentelemetry/contrib-test-utils":"^0.45.0","@opentelemetry/context-async-hooks":"^1.8.0","@opentelemetry/instrumentation-http":"^0.57.0"},"peerDependencies":{"@opentelemetry/api":"^1.3.0"},"_npmOperationalInternal":{"tmp":"tmp/instrumentation-fastify_1.0.4_1735093837566_0.7091445474760509","host":"s3://npm-registry-packages-npm-production"},"deprecated":"Use @fastify/otel instead"},"1.0.5":{"name":"@arthurfiorette/instrumentation-fastify","version":"1.0.5","keywords":["fastify","instrumentation","nodejs","opentelemetry","profiling","tracing"],"author":{"name":"OpenTelemetry Authors"},"license":"Apache-2.0","_id":"@arthurfiorette/instrumentation-fastify@1.0.5","maintainers":[{"name":"hazork","email":"arthur.fiorette@gmail.com"}],"homepage":"https://github.com/open-telemetry/opentelemetry-js-contrib/tree/main/plugins/node/opentelemetry-instrumentation-fastify#readme","bugs":{"url":"https://github.com/open-telemetry/opentelemetry-js-contrib/issues"},"dist":{"shasum":"c3c8b9ca61abbb95226138f328f02810d179a0c2","tarball":"https://registry.npmjs.org/@arthurfiorette/instrumentation-fastify/-/instrumentation-fastify-1.0.5.tgz","fileCount":27,"integrity":"sha512-oanJZtOn8CUi00g4ScLAm66ud5O1JmxVg3ugoPoARCc6o+YmxBL+g8CKpUhlht7ime/7jeD3g8QsCqTgdm2eCw==","signatures":[{"sig":"MEUCIFqa+9XeUMUF44dClzfyUodIxqNR+hiY0elB8O5lUiYDAiEAiz/nM83wi4zQrjqJVhLIDdOdJ6L06YHoP0/TVtMcAtA=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":72457},"main":"build/src/index.js","types":"build/src/index.d.ts","engines":{"node":">=14"},"gitHead":"6c2586a6137d09ea0b9d4c21ad247e7d5605f92c","scripts":{"lint":"eslint . --ext .ts","test":"nyc mocha 'test/**/*.test.ts'","clean":"rimraf build/*","watch":"tsc -w","compile":"tsc -p .","lint:fix":"eslint . --ext .ts --fix","prewatch":"npm run precompile","lint:readme":"node ../../../scripts/lint-readme.js","prepublishOnly":"npm run compile","version:update":"node ../../../scripts/version-update.js","test-all-versions":"tav"},"_npmUser":{"name":"hazork","email":"arthur.fiorette@gmail.com"},"repository":{"url":"git+https://github.com/open-telemetry/opentelemetry-js-contrib.git","type":"git"},"_npmVersion":"10.8.1","description":"OpenTelemetry instrumentation for `fastify` http web application framework","directories":{},"_nodeVersion":"20.14.0","dependencies":{"@opentelemetry/core":"^1.8.0","@opentelemetry/instrumentation":"^0.57.0","@opentelemetry/semantic-conventions":"^1.27.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"nyc":"15.1.0","rimraf":"5.0.10","semver":"^7.5.4","fastify":"4.18.0","typescript":"4.4.4","@types/node":"18.15.3","@types/mocha":"7.0.2","@types/semver":"7.5.8","@types/express":"4.17.21","@fastify/express":"^3.0.0","test-all-versions":"6.1.0","@opentelemetry/api":"^1.3.0","@opentelemetry/sdk-trace-base":"^1.8.0","@opentelemetry/sdk-trace-node":"^1.8.0","@opentelemetry/contrib-test-utils":"^0.45.0","@opentelemetry/context-async-hooks":"^1.8.0","@opentelemetry/instrumentation-http":"^0.57.0"},"peerDependencies":{"@opentelemetry/api":"^1.3.0"},"_npmOperationalInternal":{"tmp":"tmp/instrumentation-fastify_1.0.5_1735094323675_0.40523795118583505","host":"s3://npm-registry-packages-npm-production"},"deprecated":"Use @fastify/otel instead"}},"time":{"created":"2024-12-25T01:24:55.736Z","modified":"2025-04-30T18:53:13.909Z","1.0.0":"2024-12-25T01:24:56.037Z","1.0.1":"2024-12-25T01:37:36.400Z","1.0.2":"2024-12-25T02:04:52.595Z","1.0.3":"2024-12-25T02:23:59.417Z","1.0.4":"2024-12-25T02:30:37.771Z","1.0.5":"2024-12-25T02:38:43.883Z"},"bugs":{"url":"https://github.com/open-telemetry/opentelemetry-js-contrib/issues"},"author":{"name":"OpenTelemetry Authors"},"license":"Apache-2.0","homepage":"https://github.com/open-telemetry/opentelemetry-js-contrib/tree/main/plugins/node/opentelemetry-instrumentation-fastify#readme","keywords":["fastify","instrumentation","nodejs","opentelemetry","profiling","tracing"],"repository":{"url":"git+https://github.com/open-telemetry/opentelemetry-js-contrib.git","type":"git"},"description":"OpenTelemetry instrumentation for `fastify` http web application framework","maintainers":[{"name":"hazork","email":"arthur.fiorette@gmail.com"}],"readme":"# OpenTelemetry Fastify Instrumentation for Node.js\n\n[![NPM Published Version][npm-img]][npm-url]\n[![Apache License][license-image]][license-image]\n\nThis module provides automatic instrumentation for the [`fastify`](https://www.fastify.io/) module, which may be loaded using the [`@opentelemetry/sdk-trace-node`](https://github.com/open-telemetry/opentelemetry-js/tree/main/packages/opentelemetry-sdk-trace-node) package and is included in the [`@opentelemetry/auto-instrumentations-node`](https://www.npmjs.com/package/@opentelemetry/auto-instrumentations-node) bundle.\n\nIf total installation size is not constrained, it is recommended to use the [`@opentelemetry/auto-instrumentations-node`](https://www.npmjs.com/package/@opentelemetry/auto-instrumentations-node) bundle with [@opentelemetry/sdk-node](`https://www.npmjs.com/package/@opentelemetry/sdk-node`) for the most seamless instrumentation experience.\n\nCompatible with OpenTelemetry JS API and SDK `1.0+`.\n\n## Installation\n\nThis instrumentation relies on HTTP calls to also be instrumented. Make sure you install and enable both, otherwise you will have spans that are not connected with each other.\n\n```bash\nnpm install --save @opentelemetry/instrumentation-http @opentelemetry/instrumentation-fastify\n```\n\n### Supported Versions\n\n- [`fastify`](https://www.npmjs.com/package/fastify) versions `>=3.0.0 <5`\n\n## Usage\n\nOpenTelemetry fastify Instrumentation allows the user to automatically collect trace data and export them to their backend of choice, to give observability to distributed systems.\n\nTo load the instrumentation, specify it in the Node Tracer's configuration:\n\n```js\nconst { NodeTracerProvider } = require('@opentelemetry/node');\nconst { registerInstrumentations } = require('@opentelemetry/instrumentation');\nconst { HttpInstrumentation } = require('@opentelemetry/instrumentation-http');\nconst { FastifyInstrumentation } = require('@opentelemetry/instrumentation-fastify');\n\nconst provider = new NodeTracerProvider();\nprovider.register();\n\nregisterInstrumentations({\n  instrumentations: [\n    // Fastify instrumentation expects HTTP layer to be instrumented\n    new HttpInstrumentation(),\n    new FastifyInstrumentation(),\n  ],\n});\n```\n\nSee [examples/fastify](https://github.com/open-telemetry/opentelemetry-js-contrib/tree/main/examples/fastify) for a short example.\n\n## Fastify Instrumentation Options\n\n| Options        | Type                         | Example                          | Description                                                                    |\n| -------------- | ---------------------------- | -------------------------------- | ------------------------------------------------------------------------------ |\n| `requestHook`  | `FastifyCustomAttributeFunction` | `(span, requestInfo) => {}`       | Function for adding custom attributes to Fastify requests. Receives parameters: `Span, FastifyRequestInfo`. |\n\n### Using `requestHook`\n\nInstrumentation configuration accepts a custom \"hook\" function which will be called for every instrumented Fastify request. Custom attributes can be set on the span or run any custom logic per request.\n\n```javascript\nimport { FastifyInstrumentation } from \"@opentelemetry/instrumentation-fastify\"\n\nconst fastifyInstrumentation = new FastifyInstrumentation({\n  requestHook: function (span: Span, info: FastifyRequestInfo) {\n    span.setAttribute(\n      'http.method',\n      info.request.method,\n    )\n  }\n});\n```\n\n## Semantic Conventions\n\nThis package uses `@opentelemetry/semantic-conventions` version `1.22+`, which implements Semantic Convention [Version 1.7.0](https://github.com/open-telemetry/opentelemetry-specification/blob/v1.7.0/semantic_conventions/README.md)\n\nAttributes collected:\n\n| Attribute    | Short Description                  |\n| ------------ | ---------------------------------- |\n| `http.route` | The matched route (path template). |\n\n## Useful links\n\n- For more information on OpenTelemetry, visit: <https://opentelemetry.io/>\n- For more about OpenTelemetry JavaScript: <https://github.com/open-telemetry/opentelemetry-js>\n- For help or feedback on this project, join us in [GitHub Discussions][discussions-url]\n\n## License\n\nApache 2.0 - See [LICENSE][license-url] for more information.\n\n[discussions-url]: https://github.com/open-telemetry/opentelemetry-js/discussions\n[license-url]: https://github.com/open-telemetry/opentelemetry-js-contrib/blob/main/LICENSE\n[license-image]: https://img.shields.io/badge/license-Apache_2.0-green.svg?style=flat\n[npm-url]: https://www.npmjs.com/package/@opentelemetry/instrumentation-fastify\n[npm-img]: https://badge.fury.io/js/%40opentelemetry%2Finstrumentation-fastify.svg\n","readmeFilename":"README.md"}