Skip to content

Commit

Permalink
Fix adding tags in sentry hook.
Browse files Browse the repository at this point in the history
  • Loading branch information
onrik committed Feb 22, 2018
1 parent d09d688 commit 6a64e23
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion sentry/sentry.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"fmt"
"net/http"

"github.com/sirupsen/logrus"
"github.com/getsentry/raven-go"
"github.com/sirupsen/logrus"
)

var (
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 6a64e23

Please sign in to comment.