Logging: rate limit fronted logging endpoint (#29272)
Co-authored-by: Arve Knudsen <arve.knudsen@gmail.com> Co-authored-by: achatterjee-grafana <70489351+achatterjee-grafana@users.noreply.github.com>
This commit is contained in:
co-authored by
Arve Knudsen
achatterjee-grafana
parent
924212b42b
commit
7d9a528184
@@ -5,6 +5,8 @@ type Sentry struct {
|
||||
DSN string `json:"dsn"`
|
||||
CustomEndpoint string `json:"customEndpoint"`
|
||||
SampleRate float64 `json:"sampleRate"`
|
||||
EndpointRPS int `json:"-"`
|
||||
EndpointBurst int `json:"-"`
|
||||
}
|
||||
|
||||
func (cfg *Cfg) readSentryConfig() {
|
||||
@@ -14,5 +16,7 @@ func (cfg *Cfg) readSentryConfig() {
|
||||
DSN: raw.Key("sentry_dsn").String(),
|
||||
CustomEndpoint: raw.Key("custom_endpoint").String(),
|
||||
SampleRate: raw.Key("sample_rate").MustFloat64(),
|
||||
EndpointRPS: raw.Key("log_endpoint_requests_per_second_limit").MustInt(),
|
||||
EndpointBurst: raw.Key("log_endpoint_burst_limit").MustInt(),
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user