{"_id":"@opentelemetry/instrumentation-tedious@0.44.0","bugs":{"url":"https://github.com/open-telemetry/opentelemetry-js-contrib/issues"},"dist":{"shasum":"313b01c7662f9d67bcb2b006a74f5d43a5a0cb62","tarball":"http://registry-npm.ywwl.com/@opentelemetry/instrumentation-tedious/download/@opentelemetry/instrumentation-tedious-0.44.0.tgz","fileCount":28,"integrity":"sha512-uYOxyKZ+tx26YlAolj3VI8TNl3XQFobMrHnAGRo5+yd9ayEFciCBS+M3UmdOUWTUusJH/bCmP11BBKTpxYV9Kw==","signatures":[{"sig":"MEQCIBHLe/gCo3EPcdFP8L8r+Cf8naDjDjgx9NAjN4C713YdAiAi4zNncVvY23SzKtbGKIGbTpaHBfwvFXMpXOgniUbA3A==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQDrF5HnjVGcCaaITxolWNjiO5xBmzihDxvuRDY7aj3J3QIhAKYDfATRELu4rjgPqgOqYxu/m8r9PRraMdDKNPbggJKC"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@opentelemetry%2finstrumentation-tedious@0.44.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":77939,"size":17451,"noattachment":false,"key":"/@opentelemetry/instrumentation-tedious/-/@opentelemetry/instrumentation-tedious-0.44.0.tgz"},"main":"./dist/index.cjs","name":"@opentelemetry/instrumentation-tedious","types":"./dist/index.d.cts","author":{"name":"OpenTelemetry Authors"},"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":"fc3b13eb41e9512fb0d769b431583f90b5ef8326","license":"Apache-2.0","scripts":{"tdd":"npm test -- --watch --watch-files \"**/*.ts\"","test":"nyc --no-clean mocha 'test/**/*.test.ts'","clean":"rimraf dist build","compile":"tsdown","prepublishOnly":"npm run compile","version:update":"node ../../scripts/version-update.js","test-services:ls":"echo mssql","test-all-versions":"tav","test-services:stop":"cd ../.. && npm run test-services:stop mssql","test-services:start":"cd ../.. && npm run test-services:start mssql","test:with-services-env":"cross-env NODE_OPTIONS='-r dotenv/config' DOTENV_CONFIG_PATH=../../test/test-services.env npm test","compile:with-dependencies":"nx run-many -t compile -p @opentelemetry/instrumentation-tedious","test-all-versions:with-services-env":"cross-env NODE_OPTIONS='-r dotenv/config' DOTENV_CONFIG_PATH=../../test/test-services.env npm run test-all-versions"},"version":"0.44.0","_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"fda0b14e-1563-42ee-b4e9-847d355eef9f"}},"homepage":"https://github.com/open-telemetry/opentelemetry-js-contrib/tree/main/packages/instrumentation-tedious#readme","keywords":["instrumentation","microsoft","mssql","nodejs","opentelemetry","profiling","sql server","tds","tedious","tracing"],"repository":{"url":"git+https://github.com/open-telemetry/opentelemetry-js-contrib.git","type":"git","directory":"packages/instrumentation-tedious"},"_npmVersion":"lerna/9.0.7/node@v24.22.2+x64 (linux)","description":"OpenTelemetry instrumentation for `tedious` database client for Microsoft SQL Server","directories":{},"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"}],"_nodeVersion":"24.22.2","dependencies":{"@opentelemetry/instrumentation":"^0.301.0","@opentelemetry/semantic-conventions":"^1.33.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tedious":"17.0.0","@types/tedious":"^4.0.14","@opentelemetry/api":"^1.10.0","@opentelemetry/sdk-trace":"^3.0.0","@opentelemetry/contrib-test-utils":"^0.72.0","@opentelemetry/context-async-hooks":"^3.0.0"},"peerDependencies":{"@opentelemetry/api":"^1.10.0"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/instrumentation-tedious_0.44.0_1793914577776_0.08505530444340337"},"readme":"# OpenTelemetry Tedious 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 [`tedious`](https://github.com/tediousjs/tedious) 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## Installation\n\n```bash\nnpm install --save @opentelemetry/instrumentation-tedious\n```\n\n## Supported Versions\n\n- [tedious](https://www.npmjs.com/package/tedious) `>=1.11.0 <21`\n\n## Usage\n\nOpenTelemetry Tedious Instrumentation allows the user to automatically collect trace data and export them to the backend of choice, to give observability to distributed systems when working with [`tedious`](https://github.com/tediousjs/tedious).\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 { TediousInstrumentation } = require('@opentelemetry/instrumentation-tedious');\n\nconst sdk = new NodeSDK({\n  instrumentations: [\n    new TediousInstrumentation(),\n  ],\n});\nsdk.start();\nprocess.once('beforeExit', async () => { await sdk.shutdown(); });\n```\n\n## Semantic Conventions\n\nThis instrumentation creates spans with attributes from the stable database and networking semantic conventions.\n\nThe `instrumentation-tedious` versions 0.39.0 and later emit the stable v1.33.0+ semantic conventions.\n\n| Attribute                  | Description                                                                                   |\n| -------------------------- | --------------------------------------------------------------------------------------------- |\n| `db.system.name`           | Database system identifier: `'microsoft.sql_server'`                                          |\n| `db.query.text`            | The database query being executed.                                                            |\n| `db.namespace`             | The database associated with the connection.                                                  |\n| `db.collection.name`       | The name of a collection (table, container) within the database.                              |\n| `db.operation.name`        | The name of the operation or command being executed.                                          |\n| `db.stored_procedure.name` | The stored procedure name.                                                                    |\n| `db.response.status_code`  | The SQL Server error number as a string, set on error (e.g. `\"208\"` for invalid object name). |\n| `error.type`               | Describes a class of error the operation ended with.                                          |\n| `server.address`           | Remote hostname or similar.                                                                   |\n| `server.port`              | Remote port number.                                                                           |\n\n### Trace Context Propagation\n\nDatabase trace context propagation can be enabled by setting `enableTraceContextPropagation` to `true`.\nThis uses the [SET CONTEXT_INFO](https://learn.microsoft.com/en-us/sql/t-sql/statements/set-context-info-transact-sql?view=sql-server-ver16)\ncommand to set [traceparent](https://www.w3.org/TR/trace-context/#traceparent-header) information\nfor the current connection, which results in **an additional round-trip to the database**.\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-tedious\n[npm-img]: https://badge.fury.io/js/%40opentelemetry%2Finstrumentation-tedious.svg\n","publish_time":1793914577863,"_cnpm_publish_time":1793914577863,"dist-tags":{"latest":"0.44.0"}}