Skip to content

Commit

Permalink
util/log: add custom crash tags to sentry
Browse files Browse the repository at this point in the history
In #106786 we added the ability to provide an environment
variable that was meant to add custom tags to sentry crash
reports. That change added the function that would create
the map of crash report tags / values, but it was never actually
used. This change ensures that tags from that environment
variable will actually show up in the sentry reports.

Release note: None

Epic: None
  • Loading branch information
PJ Tatlow committed Aug 17, 2023
1 parent 8d5ff3f commit 595376f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/util/log/logcrash/crash_reporting.go
Original file line number Diff line number Diff line change
Expand Up @@ -255,6 +255,7 @@ func SetupCrashReporter(ctx context.Context, cmd string) {
crashReportingActive = true

sentry.ConfigureScope(func(scope *sentry.Scope) {
scope.SetTags(getTagsFromEnvironment())
scope.SetTags(map[string]string{
"cmd": cmd,
"platform": info.Platform,
Expand Down

0 comments on commit 595376f

Please sign in to comment.