Skip to content

fix: skip screenshot capture on dropped events#2661

Merged
bitsandfoxes merged 7 commits intomainfrom
chore/bump-dotnet-6.5.0
May 6, 2026
Merged

fix: skip screenshot capture on dropped events#2661
bitsandfoxes merged 7 commits intomainfrom
chore/bump-dotnet-6.5.0

Conversation

@bitsandfoxes
Copy link
Copy Markdown
Contributor

@bitsandfoxes bitsandfoxes commented May 5, 2026

Relates to #2642 and follows the release of getsentry/sentry-dotnet#5162

Fixes #2641

Screenshot capture will be skipped if the triggering event was not captured as this would lead to an "orphaned" screenshot.

Changelog

6.5.0

Features ✨

  • feat: Add support to send OTEL traces via OTLP by jamescrosswell in #4899

Fixes 🐛

  • fix(unity): update SentryEvent to have IsCaptured to allow dropping screenshots of filtered events by JoshuaMoelans in #5162
  • fix: Memory leak when filtered Activities get garbage collected before PruneFilteredSpans runs by jamescrosswell in #5186

Dependencies ⬆️

Deps
  • chore(deps): update Cocoa SDK to v9.12.0 by github-actions in #5179
  • chore(deps): update CLI to v3.4.1 by github-actions in #5171
  • chore(deps): update Native SDK to v0.13.8 by github-actions in #5165
  • chore(deps): update Java SDK to v8.40.0 by github-actions in #5161
  • chore(deps): update Cocoa SDK to v9.11.0 by github-actions in #5160
  • chore(deps): update CLI to v3.4.0 by github-actions in #5145
  • chore(deps): update Java SDK to v8.39.1 by github-actions in #5144

Other

  • perf(logs): avoid string allocation when no parameters are passed by Flash0ver in #4697
  • chore: fix missing skill by jamescrosswell in #5134

6.4.1

Fixes 🐛

  • fix: prevent redundant native exceptions on Android/CoreCLR by jpnurmi in #5127

Dependencies ⬆️

Deps
  • chore(deps): update Java SDK to v8.39.0 by github-actions in #5137
  • chore(deps): update Native SDK to v0.13.7 by github-actions in #5136

6.4.0

Features ✨

  • feat: Add network details for session replay on iOS by jamescrosswell in #4891
  • feat: Add option to exclude certain HTTP statuses from tracing by jamescrosswell in #5034

Fixes 🐛

  • fix: memory leak when profiling is enabled by jamescrosswell in #5133
  • fix: prevent redundant native exceptions on iOS by jpnurmi in #5126
  • fix: prevent redundant native exceptions on Android/Mono by jpnurmi in #4676
    • Note: opt in by setting options.Native.ExperimentalOptions.SignalHandlerStrategy to Sentry.Android.SignalHandlerStrategy.ChainAtStart

Dependencies ⬆️

Deps
  • chore(deps): update Cocoa SDK to v9.10.0 by github-actions in #5132
  • chore(deps): update Cocoa SDK to v9.9.0 by github-actions in #5115
  • chore(deps): update Java SDK to v8.38.0 by github-actions in #5124

6.3.2

Dependencies ⬆️

  • chore(deps): update Native SDK to v0.13.6 by github-actions in #5128

bitsandfoxes and others added 7 commits May 5, 2026 15:42
The previous test called processor.Process() directly, bypassing
DoSendEvent entirely. It passed after the WasCaptured fix only
because the flag defaults to false — not because DoSendEvent
actively left it false after before_send dropped the event.

The new tests register the screenshot processor via
AddEventProcessor and trigger events through SentrySdk.CaptureMessage,
so the event flows through the real pipeline. A positive control
test confirms screenshots are sent when events are captured.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Copy link
Copy Markdown
Member

@JoshuaMoelans JoshuaMoelans left a comment

Choose a reason for hiding this comment

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

LGTM 🚀

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.

Unity SDK sends screenshot when the event is dropped via BeforeSend

2 participants