Skip to content

Conversation

@ritvick
Copy link

@ritvick ritvick commented Jan 15, 2026

No description provided.

@ritvick ritvick requested review from a team as code owners January 15, 2026 21:56
@github-actions
Copy link

github-actions bot commented Jan 15, 2026

All contributors have signed the CLA ✍️ ✅
Posted by the CLA Assistant Lite bot.

@ritvick
Copy link
Author

ritvick commented Jan 15, 2026

I have read the CLA Document and I hereby sign the CLA

@ritvick
Copy link
Author

ritvick commented Jan 15, 2026

recheck

@johnbley
Copy link
Contributor

The CLA check is failing due to what looks like a token expiration. I've asked on an internal channel for help figuring it out.

Copy link
Member

@sgracias1 sgracias1 left a comment

Choose a reason for hiding this comment

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

looks ok, can you link to the equivalent upstream otel changes

@ritvick
Copy link
Author

ritvick commented Jan 20, 2026

Upstream change PR is here: open-telemetry/opentelemetry-lambda#1574

source /opt/splunk-default-config

export NODE_OPTIONS="${NODE_OPTIONS} --require /opt/wrapper.js"
node_version="$(node -p "process.versions.node" 2>/dev/null || echo "")"
Copy link
Contributor

Choose a reason for hiding this comment

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

This isn't really correct, as the actual node executable to run is contained somewhere in $@ - bearing in mind that the chain of shell handlers could be deeper than 1. The complexity of supporting that is not worth it and likely we will wind up simply dropping support for nodes < 20 anyway and so this code could be dropped.

Copy link
Author

Choose a reason for hiding this comment

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

This will mean we will need to drop support for versions < 20.
We could update everything and do a release that supports the older runtimes.
Then, make another release that drops older runtime support and adds the clean mjs fix.

PS: AWS will still allow Lambda functions to be updated for nodejs version 18 till Sep 30, 2026.
https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html#runtimes-deprecated

Copy link
Contributor

@seemk seemk Feb 6, 2026

Choose a reason for hiding this comment

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

Node.js 18 reached end of life last year. According to OTel's policy only Active or Maintenance LTS versions are supported. It would be completely fine to drop support for Node < 20 now (we just have to document it).

Copy link
Contributor

Choose a reason for hiding this comment

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

Yes, I think that's the conclusion we're reaching. This will still need to wait for a regular update release before we merge it though, and that's gated on open-telemetry/opentelemetry-lambda#2122 (comment) at the moment.

@@ -0,0 +1,101 @@
import * as module from 'module';
Copy link
Contributor

Choose a reason for hiding this comment

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

Are there any changes in this from upstream? If not, then we should copy this into our build by simply pulling it from the git submodule. If there are, then there should be a comment stating where it came from and what the tweaks are so that future maintainers can have a chance to reconcile diffs.

Copy link
Contributor

Choose a reason for hiding this comment

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

Agree, they seem identical, so the submodule would work great. At the very least we should provide attribution where it's coming from.

srv-gh-o11y-gdi-cla added a commit to splunk/cla-agreement that referenced this pull request Feb 6, 2026
@johnbley
Copy link
Contributor

johnbley commented Feb 6, 2026

@ritvick this PR contains unsigned commits. From experience I will say that the best way to approach this is to

  1. Stash your diffs somewhere
  2. Delete this branch and close this PR
  3. Start a new branch and a new PR where only signed commits happen.

Anything less will just be wasted effort.

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.

4 participants