Skip to content

SDK names to indicate built for the Unity package #616

@bruno-garcia

Description

@bruno-garcia

When investigating an event captured by the sentry-cocoa SDK, we inspect the event payload's sdk.name property. It says: sentry.cocoa. This doesn't help us tell apart the build done through submodule in this repository, packaged with the Unity SDK. That information can help us troubleshoot issues and understand adoption of the SDK (of iOS apps in general vs iOS+Unity).

There was a change in the sentry-native (getsentry/sentry-native#677) to change its name (issue: getsentry/sentry-java#1901) when building for Android. But that won't help us understand if that was a Unity Android build (packaged via this repo, UPM packaging).

The goal: Events captured by installing sentry-unity should report sdk.name as follows:

  • C# errors: sentry.dotnet.unity
  • Android: Java/Kotlin: sentry.java.android.unity
  • Android: C, C++: sentry.native.android.unity
  • iOS: Objective-C, Swift, C, C++: sentry.cocoa.unity
  • macOS: Objective-C, Swift, C, C++: sentry.cocoa.unity
  • Windows: C, C++: sentry.native.unity

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions