sentry-unity icon indicating copy to clipboard operation
sentry-unity copied to clipboard

DefaultTags in SentryBuildTimeOptionsConfiguration don't show up

Open polynatic opened this issue 1 year ago • 3 comments
trafficstars

Environment

How do you use Sentry? Sentry SaaS

Which version of the SDK? 2.0.0

How did you install the package? (Git-URL, Assetstore) UPM Git-URL

Which version of Unity? 2022.3.20

Is this happening in Unity (editor) or on a player like Android, iOS, Windows? iOS player, no other platform tested

Steps to Reproduce

public class SentryBuildTimeConfiguration : SentryBuildTimeOptionsConfiguration
{
    public override void Configure(SentryUnityOptions options, SentryCliOptions cliOptions)
    {
        options.DefaultTags.Add("branch", GetGitBranch());
    }
}
  1. Create Build
  2. Run on Device

Expected Result

The branch tag appears on all Sentry events coming from this build.

Actual Result

The tag is not present on any Sentry events.

polynatic avatar Mar 04 '24 17:03 polynatic