Conditions | 1 |
Total Lines | 11 |
Code Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | package infrastructures |
||
38 | func initSentry(cfg config.SentryConfigStruct) { |
||
39 | otelzap.Ctx(context.Background()).Info("Initializing Sentry :", zap.Float64("traces_sample_rate", cfg.TracesSampleRate), zap.Float64("profiles_sample_rate", cfg.ProfilesSampleRate)) |
||
40 | _ = sentry.Init(sentry.ClientOptions{ |
||
41 | Dsn: cfg.DSN, |
||
42 | Debug: cfg.Debug, |
||
43 | AttachStacktrace: true, |
||
44 | Environment: cfg.Environment, |
||
45 | Release: cfg.Release, |
||
46 | EnableTracing: true, |
||
47 | TracesSampleRate: cfg.TracesSampleRate, |
||
48 | ProfilesSampleRate: cfg.ProfilesSampleRate, |
||
49 | }) |
||
51 |