Skip to content

feat: Update error 413 handling#4863

Merged
Flash0ver merged 4 commits intomainfrom
feat/handle-413
Jan 26, 2026
Merged

feat: Update error 413 handling#4863
Flash0ver merged 4 commits intomainfrom
feat/handle-413

Conversation

@bitsandfoxes
Copy link
Contributor

@bitsandfoxes bitsandfoxes commented Jan 22, 2026

@github-actions
Copy link
Contributor

github-actions bot commented Jan 22, 2026

Messages
📖 Do not forget to update Sentry-docs with your feature once the pull request gets approved.

Generated by 🚫 dangerJS against 5c48f7b

}

_options.ClientReportRecorder.RecordDiscardedEvents(DiscardReason.NetworkError, envelope);
_options.ClientReportRecorder.RecordDiscardedEvents(DiscardReason.SendError, envelope);
Copy link
Contributor Author

@bitsandfoxes bitsandfoxes Jan 22, 2026

Choose a reason for hiding this comment

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

If I read the docs correctly it is expected to now effectively change all NetworkError to SendError, see https://develop.sentry.dev/sdk/expected-features/#dealing-with-network-failures

If Sentry returns an HTTP 4xx or HTTP 5xx status code, SDKs:

MUST discard the envelope
MUST record a [client report](https://develop.sentry.dev/sdk/telemetry/client-reports/) with the discard reason send_error, except for an HTTP 429 response, see below.

Copy link
Member

Choose a reason for hiding this comment

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

I believe you're right.
Disambiguating the dev-docs via getsentry/sentry-docs#16152.

@codecov
Copy link

codecov bot commented Jan 22, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 73.86%. Comparing base (a2c61d4) to head (5c48f7b).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4863      +/-   ##
==========================================
+ Coverage   73.83%   73.86%   +0.03%     
==========================================
  Files         483      483              
  Lines       17559    17577      +18     
  Branches     3461     3464       +3     
==========================================
+ Hits        12965    12984      +19     
+ Misses       3742     3740       -2     
- Partials      852      853       +1     

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@bitsandfoxes
Copy link
Contributor Author

@sentry review

Copy link
Collaborator

@jamescrosswell jamescrosswell left a comment

Choose a reason for hiding this comment

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

Thanks @bitsandfoxes !

@Flash0ver Flash0ver merged commit 866b314 into main Jan 26, 2026
34 of 35 checks passed
@Flash0ver Flash0ver deleted the feat/handle-413 branch January 26, 2026 16:21
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.

SDK Handling HTTP 413 [.NET]

3 participants