You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Providers' shutdown() not invoked on api.shutdown() #124
The expected behavior of the shutdown() API is to clear the providers from the registry, but also trigger each provider's shutdown() implementation before their removal. This is explained in the README, and it's the behavior in other OpenFeature SDKs. However, currently shutdown() calls clear() in the registry (link) but the providers' shutdown() is not called.
We have observed this when testing our own Rust provider. The consequence is that some of the providers' telemetry events were not flushed from memory at shutdown and were forever lost.
Activity
test: add failing tests for provider shutdown
fix: call shutdown on providers before removing them
EmiRZx commentedon Dec 1, 2026
edit: #123 already does this, see my review there.
proposal for spec 1.6.1:
async fn shutdown(&self) {}toFeatureProvider(no-op default, non-breaking)OpenFeature::shutdownawaits it once per registered provider, then clears the registryDropcan't cover this: it isn't async, and clients still hold theArc. OK to open a PR?