MM-28189 - Sentry CI improvements (#15547)
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
e974b7b9be
Коммит
11d9958a99
@@ -228,6 +228,16 @@ func NewServer(options ...Option) (*Server, error) {
|
||||
Dsn: SENTRY_DSN,
|
||||
Release: model.BuildHash,
|
||||
AttachStacktrace: true,
|
||||
BeforeSend: func(event *sentry.Event, hint *sentry.EventHint) *sentry.Event {
|
||||
// sanitize data sent to sentry to reduce exposure of PII
|
||||
if event.Request != nil {
|
||||
event.Request.Cookies = ""
|
||||
event.Request.QueryString = ""
|
||||
event.Request.Headers = nil
|
||||
event.Request.Data = ""
|
||||
}
|
||||
return event
|
||||
},
|
||||
}); err != nil {
|
||||
mlog.Warn("Sentry could not be initiated, probably bad DSN?", mlog.Err(err))
|
||||
}
|
||||
|
||||
Ссылка в новой задаче
Block a user