[go: up one dir, main page]

Skip to content

Backend: Expose IDE metadata for code suggestions events, with filtering

Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.

Summary

Add IDE-specific breakdowns to code suggestions metrics.

  • Expose the IDE data in aiMetrics.codeSuggestions
  • Add the ability to filter by IDE name.

We can use the same pattern as we have for language data i.e. we need to be able to query for the list of IDE names and then query to filter by IDE name.

Current State

Code suggestions metrics provide language breakdowns but no IDE breakdowns.

Proposed Metrics

Add metrics for code suggestions by IDE:

  • List of IDEs with suggestion activity
  • Accepted count per IDE
  • Shown count per IDE

Related Tracking Events

These metrics should be derived from:

  • code_suggestion_shown_in_ide (event ID: 2) with ide_name context
  • code_suggestion_accepted_in_ide (event ID: 3) with ide_name context

Implementation

To be refined by backend team

  • Graphql attribute for ide_name
  • Filtering by ide_name

Dashboard Visualizations Enabled

This will support:

Related

Part of https://gitlab.com/groups/gitlab-org/-/epics/15830

Edited by 🤖 GitLab Bot 🤖