Skip to content

Commit 80b1da6

Browse files
committed
lint:readme: drop constraint that Node.js instrumentations mention using auto-instrumentations-node
This is no longer a valid assumption. The 'fs' instrumentation, for example, is no longer a default part of auto-instrumentations-node.
1 parent f7ab1fc commit 80b1da6

File tree

1 file changed

+1
-12
lines changed

1 file changed

+1
-12
lines changed

scripts/lint-readme.js

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -62,18 +62,7 @@ if (!currentReadmeContent.includes(badgesToVerify)) {
6262
);
6363
}
6464

65-
if (isNode) {
66-
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.
67-
68-
Compatible with OpenTelemetry JS API and SDK \`1.0+\`.
69-
`
70-
71-
if (!currentReadmeContent.includes(distText)) {
72-
throw new Error(
73-
`README.md dist text is not valid. Please add the following text to the README.md file:\n\n${distText}`
74-
);
75-
}
76-
} else if (isWeb) {
65+
if (isWeb) {
7766
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.
7867
7968
Compatible with OpenTelemetry JS API and SDK \`1.0+\`.

0 commit comments

Comments
 (0)