Skip to content

Commit 3a490b1

Browse files
committed
Add SENTRY_DSN to configure a separate DSN or completely disable Sentry
1 parent b97d269 commit 3a490b1

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

gatewayd_plugin.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,5 @@ plugins:
2929
- PERIODIC_INVALIDATOR_START_DELAY=1m
3030
- API_ADDRESS=localhost:18080
3131
- EXIT_ON_STARTUP_ERROR=False
32+
- SENTRY_DSN=https://70eb1abcd32e41acbdfc17bc3407a543@o4504550475038720.ingest.sentry.io/4505342961123328
3233
checksum: 3988e10aefce2cd9b30888eddd2ec93a431c9018a695aea1cea0dac46ba91cae

main.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,10 @@ import (
1919
)
2020

2121
func main() {
22+
sentryDSN := sdkConfig.GetEnv("SENTRY_DSN", "")
2223
// Initialize Sentry SDK
2324
err := sentry.Init(sentry.ClientOptions{
24-
Dsn: "https://70eb1abcd32e41acbdfc17bc3407a543@o4504550475038720.ingest.sentry.io/4505342961123328",
25+
Dsn: sentryDSN,
2526
TracesSampleRate: 1.0,
2627
})
2728
if err != nil {

0 commit comments

Comments
 (0)