Providers' `shutdown()` not invoked on `api.shutdown()`

オープン 初心者向け
#124 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

@nicklasl がすでに取り組んでいます。

2026年1月26日 から。

  • #126 @nicklasl による — オープン

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
65/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
停滞
技術スタック
rust

調査の方向性

README のシャットダウン動作を読み、clear() 呼び出し周辺の src/api/provider_registry.rs を調べてください。api.shutdown() から始めて、既存の provider registry テストまたは cargo test を確認してください。完了条件は、登録されている各 provider の shutdown() が削除前に実行され、provider のテレメトリが失われなくなることです。

索引モデルが issue の本文から書いたものです。

説明

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.

主要言語
Rust
スター
53
フォーク
15
平均マージ
1分
マージ済み PR(30日)
16

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

open-feature/rust-sdk のほかの issue

open-feature/rust-sdk の issue をすべて見る

似ている issue

Rust の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。