open-feature / spec

OpenFeature specification
https://openfeature.dev
Apache License 2.0
667 stars 35 forks source link

Event Tracking API Specification #78

Closed beeme1mr closed 2 years ago

beeme1mr commented 2 years ago

Summary

More advanced feature flagging use cases often require capturing events that can be related to a particular flag evaluation. That allows teams to more easily track that a new feature had the intended impact.

This concept does not exist in all vendors/providers. However, we could potentially introduce the concept of a tracking provider. The provider could either be a feature flag vendor that supports this concept or another event tracking tool (e.g. Segment).

A general event tracking API is out of scope.

References

weyert commented 2 years ago

This is something that would be useful for PostHog were you occasionally want to identify groups by sending a $groupIdentify-event useful when you want to enable a feature flag for a specific company or tenant but before you can use such a filter for the feature flag you first need to identify some entries for the group hence this event.

See also: https://posthog.com/docs/user-guides/group-analytics

beeme1mr commented 2 years ago

Closing in favor of the research issue.