Skip to content

Fix internal SDK Stats network metric names - #2775

Merged
Jackson Weber (JacksonWeber) merged 2 commits into
microsoft:mainfrom
JacksonWeber:jacksonweber-publish-internal-stats-fix
Oct 5, 2026
Merged

Jackson Weber (JacksonWeber) merged 2 commits into
microsoft:mainfrom
JacksonWeber:jacksonweber-publish-internal-stats-fix

Conversation

@JacksonWeber

Copy link
Copy Markdown
Contributor

Align failure, retry, and exception metrics with Statsbeat names and verify their existing dimensions and aggregation.

Align failure, retry, and exception metrics with Statsbeat names and verify their existing dimensions and aggregation.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@JacksonWeber
Jackson Weber (JacksonWeber) requested a review from a team as a code owner October 3, 2026 02:09
Copilot AI balanced review requested due to automatic review settings October 3, 2026 02:09

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot review overview

🟡 Changes recommended

The failure metric uses Requests_Failure_Count instead of the Statsbeat-defined Request_Failure_Count.

Review effort: Balanced
Findings: 2 Medium severity

Open (2)
What changed in this PR

Aligns internal SDK Stats network telemetry with Statsbeat naming and strengthens aggregation/dimension assertions.

Changes:

  • Renames failure, retry, and exception metrics.
  • Adds exact metric aggregation and dimension checks.
  • Updates buffered exception integration expectations.
File Description
shared/​AppInsightsCore/​src/​core/​InternalSdkStats.ts Updates emitted network metric names.
shared/​AppInsightsCore/​Tests/​Unit/​src/​ai/​InternalSdkStats.Tests.ts Expands metric and dimension coverage.
AISKU/​Tests/​Unit/​src/​SdkStatsFeature.tests.ts Updates the buffered exception expectation.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread shared/AppInsightsCore/Tests/Unit/src/ai/InternalSdkStats.Tests.ts Outdated
Comment thread shared/AppInsightsCore/src/core/InternalSdkStats.ts Outdated
Use Request_Failure_Count to match the Azure Monitor JS and Java exporters, and update the core test expectation.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@JacksonWeber
Jackson Weber (JacksonWeber) merged commit 22f2a78 into microsoft:main Oct 5, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants