Skip to content

fix(otel-export): remove redundant forceFlush before shutdown#753

Merged
joshrwolf merged 1 commit intochainguard-dev:mainfrom
joshrwolf:prevent-duplicate
Feb 17, 2026
Merged

fix(otel-export): remove redundant forceFlush before shutdown#753
joshrwolf merged 1 commit intochainguard-dev:mainfrom
joshrwolf:prevent-duplicate

Conversation

@joshrwolf
Copy link
Contributor

@joshrwolf joshrwolf commented Feb 17, 2026

this prevents firing two exports of the same data. it turns out MeterProvider.shutdown() internally calls onForceFlush(), so we don't need an explicit forceFlush().

also it looks like the JS libraries only include a PeriodicExportingMetricReader, so to prevent firing twice (one for the shutdown, one for the period), we just set a really long period.

@joshrwolf joshrwolf added this pull request to the merge queue Feb 17, 2026
Merged via the queue into chainguard-dev:main with commit a601adc Feb 17, 2026
6 checks passed
@joshrwolf joshrwolf deleted the prevent-duplicate branch February 17, 2026 15:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants