Skip to content

Add the logic to the flagsmith-js-client to send evaluation data to the new service #6638

@matthewelwell

Description

@matthewelwell

This issue describes the logic to integrate with the API schema as defined in this issue. We will also need to make sure that we send the Flagsmith-User-Agent header to satisfy the requirement in this issue.

This logic should behave the same as the current flag analytics integration which batches evaluations and sends them to the /analytics/flags/ endpoint, but it should send the data to the new endpoint based on the schema defined in the previously referenced issue.

The current flag analytics logic, however, only cares about feature_name, and the count of evaluations, but there is a version of the code here that also enriches the analytics data with the identifier and whether the flag was enabled.

Notes:

  • When we release the JS client, I think this should be a separate tag for internal use only

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions