Skip to content

fix: improve error handling for webhook v2 - #4062

Merged
vinayteki95 merged 2 commits into
mainfrom
hotfix/11022025
Feb 11, 2025
Merged

vinayteki95 merged 2 commits into
mainfrom
hotfix/11022025

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 10:14
@vinayteki95
vinayteki95 requested review from a team, koladilip and manish339k February 11, 2025 10:14
@vinayteki95 vinayteki95 changed the title Hotfix/11022025 hotfix/11022025 Feb 11, 2025
@vinayteki95 vinayteki95 changed the title hotfix/11022025 hotfix: improve error handling for webhook v2 Feb 11, 2025
@vinayteki95 vinayteki95 changed the title hotfix: improve error handling for webhook v2 fix: improve error handling for webhook v2 Feb 11, 2025
@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 (5d1e1bd).
Report is 3 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4062      +/-   ##
==========================================
- Coverage   91.00%   90.86%   -0.14%     
==========================================
  Files         629      630       +1     
  Lines       32824    32825       +1     
  Branches     7788     7787       -1     
==========================================
- 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 d795830 into main Feb 11, 2025
@vinayteki95
vinayteki95 deleted the hotfix/11022025 branch February 11, 2025 10:29
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