-
-
Notifications
You must be signed in to change notification settings - Fork 4.5k
ref(aws-lambda-integration): Ensure correct node options for all layers #83633
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
ref(aws-lambda-integration): Ensure correct node options for all layers #83633
Conversation
062ba8a to
45c49db
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅ ✅ All tests successful. No failed tests found. Additional details and impacted files@@ Coverage Diff @@
## master #83633 +/- ##
==========================================
+ Coverage 87.53% 87.59% +0.05%
==========================================
Files 9409 9491 +82
Lines 537867 538935 +1068
Branches 21179 21179
==========================================
+ Hits 470836 472094 +1258
+ Misses 66683 66493 -190
Partials 348 348 |
45c49db to
1c0cae3
Compare
Previously, we only had one node lambda layer called `SentryNodeServerlessSDK`. With the `v8` major of the sentry-javascript SDKs a new layer for `v7` was published under `SentryNodeServerlessSDKv7` while the `v8` layer rolled over into `SentryNodeServerlessSDK`. With `v8` the `@sentry/serverless` package was removed (see: #70137) and a version check was added to the integration to update `NODE_OPTIONS` for the integration accordingly. The version check assumes the `SentryNodeServerlessSDK` name and only checks the ARN version which is not enough to identify a `v7` layer since the introduction of `SentryNodeServerlessSDKv7`. With `v9` we will stop updating the `SentryNodeServerlessSDK` and instead publish `SentryNodeServerlessSDKv9` exclusively, the integration has to ensure the correct `NODE_OPTIONS` are set depending on layer name and ARN version which this PR adds.
1c0cae3 to
84e0187
Compare
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.
changes lgtm, going to leave the final stamp to someone with a bit more context.
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.
Nice, good that we're now also taking the layer name into account. I guess previously, the SentryNodeServerlessSDKv7 layer would have implicitly worked because its ARN version number by chance was <=235? Def better to check this explicitly.
Yep, happened to work because of that. For the |
…rs (#83633) Previously, we only had one node lambda layer called `SentryNodeServerlessSDK`. With the `v8` major of the sentry-javascript SDKs a new layer for `v7` was published under `SentryNodeServerlessSDKv7` while the `v8` layer rolled over into `SentryNodeServerlessSDK`. With `v8` the `@sentry/serverless` package was removed (see: #70137) and a version check was added to the integration to update `NODE_OPTIONS` for the integration accordingly. The version check assumes the `SentryNodeServerlessSDK` name and only checks the ARN version which is not enough to identify a `v7` layer since the introduction of `SentryNodeServerlessSDKv7`. With `v9` we will stop updating the `SentryNodeServerlessSDK` and instead publish `SentryNodeServerlessSDKv9` exclusively, the integration has to ensure the correct `NODE_OPTIONS` are set depending on layer name and ARN version which this PR adds. Closes: #82646
Previously, we only had one node lambda layer called
SentryNodeServerlessSDK. With thev8major of the sentry-javascript SDKs a new layer forv7was published underSentryNodeServerlessSDKv7while thev8layer rolled over intoSentryNodeServerlessSDK.With
v8the@sentry/serverlesspackage was removed (see: #70137) and a version check was added to the integration to updateNODE_OPTIONSfor the integration accordingly. The version check assumes theSentryNodeServerlessSDKname and only checks the ARN version which is not enough to identify av7layer since the introduction ofSentryNodeServerlessSDKv7.With
v9we will stop updating theSentryNodeServerlessSDKand instead publishSentryNodeServerlessSDKv9exclusively, the integration has to ensure the correctNODE_OPTIONSare set depending on layer name and ARN version which this PR adds.Closes: #82646