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

[operator/nodejs] document disabling node auto-instrumentations #4824

Merged

Conversation

JamieDanielson
Copy link
Member

Summary

OTel JS auto-instrumentations-node v0.48.0 now includes the ability to disable instrumentations using environment variables.

Changes

  • Add section to operator docs for disabling instrumentations
  • Add headers and section to zero-code js configuration page for disabling instrumentations

I'm not sure if this is too redundant in this text, as it's mostly a copy-paste. Open to suggestions!

@JamieDanielson
Copy link
Member Author

Wait don't merge this I have a typo on a link

@JamieDanielson
Copy link
Member Author

JamieDanielson commented Jul 10, 2024

Wait don't merge this I have a typo on a link

Fixed!

Side note: I noticed in a separate issue that there is external link checking but it is currently excluding GitHub URLs, which is how this one got missed. Noting for anyone curious (I was 😄 )

Copy link
Contributor

@tiffany76 tiffany76 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for fixing those links! I noticed the broken http link as well. (@chalin not sure if this needs attention or if we're happy to continue ignoring GH links.)

LGTM!

Copy link
Contributor

@chalin chalin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. See inline suggestion.

Also, what happens if both OTEL_NODE_ENABLED_INSTRUMENTATIONS and OTEL_NODE_DISABLED_INSTRUMENTATIONS are provided? Should there be a note explaining this?

content/en/docs/kubernetes/operator/automatic.md Outdated Show resolved Hide resolved
@chalin
Copy link
Contributor

chalin commented Jul 10, 2024

Thanks for fixing those links! I noticed the broken http link as well. (@chalin not sure if this needs attention or if we're happy to continue ignoring GH links.)

Yes, thanks for fixing the link. I don't have the time to enable the link checking for GH links atm. If it becomes problematic (i.e., we feel that we've been manually detecting too many broken links into GH repos), then we can bump the priority on enabling such link checks.

@JamieDanielson
Copy link
Member Author

Also, what happens if both OTEL_NODE_ENABLED_INSTRUMENTATIONS and OTEL_NODE_DISABLED_INSTRUMENTATIONS are provided? Should there be a note explaining this?

All instrumentations are disabled because they are mutually exclusive. I can add that note. I've opened a PR on js-contrib to illustrate this behavior and if there is feedback to change behavior or update the debug message I can come back and open a new PR for that.

Copy link
Contributor

@tiffany76 tiffany76 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We try to avoid future tense if possible, so there's no question of when the thing happens. Otherwise, LGTM! Thanks.

content/en/docs/kubernetes/operator/automatic.md Outdated Show resolved Hide resolved
content/en/docs/zero-code/js/configuration.md Outdated Show resolved Hide resolved
@JamieDanielson
Copy link
Member Author

Also, what happens if both OTEL_NODE_ENABLED_INSTRUMENTATIONS and OTEL_NODE_DISABLED_INSTRUMENTATIONS are provided? Should there be a note explaining this?

All instrumentations are disabled because they are mutually exclusive. I can add that note. I've opened a PR on js-contrib to illustrate this behavior and if there is feedback to change behavior or update the debug message I can come back and open a new PR for that.

@chalin I added the note for behavior of both env vars being set, thanks for calling it out!

Copy link
Member

@svrnm svrnm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Assuming that @trentm's comments are blocking I put this in to not accidentally merge it

@JamieDanielson JamieDanielson requested review from svrnm and trentm July 23, 2024 22:29
Copy link
Contributor

@chalin chalin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, and I'm glad for this to get merged as is for now, but:

  • We might prefer the use of an {{% alert %}} short code instead of blockquote markdown
  • @svrnm - do we want to pull out that note into a shortcode given that it's used verbatim in two place. This would avoid drift.

@chalin
Copy link
Contributor

chalin commented Jul 23, 2024

Will let @svrnm have the final call here before this get's merged.

Copy link
Contributor

@trentm trentm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It does seem like there is some precedent in the content to use > ... blockquote markdown syntax for side-notes / call-outs.

@svrnm
Copy link
Member

svrnm commented Jul 24, 2024

do we want to pull out that note into a shortcode given that it's used verbatim in two place. This would avoid drift.

Agreed, but let's leave it like that to get this PR merged and we can fix this eventually.

It does seem like there is some precedent in the content to use > ... blockquote markdown syntax for side-notes / call-outs.

Yes, but we try to replace them whenever we handle an existing file, eventually we want to use the shortcode everywhere since it gives us more flexibility in styling & structuring those call outs.

I will fix the notice and merge this PR

@svrnm
Copy link
Member

svrnm commented Jul 24, 2024

/fix:all

@opentelemetrybot
Copy link
Collaborator

@svrnm svrnm merged commit 114d136 into open-telemetry:main Jul 24, 2024
5 checks passed
@svrnm
Copy link
Member

svrnm commented Jul 24, 2024

thank you all!

@JamieDanielson JamieDanielson deleted the jamie.node-disable-instrumentations branch July 24, 2024 22:26
@JamieDanielson
Copy link
Member Author

Yes, but we try to replace them whenever we handle an existing file, eventually we want to use the shortcode everywhere since it gives us more flexibility in styling & structuring those call outs.

Ah, good to know. I had that and removed it since it seemed like it was no longer a note that needed major attention. I thought it might be a "downgraded" note 😅

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

Successfully merging this pull request may close these issues.

9 participants