Chore: replace feature toggle filterOutBotsFromFrontendLogs with config (#112355)

* Chore: replace feature toggle with config

* chore: small fixes

* chore: updates after pr feedback

* chore: fixes writers toolkit error
This commit is contained in:
Hugo Häggmark
2025-10-16 12:03:07 +00:00
committed by GitHub
parent ffee922fae
commit a30a71905e
16 changed files with 125 additions and 92 deletions
@@ -14,6 +14,7 @@ type GrafanaJavascriptAgent struct {
CSPInstrumentalizationEnabled bool `json:"cspInstrumentalizationEnabled"`
TracingInstrumentalizationEnabled bool `json:"tracingInstrumentalizationEnabled"`
WebVitalsAttributionEnabled bool `json:"webVitalsAttributionEnabled"`
BotFilterEnabled bool `json:"botFilterEnabled"`
}
func (cfg *Cfg) readGrafanaJavascriptAgentConfig() {
@@ -32,5 +33,6 @@ func (cfg *Cfg) readGrafanaJavascriptAgentConfig() {
CSPInstrumentalizationEnabled: raw.Key("instrumentations_csp_enabled").MustBool(true),
TracingInstrumentalizationEnabled: raw.Key("instrumentations_tracing_enabled").MustBool(true),
WebVitalsAttributionEnabled: raw.Key("web_vitals_attribution_enabled").MustBool(true),
BotFilterEnabled: raw.Key("bot_filter_enabled").MustBool(false),
}
}