-
Notifications
You must be signed in to change notification settings - Fork 544
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(auto-instrumentations-node)!: disable @opentelemetry/instrumentation-fs by default #2467
feat(auto-instrumentations-node)!: disable @opentelemetry/instrumentation-fs by default #2467
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #2467 +/- ##
=======================================
Coverage 90.74% 90.74%
=======================================
Files 156 156
Lines 7723 7725 +2
Branches 1588 1588
=======================================
+ Hits 7008 7010 +2
Misses 715 715
|
nit: The linked issue points out this change for the (expected to be very rare) user that relies on the
Ideally it would be nice to point this out in the changelog. However, I don't recall if we have a way for a PR to add some explicit prose to the changelog. A fallback is to perhaps clearly point out what the user needs to do in the PR description? |
Good point. I've added some info to the PR description. I have not found a simple way to have the auto-generated changelog include details, but I'll modify the Github Release to include that info as well 🙂 |
This is now disabled by default. See: open-telemetry/opentelemetry-js-contrib#2467
This is now disabled by default. See: open-telemetry/opentelemetry-js-contrib#2467
@pichlermarc the fix isn’t working as expected. Even when I use This check seems incorrect. |
Hi @ilushaR - thanks for letting me know. 🙂 I'll have a look. I opened #2515 to follow up. (FYI: in the future please always open a new issue rather then commenting on a closed PR/issue, opening a new one will ensure that we see a bug report - I usually filter out any activity on closed PRs/issues. 🙂 ) |
Which problem is this PR solving?
see #2453 - many users seek to disable
@opentelemetry/instrumentation-fs
due to it's verbosity. This is so common that we have added instructions on how to disable it everywhere.This PR disables the instrumentation by default. To get back to the previous behavior, end-users can add 'fs' to a comma seperated list in
OTEL_NODE_ENABLED_INSTRUMENTATIONS
when using enviornment variable configuration, or they can explicitly enable the instrumentation like so when usinggetNodeAutoInstrumentations()
:FAQ
I need
@opentelemetry/instrumentation-fs
back, how do I get back to the previous state?If you're using
@opentelemetry/auto-instrumentations-node/register
withoutOTEL_NODE_ENABLED_INSTRUMENTATIONS
setOTEL_NODE_ENABLED_INSTRUMENTATIONS=amqplib,aws-lambda,aws-sdk,bunyan,cassandra-driver,connect,cucumber,dataloader,dns,express,fastify,fs,pool,graphql,grpc,hapi,http,ioredis,kafkajs,knex,koa,memoizer,memcached,instrumentation-mongodb,instrumentation-mongoose,instrumentation-mysql2,instrumentation-mysql,instrumentation-nestjs-core,instrumentation-net,instrumentation-pg,instrumentation-pino,instrumentation-redis,instrumentation-redis-4,instrumentation-restify,instrumentation-router
If you're using
getAutoInstrumentationsNode()
without an options object that contains@opentelemetry/fs
and withoutOTEL_NODE_ENABLED_INSTRUMENTATIONS
setOTEL_NODE_ENABLED_INSTRUMENTATIONS=amqplib,aws-lambda,aws-sdk,bunyan,cassandra-driver,connect,cucumber,dataloader,dns,express,fastify,fs,pool,graphql,grpc,hapi,http,ioredis,kafkajs,knex,koa,memoizer,memcached,instrumentation-mongodb,instrumentation-mongoose,instrumentation-mysql2,instrumentation-mysql,instrumentation-nestjs-core,instrumentation-net,instrumentation-pg,instrumentation-pino,instrumentation-redis,instrumentation-redis-4,instrumentation-restify,instrumentation-router
If you're using
getAutoInstrumentationsNode()
but you don't want to use enviornment variablesFixes #2453