Skip to content

Commit 07a3543

Browse files
Fix: Add product name to release as default (#202)
* add productname to release * updated CHANGELOG.md * removed release override on eventprocessor * added test for custom release * Update src/Sentry.Unity/SentryUnity.cs Co-authored-by: Bruno Garcia <bruno@brunogarcia.com> Co-authored-by: Bruno Garcia <bruno@brunogarcia.com>
1 parent 40cf09a commit 07a3543

4 files changed

Lines changed: 302 additions & 275 deletions

File tree

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# Changelog
22

3+
## Unreleased
4+
5+
### Fixes
6+
7+
- Add product name to release as default ([#202](https://github.com/getsentry/sentry-unity/pull/202))
8+
39
## 0.1.0
410

511
### Features

src/Sentry.Unity/SentryUnity.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@ public static void Init(SentryUnityOptions unitySentryOptions)
3232
// Uses the game `version` as Release unless the user defined one via the Options
3333
if (unitySentryOptions.Release == null)
3434
{
35-
unitySentryOptions.Release = Application.version;
35+
unitySentryOptions.Release = $"{Application.productName}@{Application.version}";
36+
3637
unitySentryOptions.DiagnosticLogger?.Log(SentryLevel.Debug,
3738
"Setting Sentry Release to Unity App.Version: {0}",
3839
null, unitySentryOptions.Release);

0 commit comments

Comments
 (0)