From 6a64e23a4923a8d0d4db2806dcf3e55af1e48f61 Mon Sep 17 00:00:00 2001 From: Andrey Date: Thu, 22 Feb 2018 15:16:33 +0300 Subject: [PATCH] Fix adding tags in sentry hook. --- sentry/sentry.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sentry/sentry.go b/sentry/sentry.go index 07dc083..f64e90e 100644 --- a/sentry/sentry.go +++ b/sentry/sentry.go @@ -4,8 +4,8 @@ import ( "fmt" "net/http" - "github.com/sirupsen/logrus" "github.com/getsentry/raven-go" + "github.com/sirupsen/logrus" ) var ( @@ -87,6 +87,8 @@ func NewHook(dsn string, levels ...logrus.Level) *Hook { logrus.WithError(err).Error("Set DSN error") } + client.Tags = map[string]string{} + hook := Hook{ client: client, levels: levels,