Skip to content

CLI generator: Add code examples for AI tracking instrumentation

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

Overview

This issue implements the next iteration of AI usage tracking support in the CLI generator, as outlined in #568763 (closed).

Tasks

Related Issues

  • Relates to #568763 (closed) (CLI generator should support instrumentation for AI usage tracking events and metrics)

Acceptance Criteria

  • CLI generator provides code examples for Gitlab::Tracking::AiTracking registration (with and without metadata)
  • CLI generator provides code examples for triggering events with InternalEvents.track_event
  • CLI generator provides rspec test examples for AI tracking
  • All examples follow GitLab's AI tracking best practices documentation
Edited by 🤖 GitLab Bot 🤖