Repository navigation
feat: enable override of TraceProvider in JSON evaluations - #2070
Conversation
✅ Deploy Preview for polite-licorice-3db33c canceled.
|
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. Important Review skippedReview was skipped as selected files did not have any reviewable changes. ⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Advanced Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
Included review availability: Your plan provides up to 4 included reviews per hour; 3 remain after this review. 📝 WalkthroughWalkthroughThe JSON evaluator option is renamed to ChangesJSON evaluator tracing
Estimated code review effort: 2 (Simple) | ~10 minutes Suggested reviewers: Merge Risk: ⚪ Minimal · up to The tracer override appears ready to merge after normal checks. 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
Comment |
TraceProvider in JSON evaluationsTraceProvider in JSON evaluations
6e90976 to
afd7019
Compare
toddbaert
left a comment
There was a problem hiding this comment.
Looks really good - I just have one small request:
Could we call it WithTracerProvider? OTel's type is TracerProvider and that's the convention in otelgrpc etc. This is new public API in core, so renaming later would be breaking. I know it's a nit but I can't un-see it.
Signed-off-by: Nelz Carpentier <[email protected]>
Signed-off-by: Nelz Carpentier <[email protected]>
d1d1f33 to
f7126c2
Compare
|
🤖 I have created a release *beep* *boop* --- <details><summary>flagd: 0.17.0</summary> ## [0.17.0](flagd/v0.16.3...flagd/v0.17.0) (2026-09-25) ### ⚠ BREAKING CHANGES * **sync:** server-side sync metrics renamed (client metrics added alongside): feature_flag.flagd.sync.active_streams -> feature_flag.flagd.sync.server.active_streams feature_flag.flagd.sync.stream.duration -> feature_flag.flagd.sync.server.stream.duration ### 🐛 Bug Fixes * **security:** update module go.opentelemetry.io/otel/sdk to v1.45.0 [security] ([#2056](#2056)) ([904232a](904232a)) * wait for flag state before reporting ready ([#2050](#2050)) ([1c517f5](1c517f5)) ### ✨ New Features * gzip compression for OFREP evaluation responses ([#2071](#2071)) ([d0cc7fc](d0cc7fc)) * **sync:** instrument the outbound sync channel (flagd as client) ([#2051](#2051)) ([ad63aad](ad63aad)) ### 🧹 Chore * **deps:** update gcr.io/distroless/static:nonroot docker digest to e2e927e ([#2068](#2068)) ([8554906](8554906)) </details> <details><summary>flagd-proxy: 0.9.10</summary> ## [0.9.10](flagd-proxy/v0.9.9...flagd-proxy/v0.9.10) (2026-09-25) ### 🧹 Chore * **deps:** update gcr.io/distroless/static:nonroot docker digest to e2e927e ([#2068](#2068)) ([8554906](8554906)) </details> <details><summary>core: 0.18.0</summary> ## [0.18.0](core/v0.17.0...core/v0.18.0) (2026-09-25) ### ⚠ BREAKING CHANGES * **sync:** server-side sync metrics renamed (client metrics added alongside): feature_flag.flagd.sync.active_streams -> feature_flag.flagd.sync.server.active_streams feature_flag.flagd.sync.stream.duration -> feature_flag.flagd.sync.server.stream.duration ### 🐛 Bug Fixes * **security:** update module go.opentelemetry.io/otel/sdk to v1.45.0 [security] ([#2056](#2056)) ([904232a](904232a)) ### ✨ New Features * enable override of `TraceProvider` in JSON evaluations ([#2070](#2070)) ([d090fa7](d090fa7)) * **sync:** instrument the outbound sync channel (flagd as client) ([#2051](#2051)) ([ad63aad](ad63aad)) </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
Enable using something other than the global default TraceProvider when setting up a JSON evaluator.
Notes
My eventual goal is to have this added via the
InProcessService:https://github.com/open-feature/go-sdk-contrib/blob/dfc4d8366adf483b82bbb021cfb517030259be59/providers/flagd/pkg/service/in_process/service.go#L140
Follow-up Tasks
nb - the traces started in the
Resolver, e.g.resolve<Type>, are pretty chatty but sparse of information, and since the returnedcontext.Contextis ignored, the trace acts like an orphan in the waterfall of spans. Maybe this should be re-evaluated?How to test
If you configure with a
noop.NewTraceProvider(), you should no longer seeresolve<Type>in emitted spans.