Skip to content

Conversation

@MSNev
Copy link
Collaborator

@MSNev MSNev commented Dec 4, 2025

No description provided.

rggammon and others added 2 commits December 3, 2025 16:25
…ed (#2642)

* Separate BeaconSendFailure and BeaconSendFailure from SizeLimitExceeded to make it easier to troubleshoot SizeLimitExceeded errors

* PR feedback
Copilot AI review requested due to automatic review settings December 4, 2025 00:31
@MSNev MSNev requested a review from a team as a code owner December 4, 2025 00:31
Copy link
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

This PR introduces a new BeaconSendFailure reason to distinguish beacon API failures from payload size limit violations, and adds an optional sendType parameter to events discarded notifications to provide better context about how events were being sent when discarded.

  • Adds BeaconSendFailure as a new events discarded reason (value 6) to differentiate beacon API failures from size limit exceeded errors
  • Adds optional sendType parameter to the eventsDiscarded notification signature across all interfaces and implementations
  • Updates HttpManager to use BeaconSendFailure when beacon API fails after passing serializer size validation

Reviewed changes

Copilot reviewed 8 out of 8 changed files in this pull request and generated no comments.

Show a summary per file
File Description
shared/AppInsightsCore/src/JavaScriptSDK.Enums/EventsDiscardedReason.ts Adds new BeaconSendFailure enum value (6) to both const enum and exported constant
shared/AppInsightsCore/src/JavaScriptSDK.Interfaces/INotificationListener.ts Adds optional sendType parameter to eventsDiscarded method signature
shared/AppInsightsCore/src/JavaScriptSDK.Interfaces/INotificationManager.ts Adds optional sendType parameter to eventsDiscarded method signature
shared/AppInsightsCore/src/JavaScriptSDK/NotificationManager.ts Propagates optional sendType parameter through to registered listeners
channels/1ds-post-js/src/DataModels.ts Adds BeaconSendFailure = 8006 to EventBatchNotificationReason enum for proper range mapping
channels/1ds-post-js/src/HttpManager.ts Updates beacon retry logic to use BeaconSendFailure reason and adds it to event action map
channels/1ds-post-js/src/PostChannel.ts Updates internal notification functions to accept and pass sendType parameter
tools/chrome-debug-extension/src/pageHelper.ts Updates debug extension to accept and forward sendType in notifications

Copy link
Member

@rads-1996 rads-1996 left a comment

Choose a reason for hiding this comment

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

LGTM

@MSNev MSNev merged commit 72ce133 into beta Dec 4, 2025
15 checks passed
@MSNev MSNev deleted the MSNev/MergeMainToBeta branch December 4, 2025 00:51
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