Create REST API endpoint to ingest AI usage telemetry
Summary
For AI Impact analytics - [BE] collecting `Acceptan... (#456088) • Unassigned • Next 1-3 releases and as part of #452173 we need an endpoint to consume telemetry events happening while user uses AI features. These events should be stored in clickhouse for further processing.
/api/v4/usage_data/track_event
Suggested params for POST - event: string, one of (
code_suggestion_accepted_in_ide
,code_suggestion_rejected_in_ide
,code_suggestion_shown_in_ide
) - additional_properties[language] string, language of the suggestion
- additional_properties[branch_name] string, current git branch name of the user
- additional_properties[unique_tracking_id] string, unique UUID of the suggestion.
- additional_properties[suggestion_size] number, number of LoC in the suggestion
- additional_properties[timestamp] timestamp of the event
Legal
we need to verify that storing branch_name
is OK.
Edited by Pavel Shutsin