Loading README.md +2 −1 Original line number Diff line number Diff line Loading @@ -15,6 +15,7 @@ | STREAM_SDID | stream@12345 | No | Stream SD ID for stream logs | | PORT | 888 | No | The port used by quic protocol | | SENTRY_DSN | - | Yes | DSN for Sentry | | SENTRY_ENVIRONMENT | - | Yes | Environment for Sentry | # Stream logs Loading app/sentry-wrapper/sentry-wrapper.go +7 −0 Original line number Diff line number Diff line Loading @@ -18,8 +18,15 @@ func Init() (func(), error) { return nil, errors.New(errorMessage) } environment := os.Getenv("SENTRY_ENVIRONMENT") if(environment == "") { errorMessage := "Env SENTRY_ENVIRONMENT is not set !" return nil, errors.New(errorMessage) } err := sentry.Init(sentry.ClientOptions{ Dsn: dsn, Environment: environment, }) if err != nil { errorMessage := fmt.Sprintf("sentry.Init: %s", err) Loading Loading
README.md +2 −1 Original line number Diff line number Diff line Loading @@ -15,6 +15,7 @@ | STREAM_SDID | stream@12345 | No | Stream SD ID for stream logs | | PORT | 888 | No | The port used by quic protocol | | SENTRY_DSN | - | Yes | DSN for Sentry | | SENTRY_ENVIRONMENT | - | Yes | Environment for Sentry | # Stream logs Loading
app/sentry-wrapper/sentry-wrapper.go +7 −0 Original line number Diff line number Diff line Loading @@ -18,8 +18,15 @@ func Init() (func(), error) { return nil, errors.New(errorMessage) } environment := os.Getenv("SENTRY_ENVIRONMENT") if(environment == "") { errorMessage := "Env SENTRY_ENVIRONMENT is not set !" return nil, errors.New(errorMessage) } err := sentry.Init(sentry.ClientOptions{ Dsn: dsn, Environment: environment, }) if err != nil { errorMessage := fmt.Sprintf("sentry.Init: %s", err) Loading