{"name":"@opentelemetry/instrumentation-connect","version":"0.67.0","keywords":["connect","instrumentation","nodejs","opentelemetry","profiling","tracing"],"author":{"name":"OpenTelemetry Authors"},"license":"Apache-2.0","_id":"@opentelemetry/instrumentation-connect@0.67.0","maintainers":[{"name":"dyladan","email":"dyladan@gmail.com"},{"name":"pichlermarc","email":"marc.pichler@dynatrace.com"},{"name":"overbalance","email":"overbalancedev@proton.me"},{"name":"npmjs-account","email":"npmjs-account@opentelemetry.io"},{"name":"trentm","email":"trentm@gmail.com"},{"name":"martinkuba","email":"martin@martinkuba.com"}],"homepage":"https://github.com/open-telemetry/opentelemetry-js-contrib/tree/main/packages/instrumentation-connect#readme","bugs":{"url":"https://github.com/open-telemetry/opentelemetry-js-contrib/issues"},"dist":{"shasum":"ff496fa7967891cd590ef2e6f7689db609291c98","tarball":"http://registry-npm.ywwl.com/@opentelemetry/instrumentation-connect/download/@opentelemetry/instrumentation-connect-0.67.0.tgz","fileCount":39,"integrity":"sha512-Y7Vh+iKuOAEwUJ4JOI5OvNK56E1PixoDpK+Bfj4QnBivkqHEZEUqbnYRhvHFVXYisP/xeJKOh3pU+iOnxJHedA==","signatures":[{"sig":"MEUCIHoefvhbqaj5bCLOzdiPoGzE9Gn0wKieYoRmRTaSZW34AiEA/rd3ijZrmLA2hPJKxZQg84Cb50YgwIbrK4Xu7gm1usM=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEUCIQDdQfSAPnd9C2BQrNo9Cn8rXAxSnQJlEOxo0hhF1RBy3gIgIQJMV0GuD4wM/3nKl9XcAP6HFXN7FEUMkjCLm03NJ10=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@opentelemetry%2finstrumentation-connect@0.67.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":66280,"size":15207,"noattachment":false,"key":"/@opentelemetry/instrumentation-connect/-/@opentelemetry/instrumentation-connect-0.67.0.tgz"},"main":"./dist/index.cjs","types":"./dist/index.d.cts","engines":{"node":">=22.15.0"},"exports":{".":{"default":{"types":"./dist/index.d.mts","default":"./dist/index.mjs"},"require":{"types":"./dist/index.d.cts","default":"./dist/index.cjs"}}},"gitHead":"207b9dd1c7e30c12d5dec0e54e476e361b209484","scripts":{"test":"nyc --no-clean mocha 'test/**/*.test.ts'","clean":"rimraf dist build","watch":"tsdown --watch --no-clean","compile":"tsdown","lint:readme":"node ../../scripts/lint-readme.js","prepublishOnly":"npm run compile","version:update":"node ../../scripts/version-update.js","compile:with-dependencies":"nx run-many -t compile -p @opentelemetry/instrumentation-connect"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"920c73b8-1077-4333-a42e-878ea1671017"}},"repository":{"url":"git+https://github.com/open-telemetry/opentelemetry-js-contrib.git","type":"git","directory":"packages/instrumentation-connect"},"_npmVersion":"lerna/9.0.7/node@v24.21.0+x64 (linux)","description":"OpenTelemetry instrumentation for `connect` http middleware framework","directories":{},"_nodeVersion":"24.21.0","dependencies":{"@types/connect":"3.4.38","@opentelemetry/core":"^3.0.0","@opentelemetry/instrumentation":"^0.300.0","@opentelemetry/semantic-conventions":"^1.27.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"connect":"3.7.0","@opentelemetry/api":"^1.10.0","@opentelemetry/sdk-trace":"^3.0.0","@opentelemetry/context-async-hooks":"^3.0.0"},"peerDependencies":{"@opentelemetry/api":"^1.3.0"},"_npmOperationalInternal":{"tmp":"tmp/instrumentation-connect_0.67.0_1792530916175_0.9618867914368543","host":"s3://npm-registry-packages-npm-production"},"readme":"# OpenTelemetry Connect 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 [`connect`](https://github.com/senchalabs/connect) module.\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## Status\n\n| Maturity                                           | [Component Owner](../../.github/component_owners.yml) | Compatibility         |\n|----------------------------------------------------|-------------------------------------------------------|-----------------------|\n| [Unmaintained](../../CONTRIBUTING.md#unmaintained) | N/A                                                   | API 1.0+<br/>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 to each other.\n\n```bash\nnpm install --save @opentelemetry/instrumentation-http @opentelemetry/instrumentation-connect\n```\n\n### Supported Versions\n\n- [`connect`](https://www.npmjs.com/package/connect) versions `>=3.0.0 <4`\n\n## Usage\n\nOpenTelemetry Connect 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 enable a specific instrumentation, pass it to `registerInstrumentations()`.\nThis is commonly done via `NodeSDK` for fully setting up all OpenTelemetry SDK components:\n\n```js\nconst { NodeSDK } = require('@opentelemetry/sdk-node');\nconst { HttpInstrumentation } = require('@opentelemetry/instrumentation-http');\nconst { ConnectInstrumentation } = require('@opentelemetry/instrumentation-connect');\n\nconst sdk = new NodeSDK({\n  instrumentations: [\n    // Connect instrumentation expects HTTP layer to be instrumented\n    new HttpInstrumentation(),\n    new ConnectInstrumentation(),\n  ],\n});\nsdk.start();\nprocess.once('beforeExit', async () => { await sdk.shutdown(); });\n```\n\n## Semantic Conventions\n\nThis package implements Semantic Convention v1.33.1.\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-connect\n[npm-img]: https://badge.fury.io/js/%40opentelemetry%2Finstrumentation-connect.svg\n","publish_time":1792530916278,"_cnpm_publish_time":1792530916278,"dist-tags":{"latest":"0.68.0"}}