diff --git a/changelogs/head.asciidoc b/changelogs/head.asciidoc index ab1a5e60bcd..ff48f688666 100644 --- a/changelogs/head.asciidoc +++ b/changelogs/head.asciidoc @@ -7,6 +7,7 @@ https://github.com/elastic/apm-server/compare/8.15\...main[View commits] ==== Bug fixes - Track all bulk request response status codes {pull}13574[13574] +- Fix APM Agents configuration cache renewal {pull}13958[13958] [float] ==== Breaking Changes diff --git a/internal/agentcfg/elasticsearch.go b/internal/agentcfg/elasticsearch.go index b217882bfe7..378071d16f3 100644 --- a/internal/agentcfg/elasticsearch.go +++ b/internal/agentcfg/elasticsearch.go @@ -278,7 +278,7 @@ func (f *ElasticsearchFetcher) singlePageRefresh(ctx context.Context, scrollID s } resp, err := esapi.ScrollRequest{ - ScrollID: result.ScrollID, + ScrollID: scrollID, Scroll: f.cacheDuration, }.Do(ctx, f.client) if err != nil {