Repository navigation
fix: record OFREP evaluation metrics - #2016
Conversation
Signed-off-by: Langning Zhang <[email protected]>
✅ Deploy Preview for polite-licorice-3db33c canceled.
|
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (2)
📝 WalkthroughWalkthroughThe OFREP handler now stores an optional metrics recorder and records results for single and bulk evaluations. Tests validate recorded errors, reasons, variants, and flag keys. ChangesOFREP metrics recording
Estimated code review effort: 2 (Simple) | ~10 minutes Suggested reviewers: 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
🤖 I have created a release *beep* *boop* --- <details><summary>flagd: 0.16.2</summary> ## [0.16.2](flagd/v0.16.1...flagd/v0.16.2) (2026-08-14) ### 🐛 Bug Fixes * **eventing:** prevent send on closed channel in EmitToAll ([#1993](#1993)) ([8d7d41f](8d7d41f)) * possible race on eventstream connection ([#2025](#2025)) ([e38ecb7](e38ecb7)) * record OFREP evaluation metrics ([#2016](#2016)) ([8dd34dc](8dd34dc)) </details> <details><summary>flagd-proxy: 0.9.8</summary> ## [0.9.8](flagd-proxy/v0.9.7...flagd-proxy/v0.9.8) (2026-08-14) ### 🐛 Bug Fixes * **flagd-proxy:** set gRPC keepalive enforcement policy on the sync server ([#2022](#2022)) ([5591fa8](5591fa8)) ### 🧹 Chore * resolve open dependabot security alerts ([#2008](#2008)) ([bbb05d4](bbb05d4)) </details> <details><summary>core: 0.16.2</summary> ## [0.16.2](core/v0.16.1...core/v0.16.2) (2026-08-14) ### 🐛 Bug Fixes * **core:** register the OFO scheme at package init, not inside Sync.Init ([#2024](#2024)) ([cf2db36](cf2db36)) * **flagd-proxy:** set gRPC keepalive enforcement policy on the sync server ([#2022](#2022)) ([5591fa8](5591fa8)) * possible race on eventstream connection ([#2025](#2025)) ([e38ecb7](e38ecb7)) </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]> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>



This PR
Related Issues
Fixes #2015
Notes
The full flagd lint command reports four existing staticcheck findings in
flag_evaluator_v1.goandofrep_service.go; the same findings reproduce onorigin/main. The changed code introduces no new lint findings.How to test
go test -race -count=1 ./flagd/pkg/service/flag-evaluation/ofrepmake testmake build-flagdgo run github.com/golangci/golangci-lint/v2/cmd/[email protected] run --new-from-rev=origin/main ./flagd/...