Skip to content

ci: reorder telemetry message so error (if any) appears first#4396

Open
QxBytes wants to merge 1 commit intomasterfrom
alew/reorder-telemetry-fields
Open

ci: reorder telemetry message so error (if any) appears first#4396
QxBytes wants to merge 1 commit intomasterfrom
alew/reorder-telemetry-fields

Conversation

@QxBytes
Copy link
Copy Markdown
Contributor

@QxBytes QxBytes commented May 8, 2026

Reason for Change:

if the ep infos field is incredibly long it would get truncated when sending to app insights, cutting off the error message if any (seen in a few select cases where a single log line can be thousands of characters long)

Issue Fixed:

Requirements:

Notes:

if the ep infos field is incredibly long it would get truncated
when sending to app insights, cutting off the error message if any
@QxBytes QxBytes self-assigned this May 8, 2026
@QxBytes QxBytes added ci Infra or tooling. logging labels May 8, 2026
@QxBytes QxBytes marked this pull request as ready for review May 8, 2026 18:17
Copilot AI review requested due to automatic review settings May 8, 2026 18:17
@QxBytes QxBytes requested a review from a team as a code owner May 8, 2026 18:17
@QxBytes QxBytes requested a review from rbtr May 8, 2026 18:17
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Reorders CNI telemetry event message formatting so any error text appears first, reducing the chance it gets truncated by long endpoint info payloads in Application Insights.

Changes:

  • In ADD completion telemetry, moved [error] to the beginning of the formatted message before potentially large fields (ipamAddResult, epInfos).
  • In DEL completion telemetry, moved [error] to the beginning of the formatted message for consistency.

@QxBytes QxBytes enabled auto-merge May 8, 2026 19:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci Infra or tooling. logging

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants