Skip to content

Commit

Permalink
Adding sentry tracing
Browse files Browse the repository at this point in the history
  • Loading branch information
dmerrick committed May 23, 2021
1 parent 0acb9cc commit 230a423
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pkg/errors/errors.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,10 @@ var conf config.Config
// Initialize takes a Config interface and sets up a logger
func Initialize(c config.Config) {
// sentry options are picked up through ENV vars
sentry.Init(sentry.ClientOptions{})
sentry.Init(sentry.ClientOptions{
// enable tracing
TracesSampleRate: 0.2,
})

conf = c
}
Expand Down

0 comments on commit 230a423

Please sign in to comment.