Skip to content

Send the .NET Runtime Identifier to Sentry#1708

Merged
mattjohnsonpint merged 2 commits intomainfrom
add-runtime-identifier
Jun 13, 2022
Merged

Send the .NET Runtime Identifier to Sentry#1708
mattjohnsonpint merged 2 commits intomainfrom
add-runtime-identifier

Conversation

@mattjohnsonpint
Copy link
Contributor

@mattjohnsonpint mattjohnsonpint commented Jun 13, 2022

This sends the value from System.Runtime.InteropServices.RuntimeInformation.RuntimeIdentifier to Sentry with all events, on the runtime context info. This is helpful (for example) when working with MAUI events.

It shows up in the Sentry issues page under the Runtime section further down the page.

image

Note, that the RuntimeIdentifier property is only available on .NET 5 and greater, so it is not sent for other targets.

@mattjohnsonpint
Copy link
Contributor Author

Per discussion, it would be nice to have it appear as a tag, like this:

image

But we don't want to send it as a custom tag for various reasons. Instead we'll send it just on the runtime context information, and consider having it extracted as a tag on the ingestion side.

@mattjohnsonpint mattjohnsonpint merged commit 3af55f7 into main Jun 13, 2022
@mattjohnsonpint mattjohnsonpint deleted the add-runtime-identifier branch June 13, 2022 21:11
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.

2 participants