SDKs: a hook called on each exposure, to send assignments to your own analytics

オープン
#1,499 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

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

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
35/100
issue の種類
機能追加
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
csharp, go, java, javascript, python, react, react-native

調査の方向性

The issue spans the JavaScript, Python, Go, React, React Native, Java and .NET SDKs, so there is no single file to jump into; each client constructor needs an optional callback plus the plumbing that records exposures server-side. Start by finding where each SDK evaluates a flag and caches the answer, so the hook fires once per exposure rather than per evaluation, and check the React server-render/hydration path for duplicate calls. Done means the callback receives experiment key, variant and user id once per exposure, errors from it are swallowed, the holdout/targeting case is decided and documented, and each SDK's docs show one example per analytics tool. A newcomer could instead pick one SDK and add the docs example for a single analytics tool as a scoped first step.

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

説明

enhancement

The SDKs record exposures on the server, but nothing lets an application see them. A team that analyses experiments
in its own analytics tool or warehouse (Segment, GA4, Amplitude, Mixpanel, RudderStack) has no way to send each
assignment there.

Expected:

  • An optional callback, set when the client is created, called once per exposure with the experiment key, the
    variant and the user id. Whether it is called when the user was not assigned (a holdout, a mutual exclusion group or
    targeting, where the server records no exposure) is decided and documented.
  • Once per exposure, not once per evaluation: repeated and cached answers, and React's server render followed by
    hydration, do not call it twice.
  • An exception thrown in the callback never reaches the caller or changes the answer.
  • In the JavaScript, Python, Go, React, React Native, Java and .NET SDKs, with one example per common analytics tool
    in the docs. (The OpenFeature providers use OpenFeature's own hooks.)
主要言語
Python
スター
0
フォーク
4
平均マージ
6時間 5分
マージ済み PR(30日)
453

環境構築

はじめの一歩

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

Controlvar/controlvar のほかの issue

Controlvar/controlvar の issue をすべて見る

似ている issue

Python の issue をもっと見る

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

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