Skip to content

feat: Report connection type and cellular generation on C# events - #2889

Draft
alwx wants to merge 3 commits into
mainfrom
alwx/feature/1932
Draft

alwx wants to merge 3 commits into
mainfrom
alwx/feature/1932

Conversation

@alwx

@alwx alwx commented Oct 20, 2026

Copy link
Copy Markdown

Description

On Android, iOS, and macOS, C# events now report device.connection_type and device.connection_effective_type (for example 4g or 5g). sentry-java 8.60.0 and sentry-cocoa 9.30.0 already report these fields on native events, but C# events do not pass through the native SDKs. UnityEventProcessor now reads both values from the native SDK on the main thread: over JNI on Android, and through a new bridge function on iOS and macOS.

Notes

The commit "Update sentry-dotnet to c9ad2be4" points src/sentry-dotnet at unreleased main, because the new Device fields come from getsentry/sentry-dotnet#5745. That commit gets replaced by the update to the next sentry-dotnet release before merge. The Android path calls internal sentry-java classes (AndroidConnectionStatusProvider, NetworkConnection), so new ProGuard rules keep their names. Device checks are still open: the Android emulator, the iOS Simulator, and a real iPhone on cellular data.

Closes #1932

alwx added 3 commits October 20, 2026 13:36
C# events do not pass through the native SDK, so they did not get
device.connection_type or device.connection_effective_type, which
sentry-java 8.60.0 and sentry-cocoa 9.30.0 report on native events.

UnityEventProcessor now reads both values from the native SDK on the
main thread. On Android, SentryJava reads the cached connection from
AndroidConnectionStatusProvider through JNI, and new ProGuard rules keep
the class names. On iOS and macOS, a new bridge function reads the
device entry of the Cocoa extra context.

This needs the Device fields from getsentry/sentry-dotnet#5745.
The feature needs Device.ConnectionType and Device.ConnectionEffectiveType
from getsentry/sentry-dotnet#5745, which is merged but not released.
sentry-dotnet main needs .NET SDK 10.0.402, so global.json moves too.

Replace this commit with the update to the next sentry-dotnet release.
@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 5411831

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.

Connection Type to include Cellular Network Technology (e.g. 3G, 4G LTE, 5G)

1 participant