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
Commit 07e68f0
Browse filesBrowse the repository at this point in the historyBrowse files
docs(sdk): Align Feature Flags spec with updated Writing SDK Specs
List every requirement whose level or meaning changed in the 2.0.0
changelog entry, drop Implementation Guidance that describes an obvious
pattern, and remove the vague set_tag comparison.
Copy file name to clipboardExpand all lines: develop-docs/sdk/foundations/client/integrations/feature-flags.mdx
+12-8Lines changed: 12 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,7 +11,17 @@ spec_depends_on:
11
11
spec_changelog:
12
12
- version: 2.0.0
13
13
date: 2026-10-19
14
-
summary: 'Migrated to Writing SDK Specs. Requirements now describe only externally observable behavior, exposing `add_feature_flag` is "SHOULD" instead of "MUST", and API names can follow platform conventions.'
14
+
summary: >-
15
+
Migrated to Writing SDK Specs. Requirements now describe only externally observable behavior, and API names can follow platform conventions.
16
+
Changed requirements: Feature Flag Context schema is "MUST" (was "should");
17
+
span attributes "MUST" use the flag.evaluation.<flag name> key (was "follow the existing span attribute schema");
18
+
attaching evaluations to error events and spans, the 100-flag and 10-flag limits, and fork behavior are "SHOULD" (were plain statements or "should");
19
+
exposing add_feature_flag is "SHOULD" (was "MUST");
20
+
accepting a string name and boolean result is "SHOULD" (was "MUST");
21
+
non-boolean results "MUST NOT" be recorded (was "MUST be rejected");
22
+
clear_feature_flags removes evaluations from events captured with the scope (was "stored on the current scope");
23
+
flag provider integrations "SHOULD" record every evaluation made through the provider (was "should hook into a third-party SDK").
24
+
Removed: evaluations being stored on the scope, and the comparison to set_tag.
15
25
- version: 1.0.2
16
26
date: 2026-07-07
17
27
summary: Added `clear_feature_flags` scope API
@@ -57,7 +67,7 @@ When a scope is forked, events captured with the new scope **SHOULD** include th
57
67
58
68
### The `add_feature_flag` API
59
69
60
-
SDKs **SHOULD** expose a public `add_feature_flag` function, or a platform-idiomatic equivalent such as `addFeatureFlag`, that records an evaluation on the current scope, the same way `set_tag` records a tag.
70
+
SDKs **SHOULD** expose a public `add_feature_flag` function, or a platform-idiomatic equivalent such as `addFeatureFlag`, that records an evaluation on the current scope.
61
71
62
72
The function **SHOULD** accept a string flag name and a boolean result. It **MUST NOT** record an evaluation whose result is not a boolean.
63
73
@@ -79,12 +89,6 @@ A flag provider integration **SHOULD** record every evaluation made through the
79
89
80
90
</SpecSection>
81
91
82
-
## Implementation Guidance
83
-
84
-
_This section is non-normative._
85
-
86
-
Most flag providers offer evaluation hooks or listeners, such as OpenFeature hooks. Integrations typically register one and call `add_feature_flag` from it, so scope and span tracking live in one place.
0 commit comments