service: [0.27.x] fix panic with NewWithConfig code path (#1646)

Co-authored-by: Erik Baranowski <erik.r.baranowski@gmail.com>
This commit is contained in:
Jan-Otto Kröpke 2024-09-28 10:40:55 +02:00 committed by GitHub
parent 4e460bc24c
commit 1e381f860d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 0 deletions

View File

@ -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)