Skip to content

Commit

Permalink
chore: sentry set tags
Browse files Browse the repository at this point in the history
  • Loading branch information
olup committed Jul 31, 2022
1 parent 5d56646 commit ad3f760
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions app.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,8 @@ func (a *App) startup(ctx context.Context) {
}

sentry.ConfigureScope(func(scope *sentry.Scope) {
scope.SetContext("infos", map[string]interface{}{
"version": version,
"machineId": machineId,
})
scope.SetTag("version", version)
scope.SetTag("machineId", machineId)
})

sentry.CaptureMessage("initial-event")
Expand Down

0 comments on commit ad3f760

Please sign in to comment.