Skip to content

Providers' shutdown() not invoked on api.shutdown() #124

@fabriziodemaria

Description

@fabriziodemaria

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions