FEATURE_FLAG_DECISION_ITEM
Αυτό το περιεχόμενο δεν είναι ακόμη διαθέσιμο στη γλώσσα σου.
constFEATURE_FLAG_DECISION_ITEM: typeofFEATURE_FLAG_DECISION_ITEM
Defined in: packages/pipeline-feature-flags/src/feature-flag.behavior.ts:86
Unique symbol key set on context.items with the full
FeatureFlagDecision: raw boolean value, final enabled decision,
provider variant/reason/error metadata, and targeting key when available.
This lets audit/logging/telemetry behaviors inspect the exact decision without evaluating the flag a second time.
Example
Section titled “Example”const decision = context.items.get(FEATURE_FLAG_DECISION_ITEM) as | FeatureFlagDecision | undefined;
if (decision?.variant === 'treatment-a') { // enrich telemetry/audit metadata}