Skip to content

Commit 07e68f0

Browse 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.
1 parent e6af3f3 commit 07e68f0

1 file changed

Lines changed: 12 additions & 8 deletions

File tree

‎develop-docs/sdk/foundations/client/integrations/feature-flags.mdx‎

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,17 @@ spec_depends_on:
1111
spec_changelog:
1212
- version: 2.0.0
1313
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.
1525
- version: 1.0.2
1626
date: 2026-07-07
1727
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
5767

5868
### The `add_feature_flag` API
5969

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.
6171

6272
The function **SHOULD** accept a string flag name and a boolean result. It **MUST NOT** record an evaluation whose result is not a boolean.
6373

@@ -79,12 +89,6 @@ A flag provider integration **SHOULD** record every evaluation made through the
7989

8090
</SpecSection>
8191

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.
87-
8892
## Changelog
8993

9094
<SpecChangelog />

0 commit comments

Comments
 (0)