Repository navigation
feat: add flag set ID to evaluation metrics - #2078
Conversation
✅ Deploy Preview for polite-licorice-3db33c ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
erka
left a comment
There was a problem hiding this comment.
This looks fine to me. I have one question about the design. Can the context carry the flagSetID instead of adding a new parameter to all methods? This is just a thought.
|
@erka Yes, context could carry it. For bulk evaluation we would need to derive a child context for each result, because an unfiltered response can contain flags from different sets; single-evaluation and selector-error paths could similarly attach the ID immediately before recording. I chose an explicit parameter because |
Co-authored-by: Copilot App <[email protected]> Signed-off-by: Sajal Garg <[email protected]>
Pass evaluation metadata through the recorder boundary and omit caller-derived flag set IDs for FLAG_NOT_FOUND results. Co-authored-by: Copilot App <[email protected]> Signed-off-by: Sajal Garg <[email protected]>
6399e6b to
8ee77c3
Compare
|
🤖 I have created a release *beep* *boop* --- <details><summary>flagd: 0.18.1</summary> ## [0.18.1](flagd/v0.18.0...flagd/v0.18.1) (2026-10-26) ### 🐛 Bug Fixes * bound evaluation HTTP metric labels ([#2092](#2092)) ([f2e7713](f2e7713)) * record OFREP and sync HTTP metrics once ([#2103](#2103)) ([0a39a29](0a39a29)) ### ✨ New Features * add flag set ID to evaluation metrics ([#2078](#2078)) ([10f2ca0](10f2ca0)) * strict numeric range opt, TYPE_MISMATCH on precision loss ([#2100](#2100)) ([5cf6fff](5cf6fff)) ### 🧹 Chore * **deps:** update module golang.org/x/net to v0.61.0 ([#2097](#2097)) ([21db5c3](21db5c3)) * Update CHANGELOG with more details ([3f01794](3f01794)) </details> <details><summary>flagd-proxy: 0.9.13</summary> ## [0.9.13](flagd-proxy/v0.9.12...flagd-proxy/v0.9.13) (2026-10-26) ### 🧹 Chore * **deps:** update module golang.org/x/net to v0.61.0 ([#2097](#2097)) ([21db5c3](21db5c3)) </details> <details><summary>core: 0.19.1</summary> ## [0.19.1](core/v0.19.0...core/v0.19.1) (2026-10-26) ### 🐛 Bug Fixes * bound evaluation HTTP metric labels ([#2092](#2092)) ([f2e7713](f2e7713)) * record OFREP and sync HTTP metrics once ([#2103](#2103)) ([0a39a29](0a39a29)) ### ✨ New Features * add flag set ID to evaluation metrics ([#2078](#2078)) ([10f2ca0](10f2ca0)) * strict numeric range opt, TYPE_MISMATCH on precision loss ([#2100](#2100)) ([5cf6fff](5cf6fff)) </details> --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). Signed-off-by: OpenFeature Bot <[email protected]>



Summary
feature_flag.set.idattribute to evaluation impression and reason/error metrics when a non-empty string ID is knownCloses #2020
Validation
flagdbinary with two flag setsgo test -p=1 -parallel=1 ./core/... ./flagd/...go vet ./core/pkg/telemetry ./flagd/pkg/service/flag-evaluation/...git diff --check