Skip to content

Conversation

@jonathannorris
Copy link
Member

This PR

This PR updates the Multi-Provider documentation in the OpenFeature specification to document the new track method support that was added in PR #1323.

📚 New Documentation Sections

  • Track Method Support: Added a section explaining how the Multi-Provider implements tracking functionality
  • Introduction Section: Updated use case examples to highlight tracking capabilities
  • BaseEvaluationStrategy: Added shouldTrackWithThisProvider method to the abstract class

Code Examples Added

// Basic tracking usage
const multiProvider = new MultiProvider([
  { provider: new ProviderA() },
  { provider: new ProviderB() }
])

await OpenFeature.setProviderAndWait(multiProvider)
const client = OpenFeature.getClient()

// Track events across all ready providers
client.track('purchase', { targetingKey: 'user123' }, { value: 99.99, currency: 'USD' })

@jonathannorris jonathannorris requested a review from a team as a code owner June 27, 2025 15:07
@jonathannorris jonathannorris merged commit 1e98b79 into open-feature:main Jul 11, 2025
7 checks passed
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.

6 participants