Skip to content

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 dd7cfd8

}

_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.

@codecov
Copy link

codecov bot commented Jan 22, 2026

Codecov Report

❌ Patch coverage is 94.73684% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 73.82%. Comparing base (35aaef9) to head (dd7cfd8).

Files with missing lines Patch % Lines
src/Sentry/Http/HttpTransportBase.cs 94.44% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4863      +/-   ##
==========================================
- Coverage   73.92%   73.82%   -0.10%     
==========================================
  Files         483      483              
  Lines       17551    17569      +18     
  Branches     3461     3465       +4     
==========================================
- Hits        12974    12970       -4     
- Misses       3721     3744      +23     
+ Partials      856      855       -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 !

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