Skip to content

docs(multi-provider): Document Track Method Support in Multi-Provider #320

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

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
Key features of tracking support include:

- **Error Resilience**: Individual provider tracking failures do not break the overall tracking flow - errors are logged but do not throw exceptions
- **Status Awareness**: Only providers in `READY` status receive tracking calls by default
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we also want STALE providers to receive tracking calls?

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.

4 participants