Skip to content
Snippets Groups Projects

Send value as a float to ai_response_time event

Merged Niko Belokolodov requested to merge fix-non-float-value into master

MR fixes https://new-sentry.gitlab.net/organizations/gitlab/issues/1395828/?alert_rule_id=38&alert_type=issue&environment=gprd&notification_uuid=8b77c6c6-a19b-4dfb-9571-2fc192615a3c&project=3&referrer=slack

This change fixes a potential issue with tracking AI response time. Instead of directly using the duration value, the code now ensures it's converted to a floating-point number using parseFloat(), with a fallback to 0 if the conversion fails. This prevents potential errors that could occur if duration was in an unexpected format or couldn't be properly interpreted as a number.

Edited by Niko Belokolodov

Merge request reports

Merge train pipeline #1710046497 passed

Merge train pipeline passed for e5d631b8

Merged by Ankit Panchal (OOO  From 2025-04-10 / Returning 2025-04-16)Ankit Panchal (OOO From 2025-04-10 / Returning 2025-04-16) 1 month ago (Mar 11, 2025 4:31am UTC)

Loading

Pipeline #1710049124 passed

Pipeline passed for d1da2d31 on master

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
Please register or sign in to reply
Loading