From 1e381f860d49a1dcf135c03ff10a1d6e489284fd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan-Otto=20Kr=C3=B6pke?= Date: Sat, 28 Sep 2024 10:40:55 +0200 Subject: [PATCH] service: [0.27.x] fix panic with NewWithConfig code path (#1646) Co-authored-by: Erik Baranowski --- pkg/collector/service/service.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/collector/service/service.go b/pkg/collector/service/service.go index 6b9fc41a..95153ac9 100644 --- a/pkg/collector/service/service.go +++ b/pkg/collector/service/service.go @@ -58,6 +58,7 @@ func New(logger log.Logger, config *Config) *Collector { c := &Collector{ serviceWhereClause: &config.ServiceWhereClause, useAPI: &config.UseAPI, + v2: &config.V2, } c.SetLogger(logger)