diff --git a/plugins/node/instrumentation-fs/README.md b/plugins/node/instrumentation-fs/README.md index ebadc77ed8..4a40fca319 100644 --- a/plugins/node/instrumentation-fs/README.md +++ b/plugins/node/instrumentation-fs/README.md @@ -3,11 +3,9 @@ [![NPM Published Version][npm-img]][npm-url] [![Apache License][license-image]][license-image] -This module provides automatic instrumentation for the [`fs`](http://nodejs.org/dist/latest/docs/api/fs.html) 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. +This module provides automatic instrumentation for the [`fs`](http://nodejs.org/dist/latest/docs/api/fs.html) module, which can be registered using the [`@opentelemetry/instrumentation`](https://github.com/open-telemetry/opentelemetry-js/tree/main/packages/opentelemetry-instrumentation) package. -If 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. - -Compatible with OpenTelemetry JS API and SDK `1.0+`. +Compatible with OpenTelemetry JS API `1.3+`. See the full list of instrumented functions in [constants.ts](src/constants.ts); @@ -19,7 +17,7 @@ npm install --save @opentelemetry/instrumentation-fs ## Supported Versions -- Node.js `>=14` +- Node.js `>=18` ## Usage diff --git a/scripts/lint-readme.js b/scripts/lint-readme.js index cdc5e6988d..428cbfa31e 100644 --- a/scripts/lint-readme.js +++ b/scripts/lint-readme.js @@ -62,18 +62,7 @@ if (!currentReadmeContent.includes(badgesToVerify)) { ); } -if (isNode) { - const distText = `If 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. - -Compatible with OpenTelemetry JS API and SDK \`1.0+\`. -` - - if (!currentReadmeContent.includes(distText)) { - throw new Error( - `README.md dist text is not valid. Please add the following text to the README.md file:\n\n${distText}` - ); - } -} else if (isWeb) { +if (isWeb) { const distText = `If total installation size is not constrained, it is recommended to use the [\`@opentelemetry/auto-instrumentations-web\`](https://www.npmjs.com/package/@opentelemetry/auto-instrumentations-web) bundle with [\`@opentelemetry/sdk-trace-web\`](https://www.npmjs.com/package/@opentelemetry/sdk-trace-web) for the most seamless instrumentation experience. Compatible with OpenTelemetry JS API and SDK \`1.0+\`.