Skip to content
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

Remove non-generic instrumentations from defaults #1734

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

wpessers
Copy link
Contributor

@wpessers wpessers commented Mar 4, 2025

This PR reduces the amount of default instrumentations. These are the instrumentations that are initialized by default when a user does not set the OTEL_NODE_ENABLED_INSTRUMENTATIONS environment variable on their lambda function.

The current defaults include a lot of instrumentations that are not generic. e.g. the express instrumentation is only useful to users who use the express.js framework in their lambda, but is currently part of the defaults.

To start I have reduced the list of defaults to contain:

dns
http
net

Having http instrumentation seems like a sensible default, as it is used under the hood by many other packages.

What concerns dns and net instrumentation, I can see a good case for removing those from the defaults as well.

  • dns: Do we need dns lookup etc spans by default?
  • net: Do we need tcp level spans by default?
    I'm personally leaning towards removing these from defaults as well. Any input here is appreciated!

fixes #1735

@wpessers wpessers force-pushed the feat/nodejs/update-auto-instrumentation-defaults branch from 5ca8656 to e5c0a54 Compare March 5, 2025 19:07
@wpessers wpessers changed the title Removen non-generic instrumentations from the default instrumentation… Remove non-generic instrumentations from defaults Mar 5, 2025
@wpessers wpessers marked this pull request as ready for review March 5, 2025 19:29
@wpessers wpessers requested a review from a team as a code owner March 5, 2025 19:29
@pragmaticivan
Copy link
Member

I'm honestly content with this list:

dns
http
net

While not extremely useful, DNS and Net might be relevant for some people and are generic enough that they might be worth keeping as default.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

node.js: Do not enable non-generic instrumentations by default
2 participants