Make sure buffer files are cleared at startup #159701

Open
mamazzol opened 10:28am on September 18, 2026 wants to merge 35 Δ into elastic/elasticsearch main from
otel-buffer-metrics

Pull request #159701 quality checks

Code files and functions touched by this pull request are analyzed below.

Quality targets

How does this pull request compare to chosen code quality targets? Read more about code quality targets.

Target name Target value This PR
Maximum Diff Delta per PR 750 35
Maximum comment count per PR 20 10
Pull request maximum business days between activity 3 1
Pull request maximum business days open 10 1

Coupled files

Are there any files from this commit that are always committed alongside another file? This often suggests that there exists code coupling to potentially remove. Read more about code coupling

Committed together % Code file
Coupled code file
Commits in PR with both
100 modules/apm/src/test/java/org/elasticsearch/telemetry/apm/internal/export/otelsdk/BufferingMetricExporterTests.java
modules/apm/src/main/java/org/elasticsearch/telemetry/apm/internal/export/otelsdk/BufferingMetricExporter.java
1
71 modules/apm/src/main/java/org/elasticsearch/telemetry/apm/internal/export/otelsdk/BufferingMetricExporter.java
modules/apm/src/test/java/org/elasticsearch/telemetry/apm/internal/export/otelsdk/BufferingMetricExporterTests.java
1

️ Biggest functions grown or shrunk by pull request

Which functions had their line count change as part of this pull request?

Could not find any functions changed by this pull request.