Skip to content

fix: improve error handling for webhook v2 - #4061

Merged
vinayteki95 merged 1 commit into
hotfix/11022025from
fix.webhook-v2-error-handling-improvements
Feb 11, 2025
Merged

vinayteki95 merged 1 commit into
hotfix/11022025from
fix.webhook-v2-error-handling-improvements

Conversation

@vinayteki95

Copy link
Copy Markdown
Contributor

What are the changes introduced in this PR?

  • Catch json parsing errors during source transformation payload conversion to avoid unnecessary bugsnag alerts
  • Enhance stat tags with srcType to improve debugging capabilities

What is the related Linear task?

Resolves INT-3134

Please explain the objectives of your changes below

Improve observability and clean up bugsnag alerting

Any changes to existing capabilities/behaviour, mention the reason & what are the changes ?

NO

Any new dependencies introduced with this change?

NO

Any new generic utility introduced or modified. Please explain the changes.

  • Source payload conversion strategies are modified in the way they handle errors. json errors are caught explicitly and thrown as 400 - Transformation Errors

Any technical or performance related pointers to consider with the change?

NO

@coderabbitai review


Developer checklist

  • My code follows the style guidelines of this project

  • No breaking changes are being introduced.

  • All related docs linked with the PR?

  • All changes manually tested?

  • Any documentation changes needed with this change?

  • Is the PR limited to 10 file changes?

  • Is the PR limited to one linear task?

  • Are relevant unit and component test-cases added in new readability format?

Reviewer checklist

  • Is the type of change in the PR title appropriate as per the changes?

  • Verified that there are no credentials or confidential data exposed with the changes.

@vinayteki95
vinayteki95 requested review from a team and sivashanmukh as code owners February 11, 2025 09:48
@vinayteki95
vinayteki95 requested review from a team, ItsSudip, koladilip, krishna2020 and utsabc and removed request for a team February 11, 2025 09:48
@devops-github-rudderstack

Copy link
Copy Markdown
Contributor

@codecov

codecov Bot commented Feb 11, 2025 •

Copy link
Copy Markdown

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 90.86%. Comparing base (68497f9) to head (f44d5a5).
Report is 2 commits behind head on hotfix/11022025.

Additional details and impacted files
@@                 Coverage Diff                 @@
##           hotfix/11022025    #4061      +/-   ##
===================================================
- Coverage            91.00%   90.86%   -0.14%     
===================================================
  Files                  629      630       +1     
  Lines                32824    32825       +1     
  Branches              7788     7783       -5     
===================================================
- Hits                 29871    29826      -45     
- Misses                2734     2776      +42     
- Partials               219      223       +4     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@sonarqubecloud

Copy link
Copy Markdown

@vinayteki95
vinayteki95 merged commit 5d1e1bd into hotfix/11022025 Feb 11, 2025
@vinayteki95
vinayteki95 deleted the fix.webhook-v2-error-handling-improvements branch February 11, 2025 10:11
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.

2 participants