diff --git a/ee/lib/gitlab/llm/anthropic/completions/categorize_question.rb b/ee/lib/gitlab/llm/anthropic/completions/categorize_question.rb index 7ab72223a01ae0531a63ce64b0c837adf7170aab..f3571cffe631bbdbafb2e907fe2c8f295282f3af 100644 --- a/ee/lib/gitlab/llm/anthropic/completions/categorize_question.rb +++ b/ee/lib/gitlab/llm/anthropic/completions/categorize_question.rb @@ -86,7 +86,7 @@ def track(user, attributes) self.class.to_s, "ai_question_category", context: [context], - property: tracking_context[:request_id], + requestId: tracking_context[:request_id], user: user ) end diff --git a/ee/spec/lib/gitlab/llm/anthropic/completions/categorize_question_spec.rb b/ee/spec/lib/gitlab/llm/anthropic/completions/categorize_question_spec.rb index 5f2602f5245c1c52aa3c3827c6771154aa4a5c95..b80c5adf2e3184be232c66b007dac37ca7c72d9a 100644 --- a/ee/spec/lib/gitlab/llm/anthropic/completions/categorize_question_spec.rb +++ b/ee/spec/lib/gitlab/llm/anthropic/completions/categorize_question_spec.rb @@ -52,7 +52,7 @@ expect_snowplow_event( category: described_class.to_s, action: 'ai_question_category', - property: 'uuid', + requestId: 'uuid', user: user, context: [{ schema: described_class::SCHEMA_URL, @@ -83,7 +83,7 @@ expect_no_snowplow_event( category: described_class.to_s, action: 'ai_question_category', - property: 'uuid', + requestId: 'uuid', user: user, context: anything ) @@ -99,7 +99,7 @@ expect_no_snowplow_event( category: described_class.to_s, action: 'ai_question_category', - property: 'uuid', + requestId: 'uuid', user: user, context: anything )