Add logging HTTP requests as single session

This commit is contained in:
Ingo Oppermann
2023-06-21 16:46:35 +02:00
parent 6826a0b22d
commit b8a975b7c7
4 changed files with 96 additions and 15 deletions

View File

@@ -314,7 +314,7 @@ func (r *registry) Register(id string, conf CollectorConfig) (Collector, error)
return nil, fmt.Errorf("a collector with the ID '%s' already exists", id)
}
m, err := newCollector(id, r.persist.sessionsCh, r.logger.WithComponent(id), conf)
m, err := newCollector(id, r.persist.sessionsCh, r.logger, conf)
if err != nil {
return nil, err
}