Skip to content

Add LastEventId to the Unity SentrySdk - #2945

Merged
bitsandfoxes merged 2 commits into
mainfrom
snek/sentry-unity-lasteventid
Nov 12, 2026
Merged

bitsandfoxes merged 2 commits into
mainfrom
snek/sentry-unity-lasteventid

Conversation

@bitsandfoxes

Copy link
Copy Markdown
Contributor

Adds LastEventId to the Unity SentrySdk. It returns the ID of the last event captured in the current scope, forwarded from sentry-dotnet's SentrySdk.LastEventId like the wrapper's other members. sentry-dotnet's SentrySdk isn't accessible from Unity, so without this, users have to use reflection to read the value.

A PlayMode test checks that LastEventId matches the ID returned by CaptureMessage.

Closes #2923

🤖 Generated with Claude Code

@github-actions

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

Generated by 🚫 dangerJS against 9e41f01

@bitsandfoxes
bitsandfoxes marked this pull request as ready for review November 12, 2026 12:26
@bitsandfoxes
bitsandfoxes merged commit 5d1c54a into main Nov 12, 2026
73 checks passed
@bitsandfoxes
bitsandfoxes deleted the snek/sentry-unity-lasteventid branch November 12, 2026 13:22
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.

Add a LastEventId wrapper to the Unity SentrySdk

4 participants