-
Notifications
You must be signed in to change notification settings - Fork 438
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
bump @opentelemetry/auto-instrumentations-node
to allow enabling only selected instrumentations via env
#2745
Conversation
@atsu85 can you add a changelog entry for this change? Usually we don't do this for dependency upgrades, but this enables a few feature and is worth calling out. Should we add this as an attribute to the NodeJs instrumentation CR as well? @pavolloffay @jaronoff97 @TylerHelmuth |
@swiatekm-sumo
I thought i already did that by adding this file into
Is there anything else i should do? |
The env var can be already configured in the CR (in a generic way). If the values do not change we could define it as a field in the CR. @atsu85 do you have a link that lists all instrumentations that can be enabled/disabled? |
Sure. I indirectly already referenced to it via
that contains the link you asked for:
|
Sorry about that, the CI failing confused me. It looks like markdown-link-check is complaining about the anchor in the link you added, though I'm not sure why. |
It isn't related to the anchor, the message is just a hard coded fallback message in GHA pipeline, that isn't correct in this case, as the command fails for different reason. It seems that there was a bug with the code (thta didn't expect that ignore argument could be missing on that code execution path), and it should be fixed now with this commit. I'm force pushing to re-trigger the build pipeline, because i can't manually re-trigger it |
c60118d
to
0335ca9
Compare
to allow enabling only selected instrumentations specified via environment variable `OTEL_NODE_ENABLED_INSTRUMENTATIONS` open-telemetry#2622
0335ca9
to
80faaf1
Compare
@pavolloffay, the GHA changelog workflow is currently waiting for your approval, before it can run again:
|
@swiatekm-sumo , @pavolloffay, thanks for approving! Now all checks are green. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@atsu85 would you like to take on the followup PR to the opentelemetry site to update https://opentelemetry.io/docs/kubernetes/operator/automatic/#js-excluding-auto-instrumentation?
@TylerHelmuth, sure (created an issue)! But perhaps changes in this repo can be released first, so i could test it first by dogfooding it in our setup? I see that this part of the documentation (source) is now outdated. |
@TylerHelmuth, I created a PR to update the documentation - currently in draft status since this PR isn't released, but please review that as well! |
@pavolloffay, thanks for merging! @TylerHelmuth, @swiatekm-sumo, @pavolloffay, can you releas the changes, so i could test it first by dogfooding it in our setup, or should i prepare (manually??) the release branch myself based on this? |
@atsu85 the new release can be triggered by updating https://github.com/open-telemetry/opentelemetry-operator/blob/main/autoinstrumentation/nodejs/package.json#L28 along other dependencies. PRs are welcome :) |
To trigger release for open-telemetry#2622 that already bumped auto-instrumentations-node via open-telemetry#2745
Thanks! I created a PR #2754 - @pavolloffay, please review and approve, so it could start the GHA pipelines |
To trigger release for open-telemetry#2622 that already bumped auto-instrumentations-node via open-telemetry#2745
To trigger release for open-telemetry#2622 that already bumped auto-instrumentations-node via open-telemetry#2745
NB! Looks like this PR actually already overrode release of docker image autoinstrumentation-nodejs:0.46.0, that was previously released with the same version number also for example on 2024.01.18 and 2023.12.20 @pavolloffay, @TylerHelmuth , @swiatekm-sumo, were you aware of it? This seems like a bug to me. Maybe |
to allow enabling only selected instrumentations specified via environment variable `OTEL_NODE_ENABLED_INSTRUMENTATIONS` open-telemetry#2622
…toinstrumentation/nodejs (open-telemetry#2754) * Bump all NodeJS devDependences to latest versions * Bump all NodeJS dependences to latest versions To trigger release for open-telemetry#2622 that already bumped auto-instrumentations-node via open-telemetry#2745
Description:
Link to tracking Issue(s):
Testing:
Documentation:
Usage example:
export OTEL_NODE_ENABLED_INSTRUMENTATIONS="http,nestjs-core"
.See the documentation for details.