Skip to content

Conversation

@lforst
Copy link
Contributor

@lforst lforst commented May 2, 2024

We removed the @sentry/serverless package for v8 of the JS SDK in favor of @sentry/aws-serverless, so we need to change how layer adds the -r (--require) flag to the Node.js process.

We do this by changing the require statement based on the lambda layer version.

@lforst lforst requested a review from a team as a code owner May 2, 2024 15:23
@github-actions github-actions bot added the Scope: Backend Automatically applied to PRs that change backend components label May 2, 2024
@lforst lforst requested a review from mydea May 2, 2024 15:35
@codecov
Copy link

codecov bot commented May 2, 2024

Codecov Report

Attention: Patch coverage is 60.00000% with 4 lines in your changes are missing coverage. Please review.

Project coverage is 79.83%. Comparing base (56d237c) to head (5bc34be).
Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master   #70137      +/-   ##
==========================================
+ Coverage   78.85%   79.83%   +0.98%     
==========================================
  Files        6507     6507              
  Lines      289584   289600      +16     
  Branches    49868    49869       +1     
==========================================
+ Hits       228344   231197    +2853     
+ Misses      60826    57990    -2836     
+ Partials      414      413       -1     
Files Coverage Δ
src/sentry/integrations/aws_lambda/utils.py 91.39% <60.00%> (+10.04%) ⬆️

... and 262 files with indirect coverage changes

@lforst lforst requested review from Lms24 and s1gr1d May 3, 2024 07:17
parsed_version = None

if (
# Lambda layer version 235 was the latest version using `@sentry/serverless` before we switched to `@sentry/aws-serverless`
Copy link
Member

Choose a reason for hiding this comment

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

Reminds me that we once thought about creating some kind of public mapping between layer version and SDK version. We should probably revisit this

@lforst lforst merged commit 052c95d into master May 3, 2024
@lforst lforst deleted the lforst-prep-lamda-for-changed-package branch May 3, 2024 08:23
@github-actions github-actions bot locked and limited conversation to collaborators May 18, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Scope: Backend Automatically applied to PRs that change backend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants