Repository navigation
Add Opt in OSPlugin to AISKU - #2807
Merged
Radhika Gupta (rads-1996) merged 6 commits intoNov 24, 2026
Merged
Radhika Gupta (rads-1996) merged 6 commits into
Radhika Gupta (rads-1996) merged 6 commits into
Conversation
Contributor
There was a problem hiding this comment.
🟡 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
Jackson Weber (JacksonWeber)
approved these changes
Nov 24, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


Addresses - Task 27520120