{"name":"@opentelemetry/instrumentation-tedious","version":"0.41.0","keywords":["instrumentation","microsoft","mssql","nodejs","opentelemetry","profiling","sql server","tds","tedious","tracing"],"author":{"name":"OpenTelemetry Authors"},"license":"Apache-2.0","_id":"@opentelemetry/instrumentation-tedious@0.41.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-tedious#readme","bugs":{"url":"https://github.com/open-telemetry/opentelemetry-js-contrib/issues"},"dist":{"shasum":"65161ca714e5b21cab8ee698abe6ecd4e3fdacfe","tarball":"http://registry-npm.ywwl.com/@opentelemetry/instrumentation-tedious/download/@opentelemetry/instrumentation-tedious-0.41.0.tgz","fileCount":18,"integrity":"sha512-dtrHwEs40nzD/fR9jkSNbSiHqCIHf2sXcMM8nY29Ekc25pw0EADRBqN4Ya2prrCSNGVtIx6N9o3fTS7fsACysA==","signatures":[{"sig":"MEQCIG99iJqctG/CBOPWyNtAVyXOmYf/Cv4kb5VFKeyFte6RAiBKX4wXXqzAYJFgEYr32WY6O9OBo/jSpojwWXFrc4R0fQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEUCIQCHxOf8pAdjRry20RJ7x/Bemb/kV/mOzcIG3qkjrQJ7fQIgCvQaIfFC+rzIGG/UthtRiLdElDwU4zELUfH1Ba+C7bg=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@opentelemetry%2finstrumentation-tedious@0.41.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":57074,"size":15230,"noattachment":false,"key":"/@opentelemetry/instrumentation-tedious/-/@opentelemetry/instrumentation-tedious-0.41.0.tgz"},"main":"build/src/index.js","types":"build/src/index.d.ts","engines":{"node":"^18.19.0 || >=20.6.0"},"gitHead":"932fc967b142a8eb47d306fe92107b62962099f0","scripts":{"tdd":"npm run test -- --watch-extensions ts --watch","test":"nyc --no-clean mocha 'test/**/*.test.ts'","clean":"rimraf build/*","compile":"tsc -p .","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"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:fda0b14e-1563-42ee-b4e9-847d355eef9f"}},"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.19.0+x64 (linux)","description":"OpenTelemetry instrumentation for `tedious` database client for Microsoft SQL Server","directories":{},"_nodeVersion":"24.19.0","dependencies":{"@opentelemetry/instrumentation":"^0.222.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.3.0","@opentelemetry/sdk-trace":"^2.9.0","@opentelemetry/contrib-test-utils":"^0.69.0","@opentelemetry/context-async-hooks":"^2.9.0"},"peerDependencies":{"@opentelemetry/api":"^1.3.0"},"_npmOperationalInternal":{"tmp":"tmp/instrumentation-tedious_0.41.0_1788208963620_0.4992038929506739","host":"s3://npm-registry-packages-npm-production"},"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":1788208963702,"_cnpm_publish_time":1788208963702,"dist-tags":{"latest":"0.44.0"}}