Skip to content

🎧 Your Personal Streaming Service

feat(insights): collect ScannerExtractor configuration to measure gotaglib usage

Deluan63517e904cc8
diff --git a/core/metrics/insights.go b/core/metrics/insights.go
index df3ca9a42..f42e5c099 100644
--- a/core/metrics/insights.go
+++ b/core/metrics/insights.go
@@ -215,6 +215,7 @@ var staticData = sync.OnceValue(func() insights.Data {
data.Config.BackupCount = conf.Server.Backup.Count
data.Config.DevActivityPanel = conf.Server.DevActivityPanel
data.Config.ScannerEnabled = conf.Server.Scanner.Enabled
+ data.Config.ScannerExtractor = conf.Server.Scanner.Extractor
data.Config.ScanSchedule = conf.Server.Scanner.Schedule
data.Config.ScanWatcherWait = uint64(math.Trunc(conf.Server.Scanner.WatcherWait.Seconds()))
data.Config.ScanOnStartup = conf.Server.Scanner.ScanOnStartup
diff --git a/core/metrics/insights/data.go b/core/metrics/insights/data.go
index 19007fd06..99eb542a7 100644
--- a/core/metrics/insights/data.go
+++ b/core/metrics/insights/data.go
@@ -47,6 +47,7 @@ type Data struct {
LogFileConfigured bool `json:"logFileConfigured,omitempty"`
TLSConfigured bool `json:"tlsConfigured,omitempty"`
ScannerEnabled bool `json:"scannerEnabled,omitempty"`
+ ScannerExtractor string `json:"scannerExtractor,omitempty"`
ScanSchedule string `json:"scanSchedule,omitempty"`
ScanWatcherWait uint64 `json:"scanWatcherWait,omitempty"`
ScanOnStartup bool `json:"scanOnStartup,omitempty"`