Skip to content

Add Opt in OSPlugin to AISKU - #2807

Merged
Radhika Gupta (rads-1996) merged 6 commits into
microsoft:mainfrom
rads-1996:add-opt-in-osplugin-to-aisku
Nov 24, 2026
Merged

Radhika Gupta (rads-1996) merged 6 commits into
microsoft:mainfrom
rads-1996:add-opt-in-osplugin-to-aisku

Conversation

@rads-1996

Copy link
Copy Markdown
Member

Addresses - Task 27520120

@rads-1996
Radhika Gupta (rads-1996) requested a review from a team as a code owner November 20, 2026 19:26
Copilot AI balanced review requested due to automatic review settings November 20, 2026 19:26

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.

🟡 Changes recommended

Active issues allow OS enrichment to mutate shared customer context and persist after collection is disabled, while exit-listener rebinding can flush before queued telemetry reaches Sender, risking data loss.

2 open issues
What changed in this PR

Bundles optional OS detection into the full Application Insights web SDK, removing the need for separate installation or manual registration. Collection remains off by default, and the lightweight SDK is unchanged.

Changes:

  • Adds opt-in registration and runtime collection controls while preserving customer-supplied plugin instances.
  • Updates lookup cancellation, queued-event handling, and default OS version formatting for Sender.
  • Adds configuration exports, integration tests, and setup documentation.
File Description
RELEASES.md Announces bundled OS detection and the Sender format correction.
README.md Links to the optional OS detection setup.
extensions/​applicationinsights-osplugin-js/​Tests/​Unit/​src/​OsPluginTest.ts Tests collection controls and Sender-specific output.
extensions/​applicationinsights-osplugin-js/​src/​OsPlugin.ts Adds enablement, request invalidation, and queue lifecycle handling.
extensions/​applicationinsights-osplugin-js/​src/​DataModels.ts Defines the optional enabled setting.
extensions/​applicationinsights-osplugin-js/​README.md Documents bundled usage, runtime controls, and output behavior.
AISKU/​Tests/​Unit/​src/​applicationinsights.e2e.tests.ts Adds full-SDK OS detection and lifecycle coverage.
AISKU/​src/​Init.ts Exports the OS plugin configuration type.
AISKU/​src/​applicationinsights-web.ts Exports the configuration type through the npm entrypoint.
AISKU/​src/​AISku.ts Integrates automatic registration and housekeeping coordination.
AISKU/​README.md Adds npm and CDN opt-in examples.
AISKU/​package.json Adds the OS plugin dependency.

Review effort: Balanced

Comment thread AISKU/src/AISku.ts Resolved
Comment thread AISKU/src/AISku.ts Resolved
@rads-1996 Radhika Gupta (rads-1996) changed the title Add opt in osplugin to aisku Add Opt in OSPlugin to AISKU Nov 24, 2026
@rads-1996
Radhika Gupta (rads-1996) merged commit 0e2fee6 into microsoft:main Nov 24, 2026
10 checks passed
@rads-1996
Radhika Gupta (rads-1996) deleted the add-opt-in-osplugin-to-aisku branch November 24, 2026 18:28
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.

3 participants