Open
Conversation
for more information, see https://pre-commit.ci
…gsmith/flagsmith-python-client into feat/support-evaluation-tracking-api
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Thanks for submitting a PR! Please check the boxes below:
docs/if required so people know about the feature.Changes
Related JS client PR
Contributes to Flagsmith/flagsmith-openfeature-provider-python#34
Adds pipeline analytics support to the Python client, enabling buffered event tracking that posts to POST
{url}v1/analytics/batch. This lays the groundwork for the OpenFeature provider to delegate its track() method to the client.PipelineAnalyticsConfigdataclass for configuration: analytics server URL, buffer size, and flush intervalPipelineAnalyticsProcessorevent processor with:record_evaluation_event(), automatic onget_flag()call, deduplicated within each flush windowrecord_custom_event(), explicit, never deduplicatedFlagsmith.track_event()— public API for recording custom eventsFlags.get_flag(), automatically records evaluation events when a pipeline processor is configuredresolve_trait_values()— extracted shared helper for unwrappingTraitConfigHow did you test this code?