diff --git a/CHANGELOG.md b/CHANGELOG.md index e532812bb40c..bfb86d588c20 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -41,6 +41,8 @@ Main (unreleased) - Update `pyroscope.ebpf` to produce more optimal pprof profiles for python processes https://github.com/grafana/pyroscope/pull/2788 (@korniltsev) +- Fixes `loki.source.docker` a behavior that synced an incomplete list of targets to the tailer manager. (@FerdinandvHagen) + v0.38.1 (2023-11-30) -------------------- diff --git a/component/loki/source/docker/docker.go b/component/loki/source/docker/docker.go index 53a25b85da47..400b1d30b5e6 100644 --- a/component/loki/source/docker/docker.go +++ b/component/loki/source/docker/docker.go @@ -242,11 +242,11 @@ func (c *Component) Update(args component.Arguments) error { return err } targets = append(targets, tgt) - - // This will never fail because it only fails if the context gets canceled. - _ = c.manager.syncTargets(context.Background(), targets) } + // This will never fail because it only fails if the context gets canceled. + _ = c.manager.syncTargets(context.Background(), targets) + c.args = newArgs return nil }