Skip to content

Commit

Permalink
chore: attach stack trace for sentry
Browse files Browse the repository at this point in the history
  • Loading branch information
Satont committed Aug 30, 2023
1 parent 8d52976 commit 5f7dac8
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 4 deletions.
3 changes: 2 additions & 1 deletion apps/api/cmd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,8 @@ func main() {

s, err := sentry.NewClient(
sentry.ClientOptions{
Dsn: config.SentryDsn,
Dsn: config.SentryDsn,
AttachStacktrace: true,
},
)

Expand Down
3 changes: 2 additions & 1 deletion apps/bots/cmd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ func main() {

s, err := sentry.NewClient(
sentry.ClientOptions{
Dsn: config.SentryDsn,
Dsn: config.SentryDsn,
AttachStacktrace: true,
},
)

Expand Down
3 changes: 2 additions & 1 deletion apps/timers/cmd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ func main() {

s, err := sentry.NewClient(
sentry.ClientOptions{
Dsn: config.SentryDsn,
Dsn: config.SentryDsn,
AttachStacktrace: true,
},
)

Expand Down
4 changes: 3 additions & 1 deletion apps/tokens/cmd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,15 @@ package main

import (
"fmt"
"github.com/satont/twir/libs/logger"
"log"
"net"
"os"
"os/signal"
"syscall"
"time"

"github.com/satont/twir/libs/logger"

"github.com/getsentry/sentry-go"
goredislib "github.com/go-redis/redis/v9"
"github.com/go-redsync/redsync/v4"
Expand Down Expand Up @@ -41,6 +42,7 @@ func main() {
Environment: cfg.AppEnv,
Debug: true,
TracesSampleRate: 1.0,
AttachStacktrace: true,
},
)
}
Expand Down

0 comments on commit 5f7dac8

Please sign in to comment.