Skip to content

feat(provider): align OpenFeature track() with Confidence event conventions - #252

Open
fabriziodemaria wants to merge 1 commit into
mainfrom
openfeature-track-context
Open

feat(provider): align OpenFeature track() with Confidence event conventions#252
fabriziodemaria wants to merge 1 commit into
mainfrom
openfeature-track-context

Conversation

@fabriziodemaria

Copy link
Copy Markdown
Member

Summary

  • Wire OpenFeature track() through merged session + per-event context (OpenFeature wins on conflicts), matching the Swift provider
  • Map TrackingEventDetails to Confidence event data (value field + structure attributes; explicit "value" override supported)
  • Add Confidence.track(eventName, data, eventContext) for per-event context without mutating session state
  • Allow explicit "context" in event data to override injected evaluation context (no throw)

Test plan

  • ./gradlew :Provider:testDebugUnitTest :Confidence:testDebugUnitTest
  • Verify OpenFeature track() persists events with merged context via ProviderIntegrationTest
  • Confirm explicit "context" / "value" overrides in tracking details behave as expected

Made with Cursor

Merge per-event OpenFeature context with session context, map tracking details to event data, and allow explicit context overrides in the payload — matching Swift provider behavior.
@fabriziodemaria fabriziodemaria changed the title Align OpenFeature track() with Confidence event conventions feat(provider): align OpenFeature track() with Confidence event conventions Aug 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant