From c2f6c7fb6f0504a44319594efaec8f3d7d2007b0 Mon Sep 17 00:00:00 2001 From: Jackson Weber Date: Mon, 5 Oct 2026 13:21:21 -0700 Subject: [PATCH 1/2] [Release] Increase version to 3.4.5 Enable internal SDK Stats with dedicated ingestion, dynamic configuration, and feature throttling. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> --- AISKU/README.md | 6 +-- AISKU/Tests/Perf/src/AISKUPerf.ts | 2 +- AISKU/Tests/Unit/src/AISKUSize.Tests.ts | 2 +- AISKU/Tests/Unit/src/CdnPackaging.tests.ts | 2 +- .../Tests/es6-module-type-check/package.json | 6 +-- AISKU/package.json | 16 +++--- .../Tests/Unit/src/AISKULightSize.Tests.ts | 2 +- AISKULight/package.json | 6 +-- RELEASES.md | 22 ++++++++ channels/1ds-post-js/package.json | 4 +- .../package.json | 4 +- channels/offline-channel-js/package.json | 4 +- channels/tee-channel-js/package.json | 4 +- common/config/rush/pnpm-lock.yaml | 48 ++++++++--------- examples/AISKU/package.json | 6 +-- examples/cfgSync/package.json | 8 +-- examples/dependency/package.json | 8 +-- examples/shared-worker/package.json | 6 +-- examples/startSpan/package.json | 6 +-- .../package.json | 10 ++-- .../package.json | 4 +- .../package.json | 6 +-- .../package.json | 4 +- .../package.json | 4 +- .../package.json | 4 +- .../package.json | 4 +- .../Tests/Unit/src/propertiesSize.tests.ts | 2 +- .../package.json | 4 +- gruntfile.js | 2 +- package.json | 2 +- shared/1ds-core-js/package.json | 4 +- shared/AppInsightsCommon/package.json | 4 +- shared/AppInsightsCore/package.json | 2 +- .../package.json | 6 +-- tools/chrome-debug-extension/package.json | 4 +- tools/config/package.json | 2 +- version.json | 54 +++++++++---------- 37 files changed, 151 insertions(+), 133 deletions(-) diff --git a/AISKU/README.md b/AISKU/README.md index 27a431357..f085273c7 100644 --- a/AISKU/README.md +++ b/AISKU/README.md @@ -34,6 +34,7 @@ See [Breaking Changes](https://microsoft.github.io/ApplicationInsights-JS/upgrad | Version | Full Size | Raw Minified | GZip Size |---------|-----------|--------------|------------- | [<nightly3>](https://github.com/microsoft/ApplicationInsights-JS/tree/main/AISKU) | [![full size size](https://js.monitor.azure.com/nightly/ai.3-nightly3.js.svg)](https://js.monitor.azure.com/nightly/ai.3-nightly3.js.svg)| ![minified size size](https://js.monitor.azure.com/nightly/ai.3-nightly3.min.js.svg) | ![gzip size](https://js.monitor.azure.com/nightly/ai.3-nightly3.min.js.gzip.svg) +| 3.4.5: | [![full size size](https://js.monitor.azure.com/scripts/b/ai.3.4.5.js.svg)](https://js.monitor.azure.com/scripts/b/ai.3.4.5.js.svg)| ![minified size size](https://js.monitor.azure.com/scripts/b/ai.3.4.5.min.js.svg) | ![gzip size](https://js.monitor.azure.com/scripts/b/ai.3.4.5.min.js.gzip.svg) | 3.4.4: | [![full size size](https://js.monitor.azure.com/scripts/b/ai.3.4.4.js.svg)](https://js.monitor.azure.com/scripts/b/ai.3.4.4.js.svg)| ![minified size size](https://js.monitor.azure.com/scripts/b/ai.3.4.4.min.js.svg) | ![gzip size](https://js.monitor.azure.com/scripts/b/ai.3.4.4.min.js.gzip.svg) | 3.4.3: | [![full size size](https://js.monitor.azure.com/scripts/b/ai.3.4.3.js.svg)](https://js.monitor.azure.com/scripts/b/ai.3.4.3.js.svg)| ![minified size size](https://js.monitor.azure.com/scripts/b/ai.3.4.3.min.js.svg) | ![gzip size](https://js.monitor.azure.com/scripts/b/ai.3.4.3.min.js.gzip.svg) | 3.4.2: | [![full size size](https://js.monitor.azure.com/scripts/b/ai.3.4.2.js.svg)](https://js.monitor.azure.com/scripts/b/ai.3.4.2.js.svg)| ![minified size size](https://js.monitor.azure.com/scripts/b/ai.3.4.2.min.js.svg) | ![gzip size](https://js.monitor.azure.com/scripts/b/ai.3.4.2.min.js.gzip.svg) @@ -58,11 +59,6 @@ See [Breaking Changes](https://microsoft.github.io/ApplicationInsights-JS/upgrad | 3.1.1: | [![full size size](https://js.monitor.azure.com/scripts/b/ai.3.1.1.js.svg)](https://js.monitor.azure.com/scripts/b/ai.3.1.1.js.svg)| ![minified size size](https://js.monitor.azure.com/scripts/b/ai.3.1.1.min.js.svg) | ![gzip size](https://js.monitor.azure.com/scripts/b/ai.3.1.1.min.js.gzip.svg) | 3.1.0: | [![full size size](https://js.monitor.azure.com/scripts/b/ai.3.1.0.js.svg)](https://js.monitor.azure.com/scripts/b/ai.3.1.0.js.svg)| ![minified size size](https://js.monitor.azure.com/scripts/b/ai.3.1.0.min.js.svg) | ![gzip size](https://js.monitor.azure.com/scripts/b/ai.3.1.0.min.js.gzip.svg) | 3.0.9: | [![full size size](https://js.monitor.azure.com/scripts/b/ai.3.0.9.js.svg)](https://js.monitor.azure.com/scripts/b/ai.3.0.9.js.svg)| ![minified size size](https://js.monitor.azure.com/scripts/b/ai.3.0.9.min.js.svg) | ![gzip size](https://js.monitor.azure.com/scripts/b/ai.3.0.8.min.js.gzip.svg) -| 3.0.8: | [![full size size](https://js.monitor.azure.com/scripts/b/ai.3.0.8.js.svg)](https://js.monitor.azure.com/scripts/b/ai.3.0.8.js.svg)| ![minified size size](https://js.monitor.azure.com/scripts/b/ai.3.0.8.min.js.svg) | ![gzip size](https://js.monitor.azure.com/scripts/b/ai.3.0.8.min.js.gzip.svg) -| 3.0.7: | [![full size size](https://js.monitor.azure.com/scripts/b/ai.3.0.7.js.svg)](https://js.monitor.azure.com/scripts/b/ai.3.0.7.js.svg)| ![minified size size](https://js.monitor.azure.com/scripts/b/ai.3.0.7.min.js.svg) | ![gzip size](https://js.monitor.azure.com/scripts/b/ai.3.0.7.min.js.gzip.svg) -| 3.0.6: | [![full size size](https://js.monitor.azure.com/scripts/b/ai.3.0.6.js.svg)](https://js.monitor.azure.com/scripts/b/ai.3.0.6.js.svg)| ![minified size size](https://js.monitor.azure.com/scripts/b/ai.3.0.6.min.js.svg) | ![gzip size](https://js.monitor.azure.com/scripts/b/ai.3.0.5.min.js.gzip.svg) -| 3.0.5: | [![full size size](https://js.monitor.azure.com/scripts/b/ai.3.0.5.js.svg)](https://js.monitor.azure.com/scripts/b/ai.3.0.5.js.svg)| ![minified size size](https://js.monitor.azure.com/scripts/b/ai.3.0.5.min.js.svg) | ![gzip size](https://js.monitor.azure.com/scripts/b/ai.3.0.5.min.js.gzip.svg) -| 3.0.4: | [![full size size](https://js.monitor.azure.com/scripts/b/ai.3.0.4.js.svg)](https://js.monitor.azure.com/scripts/b/ai.3.0.4.js.svg)| ![minified size size](https://js.monitor.azure.com/scripts/b/ai.3.0.4.min.js.svg) | ![gzip size](https://js.monitor.azure.com/scripts/b/ai.3.0.4.min.js.gzip.svg) | [](https://github.com/microsoft/ApplicationInsights-JS/tree/master/AISKU) | [![full size size](https://js.monitor.azure.com/nightly/ai.2-nightly.js.svg)](https://js.monitor.azure.com/nightly/ai.2-nightly.js.svg)| ![minified size size](https://js.monitor.azure.com/nightly/ai.2-nightly.min.js.svg) | ![gzip size](https://js.monitor.azure.com/nightly/ai.2-nightly.min.js.gzip.svg) | 2.8.18: | [![full size size](https://js.monitor.azure.com/scripts/b/ai.2.8.18.js.svg)](https://js.monitor.azure.com/scripts/b/ai.2.8.18.js.svg)| ![minified size size](https://js.monitor.azure.com/scripts/b/ai.2.8.18.min.js.svg) | ![gzip size](https://js.monitor.azure.com/scripts/b/ai.2.8.18.min.js.gzip.svg) | 2.8.17: | [![full size size](https://js.monitor.azure.com/scripts/b/ai.2.8.17.js.svg)](https://js.monitor.azure.com/scripts/b/ai.2.8.17.js.svg)| ![minified size size](https://js.monitor.azure.com/scripts/b/ai.2.8.17.min.js.svg) | ![gzip size](https://js.monitor.azure.com/scripts/b/ai.2.8.17.min.js.gzip.svg) diff --git a/AISKU/Tests/Perf/src/AISKUPerf.ts b/AISKU/Tests/Perf/src/AISKUPerf.ts index 7e5a88b41..09ddc1c96 100644 --- a/AISKU/Tests/Perf/src/AISKUPerf.ts +++ b/AISKU/Tests/Perf/src/AISKUPerf.ts @@ -19,7 +19,7 @@ export class AppInsightsInitPerfTestClass { * should update version after new release * version with doperf(): after 2.5.6 * */ - var defaultVer = "3.4.4"; + var defaultVer = "3.4.5"; this.version = ver? ver:this._getQueryParameterVersion(defaultVer); this.perfEventsBuffer = []; this.perfEventWaitBuffer = []; diff --git a/AISKU/Tests/Unit/src/AISKUSize.Tests.ts b/AISKU/Tests/Unit/src/AISKUSize.Tests.ts index 3d171e1e4..46a301f59 100644 --- a/AISKU/Tests/Unit/src/AISKUSize.Tests.ts +++ b/AISKU/Tests/Unit/src/AISKUSize.Tests.ts @@ -60,7 +60,7 @@ export class AISKUSizeCheck extends AITestClass { private readonly MAX_BUNDLE_DEFLATE_SIZE = 74; private readonly rawFilePath = "../dist/es5/applicationinsights-web.min.js"; // Automatically updated by version scripts - private readonly currentVer = "3.4.4"; + private readonly currentVer = "3.4.5"; private readonly prodFilePath = `../browser/es5/ai.${this.currentVer[0]}.min.js`; public testInitialize() { diff --git a/AISKU/Tests/Unit/src/CdnPackaging.tests.ts b/AISKU/Tests/Unit/src/CdnPackaging.tests.ts index 7c9b47c4f..0c3ea2476 100644 --- a/AISKU/Tests/Unit/src/CdnPackaging.tests.ts +++ b/AISKU/Tests/Unit/src/CdnPackaging.tests.ts @@ -16,7 +16,7 @@ const enum CdnFormat { export class CdnPackagingChecks extends AITestClass { // Automatically updated by version scripts - private readonly currentVer = "3.4.4"; + private readonly currentVer = "3.4.5"; public testInitialize() { } diff --git a/AISKU/Tests/es6-module-type-check/package.json b/AISKU/Tests/es6-module-type-check/package.json index 3cb4cec45..52a9fb03f 100644 --- a/AISKU/Tests/es6-module-type-check/package.json +++ b/AISKU/Tests/es6-module-type-check/package.json @@ -1,7 +1,7 @@ { "name": "@microsoft/applicationinsights-test-module-type-check", "author": "Microsoft Application Insights Team and Contributors", - "version": "3.4.4", + "version": "3.4.5", "description": "Microsoft Application Insights ES6 Module and Type check Example", "homepage": "https://github.com/microsoft/ApplicationInsights-JS#readme", "keywords": [ @@ -32,7 +32,7 @@ "tslib": ">= 1.0.0" }, "dependencies": { - "@microsoft/applicationinsights-core-js": "3.4.4", - "@microsoft/applicationinsights-web": "3.4.4" + "@microsoft/applicationinsights-core-js": "3.4.5", + "@microsoft/applicationinsights-web": "3.4.5" } } diff --git a/AISKU/package.json b/AISKU/package.json index c5fa7f213..64c0de003 100644 --- a/AISKU/package.json +++ b/AISKU/package.json @@ -1,6 +1,6 @@ { "name": "@microsoft/applicationinsights-web", - "version": "3.4.4", + "version": "3.4.5", "description": "Microsoft Application Insights JavaScript SDK - Web", "homepage": "https://github.com/microsoft/ApplicationInsights-JS#readme", "author": "Microsoft Application Insights Team", @@ -32,7 +32,7 @@ }, "devDependencies": { "@microsoft/ai-test-framework": "0.0.1", - "@microsoft/applicationinsights-offlinechannel-js": "0.4.4", + "@microsoft/applicationinsights-offlinechannel-js": "0.4.5", "@microsoft/applicationinsights-rollup-plugin-uglify3-js": "1.0.0", "@microsoft/applicationinsights-rollup-es5": "1.0.2", "sinon": "^7.3.1", @@ -71,12 +71,12 @@ "dependencies": { "@microsoft/dynamicproto-js": "^2.0.3", "@microsoft/applicationinsights-shims": "3.0.1", - "@microsoft/applicationinsights-analytics-js": "3.4.4", - "@microsoft/applicationinsights-channel-js": "3.4.4", - "@microsoft/applicationinsights-cfgsync-js": "3.4.4", - "@microsoft/applicationinsights-core-js": "3.4.4", - "@microsoft/applicationinsights-dependencies-js": "3.4.4", - "@microsoft/applicationinsights-properties-js": "3.4.4", + "@microsoft/applicationinsights-analytics-js": "3.4.5", + "@microsoft/applicationinsights-channel-js": "3.4.5", + "@microsoft/applicationinsights-cfgsync-js": "3.4.5", + "@microsoft/applicationinsights-core-js": "3.4.5", + "@microsoft/applicationinsights-dependencies-js": "3.4.5", + "@microsoft/applicationinsights-properties-js": "3.4.5", "@nevware21/ts-utils": ">= 0.14.0 < 2.x", "@nevware21/ts-async": ">= 0.5.5 < 0.6.0" }, diff --git a/AISKULight/Tests/Unit/src/AISKULightSize.Tests.ts b/AISKULight/Tests/Unit/src/AISKULightSize.Tests.ts index cada0dc47..b84144902 100644 --- a/AISKULight/Tests/Unit/src/AISKULightSize.Tests.ts +++ b/AISKULight/Tests/Unit/src/AISKULightSize.Tests.ts @@ -56,7 +56,7 @@ export class AISKULightSizeCheck extends AITestClass { private readonly MAX_RAW_DEFLATE_SIZE = 44; private readonly MAX_BUNDLE_DEFLATE_SIZE = 44; private readonly rawFilePath = "../dist/es5/applicationinsights-web-basic.min.js"; - private readonly currentVer = "3.4.4"; + private readonly currentVer = "3.4.5"; private readonly prodFilePath = `../browser/es5/aib.${this.currentVer[0]}.min.js`; public testInitialize() { diff --git a/AISKULight/package.json b/AISKULight/package.json index e8dd82c9c..72b33a597 100644 --- a/AISKULight/package.json +++ b/AISKULight/package.json @@ -1,6 +1,6 @@ { "name": "@microsoft/applicationinsights-web-basic", - "version": "3.4.4", + "version": "3.4.5", "description": "Microsoft Application Insights JavaScript SDK - Web Basic", "homepage": "https://github.com/microsoft/ApplicationInsights-JS#readme", "author": "Microsoft Application Insights Team", @@ -65,8 +65,8 @@ "dependencies": { "@microsoft/dynamicproto-js": "^2.0.3", "@microsoft/applicationinsights-shims": "3.0.1", - "@microsoft/applicationinsights-channel-js": "3.4.4", - "@microsoft/applicationinsights-core-js": "3.4.4", + "@microsoft/applicationinsights-channel-js": "3.4.5", + "@microsoft/applicationinsights-core-js": "3.4.5", "@nevware21/ts-utils": ">= 0.14.0 < 2.x", "@nevware21/ts-async": ">= 0.5.5 < 0.6.0" }, diff --git a/RELEASES.md b/RELEASES.md index 58b56668c..f71e56c85 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -4,6 +4,28 @@ +## 3.4.5 (October 5th, 2026) + +This release enables internal SDK network statistics and routes them to a dedicated SDK Stats ingestion endpoint. The `@microsoft/1ds-post-js` channel is numbered 4.4.5 and requires v3.4.5. + +### Significant Changes (since 3.4.4) + +- **Internal SDK Stats**: The full SDK now records request successes, failures, retries, throttling, and request duration. Counters are persisted in session storage by customer instrumentation key and endpoint, with a default collection interval of one hour (`stats.shrtInt`, in seconds). +- **Dedicated Ingestion and Dynamic Configuration**: Internal SDK Stats use a separate core and sender, rather than the customer's telemetry pipeline. Sending requires `stats.cfgUrl`, `stats.iKey`, and an enabled remote configuration that supplies the destination host. EU customer endpoints use the EU-prefixed configuration host. Configuration and sampling can be updated at runtime, and counters are retained while remote configuration is unavailable. +- **Feature Throttling**: Added `ThrottleMgr.useFeature()` and string-keyed `throttleMgrCfg` entries for feature operations. Internal SDK Stats have a dedicated daily throttle, separate from internal diagnostic messages. Throttle sampling now honors a zero rate, interval rules are evaluated per configuration, and long-lived instances can send again on the next eligible UTC day. + +### Potential behavioral changes + +The internal SDK Stats manager is enabled by default, but it does not send statistics until the required local or CDN-delivered configuration is available and the remote configuration enables sending. Disable this feature with `featureOptIn: { sdkStats: { mode: FeatureOptInMode.disable } }`. The lowercase `sdkStats` feature is separate from the existing customer-facing `SdkStats` feature and its `sdkStats.int` collection interval. + +Internal SDK Stats bypass customer telemetry initializers and plugins. Applications that use those hooks to inspect, modify, or filter customer telemetry should use the internal SDK Stats feature flag to opt out instead. + +### Changelog + +- [#2741](https://github.com/microsoft/ApplicationInsights-JS/pull/2741) Enable SDK Stats and route to the SDK Stats ingestion endpoint + +**Full Changelog**: https://github.com/microsoft/ApplicationInsights-JS/compare/3.4.4...3.4.5 + ## 3.4.4 (September 8th, 2026) This is a maintenance release for the 3.4.x version line containing runtime reliability and bundler compatibility fixes, build tooling and dependency security hardening, documentation corrections, and a test reliability fix. There are no SDK API changes. The `@microsoft/1ds-post-js` channel is numbered 4.4.4 and requires v3.4.4. diff --git a/channels/1ds-post-js/package.json b/channels/1ds-post-js/package.json index 67b90ddd1..640dd817f 100644 --- a/channels/1ds-post-js/package.json +++ b/channels/1ds-post-js/package.json @@ -1,6 +1,6 @@ { "name": "@microsoft/1ds-post-js", - "version": "4.4.4", + "version": "4.4.5", "description": "Microsoft Application Insights JavaScript SDK - 1ds-post-channel-js", "author": "Microsoft Application Insights Team", "homepage": "https://github.com/microsoft/ApplicationInsights-JS#readme", @@ -27,7 +27,7 @@ "dependencies": { "@microsoft/applicationinsights-shims": "3.0.1", "@microsoft/dynamicproto-js": "^2.0.3", - "@microsoft/applicationinsights-core-js": "3.4.4", + "@microsoft/applicationinsights-core-js": "3.4.5", "@nevware21/ts-utils": ">= 0.14.0 < 2.x", "@nevware21/ts-async": ">= 0.5.5 < 0.6.0" }, diff --git a/channels/applicationinsights-channel-js/package.json b/channels/applicationinsights-channel-js/package.json index 5c0536d27..0fb491052 100644 --- a/channels/applicationinsights-channel-js/package.json +++ b/channels/applicationinsights-channel-js/package.json @@ -1,6 +1,6 @@ { "name": "@microsoft/applicationinsights-channel-js", - "version": "3.4.4", + "version": "3.4.5", "description": "Microsoft Application Insights JavaScript SDK Channel", "homepage": "https://github.com/microsoft/ApplicationInsights-JS#readme", "author": "Microsoft Application Insights Team", @@ -64,7 +64,7 @@ "dependencies": { "@microsoft/dynamicproto-js": "^2.0.3", "@microsoft/applicationinsights-shims": "3.0.1", - "@microsoft/applicationinsights-core-js": "3.4.4", + "@microsoft/applicationinsights-core-js": "3.4.5", "@nevware21/ts-utils": ">= 0.14.0 < 2.x", "@nevware21/ts-async": ">= 0.5.5 < 0.6.0" }, diff --git a/channels/offline-channel-js/package.json b/channels/offline-channel-js/package.json index e5b16f0c1..db209d49c 100644 --- a/channels/offline-channel-js/package.json +++ b/channels/offline-channel-js/package.json @@ -1,6 +1,6 @@ { "name": "@microsoft/applicationinsights-offlinechannel-js", - "version": "0.4.4", + "version": "0.4.5", "description": "Microsoft Application Insights JavaScript SDK Offline Channel", "homepage": "https://github.com/microsoft/ApplicationInsights-JS#readme", "author": "Microsoft Application Insights Team", @@ -31,7 +31,7 @@ "dependencies": { "@microsoft/dynamicproto-js": "^2.0.3", "@microsoft/applicationinsights-shims": "3.0.1", - "@microsoft/applicationinsights-core-js": "3.4.4", + "@microsoft/applicationinsights-core-js": "3.4.5", "@nevware21/ts-utils": ">= 0.14.0 < 2.x", "@nevware21/ts-async": ">= 0.5.5 < 0.6.0" }, diff --git a/channels/tee-channel-js/package.json b/channels/tee-channel-js/package.json index 5b2c0e3b6..e63d1556e 100644 --- a/channels/tee-channel-js/package.json +++ b/channels/tee-channel-js/package.json @@ -1,6 +1,6 @@ { "name": "@microsoft/applicationinsights-teechannel-js", - "version": "3.4.4", + "version": "3.4.5", "description": "Microsoft Application Insights JavaScript SDK Tee Channel", "homepage": "https://github.com/microsoft/ApplicationInsights-JS#readme", "author": "Microsoft Application Insights Team", @@ -65,7 +65,7 @@ "dependencies": { "@microsoft/dynamicproto-js": "^2.0.3", "@microsoft/applicationinsights-shims": "3.0.1", - "@microsoft/applicationinsights-core-js": "3.4.4", + "@microsoft/applicationinsights-core-js": "3.4.5", "@nevware21/ts-utils": ">= 0.14.0 < 2.x", "@nevware21/ts-async": ">= 0.5.5 < 0.6.0" }, diff --git a/common/config/rush/pnpm-lock.yaml b/common/config/rush/pnpm-lock.yaml index 62e1cc8f2..2cf5a3797 100644 --- a/common/config/rush/pnpm-lock.yaml +++ b/common/config/rush/pnpm-lock.yaml @@ -449,11 +449,11 @@ packages: optional: true '@rush-temp/1ds-core-js@file:projects/1ds-core-js.tgz': - resolution: {integrity: sha512-pDwNjD5UmL+0qRthZoMlmMzJ189Yhnl2D7L31i5HVFug+5iz/M08tQWcSdXvfqlaxYXtmtjVugmnghWpTtaJig==, tarball: file:projects/1ds-core-js.tgz} + resolution: {integrity: sha512-vdDSFBql2iigYsn7pohEuTrCO/qbMBIPEBrJVpY+/H6+dQ9ODhrV8kgGf9l5skYTXly/Qux7QI3Nt0OhfSJzNw==, tarball: file:projects/1ds-core-js.tgz} version: 0.0.0 '@rush-temp/1ds-post-js@file:projects/1ds-post-js.tgz': - resolution: {integrity: sha512-+KVZ4uSKmElnP4j35ObAcDvfxsZ5OWaLpxD1zQtLnzhE757Tq/u8SJ/eqMgExIw0qS503gf7StABjJYB3tdUIA==, tarball: file:projects/1ds-post-js.tgz} + resolution: {integrity: sha512-94LJiixQhKlot2//WMMiTmjlP1pG5PbCZgWI6pWw9amG1CGQvx6RbrOZsCaUIeuZl1WhQEwj6NaZbku1i1b/Qw==, tarball: file:projects/1ds-post-js.tgz} version: 0.0.0 '@rush-temp/ai-test-framework@file:projects/ai-test-framework.tgz': @@ -461,27 +461,27 @@ packages: version: 0.0.0 '@rush-temp/applicationinsights-analytics-js@file:projects/applicationinsights-analytics-js.tgz': - resolution: {integrity: sha512-2QvN9PClAQ6ks4wNq22bxJXSspnYigSwINz3H/bjX2tf5A7ABmF/DJ0DvVmqJR1Rfl6Vkxee3thRLwScFbEzmg==, tarball: file:projects/applicationinsights-analytics-js.tgz} + resolution: {integrity: sha512-fbOiJYdCWtbCgQNNWna8GJxqZHZX38z3eaI2ab2sQ+R4SEeeaNw1Z7W9sKVIB0QzgiSQ/HUxVOhx0cb+UkO1WQ==, tarball: file:projects/applicationinsights-analytics-js.tgz} version: 0.0.0 '@rush-temp/applicationinsights-cfgsync-js@file:projects/applicationinsights-cfgsync-js.tgz': - resolution: {integrity: sha512-/jCewy/onlAS8o1hNDjmEttNmPI9qT8P/MX/EKA5ufckpcyNsrcBeS9YaMnc/YDrhhK9yuGsLB9t9HOU+84OqQ==, tarball: file:projects/applicationinsights-cfgsync-js.tgz} + resolution: {integrity: sha512-VA0TLPczI30P+BygUFrxbBwiX4OUSR+vqzvcwtEybQ7v6MJ6c4I7JAYrbDX5DKZ6NJobqjyAHoTq5hQRK7FTJg==, tarball: file:projects/applicationinsights-cfgsync-js.tgz} version: 0.0.0 '@rush-temp/applicationinsights-channel-js@file:projects/applicationinsights-channel-js.tgz': - resolution: {integrity: sha512-NrqdHP9AtNlM6qnxe+q7JKE+HNYqEdKsOsxbKdBdqDe69fb3PfbuJONGsw4wOn8bLovjfNO/F2ln1u2kmEiecw==, tarball: file:projects/applicationinsights-channel-js.tgz} + resolution: {integrity: sha512-GERL4cQWHvgEJEtaVa1IHi0TFN6/6W8A/ckbZRn1w8HBa2hEbGqEQonyXD/3Sn9UeKTTjf5upAaN05gWJ3yQuw==, tarball: file:projects/applicationinsights-channel-js.tgz} version: 0.0.0 '@rush-temp/applicationinsights-chrome-debug-extension@file:projects/applicationinsights-chrome-debug-extension.tgz': - resolution: {integrity: sha512-AS1SreSUPPIPSUKJG11GHAbv+FOSXMhT9LIqHpPbYXQB04Lit/EnS42B9K0V9NBMuvyjmcdRpMfr0vusOKlUmw==, tarball: file:projects/applicationinsights-chrome-debug-extension.tgz} + resolution: {integrity: sha512-qKKp+8uEKS1IzlNGyF4VjMLs5XAKntzZIG8DekuR9/DkVQoZKiOQP/9VtI66ujMYNJi8OZIXE/s9+LGDWwZj2g==, tarball: file:projects/applicationinsights-chrome-debug-extension.tgz} version: 0.0.0 '@rush-temp/applicationinsights-clickanalytics-js@file:projects/applicationinsights-clickanalytics-js.tgz': - resolution: {integrity: sha512-okTO5veFtnB9esbwXYkXGvBbui1V30ClNelWkaX9OssbuM69dlvjCbqOUzCyZb7hVCSNB9drknAca33PWmoqkQ==, tarball: file:projects/applicationinsights-clickanalytics-js.tgz} + resolution: {integrity: sha512-xApLExDBt6822nHJUEdMcyUD1/Us4vnLkWKsQPkrUrFh9zHWCIX3qiXp7s5feSheJC9maQpJ8bBjj2sca8IhZA==, tarball: file:projects/applicationinsights-clickanalytics-js.tgz} version: 0.0.0 '@rush-temp/applicationinsights-common@file:projects/applicationinsights-common.tgz': - resolution: {integrity: sha512-nz+f2IJW7+dmYbaSpoMwLGOCyXDAHINajWUNko8z40K3lLB006g/yZK+wXZspEQPhMQ7J1BUI1Ag60tAvvWpqg==, tarball: file:projects/applicationinsights-common.tgz} + resolution: {integrity: sha512-tFYQ/l86Y38wPeWky3I+qcos2pL23CfduraMh6OPrLCJbNNmsMJT646jwXedRm89iXh40HBn3FvmMuq93sV6Mg==, tarball: file:projects/applicationinsights-common.tgz} version: 0.0.0 '@rush-temp/applicationinsights-core-js@file:projects/applicationinsights-core-js.tgz': @@ -489,31 +489,31 @@ packages: version: 0.0.0 '@rush-temp/applicationinsights-debugplugin-js@file:projects/applicationinsights-debugplugin-js.tgz': - resolution: {integrity: sha512-V1leXaFEA4g/tSvRZEJbsdZsiN6va7TqJi4TQKWA7MzuUocI6pWA6w4WSvFf7aEQlprIUbOywndKNjY07iblMA==, tarball: file:projects/applicationinsights-debugplugin-js.tgz} + resolution: {integrity: sha512-6Ri9yJgmy+Nk12C0Cvb0Qk258yQ7GzLFXoD9puRw2+DIQ6BzE6D6N+HBKE8IbnSAxUN5IXeDZ9gusWH162IQyg==, tarball: file:projects/applicationinsights-debugplugin-js.tgz} version: 0.0.0 '@rush-temp/applicationinsights-dependencies-js@file:projects/applicationinsights-dependencies-js.tgz': - resolution: {integrity: sha512-TZVWRxLDYkmUSrfF0QQ6BVV8qZB2XbmJTX10/e5+O7HzTVZCswJwP40CH/IwKvGq0/kGAW2UsuM4DebWyLAaqQ==, tarball: file:projects/applicationinsights-dependencies-js.tgz} + resolution: {integrity: sha512-HL6bqlZrDmPAS5SzbhLNOIxr7/2mCNBSnzUNs//1hzei/XIqWjoEg+T5i/N3GRg/EvIyyNjni7iudeuBIDEbfg==, tarball: file:projects/applicationinsights-dependencies-js.tgz} version: 0.0.0 '@rush-temp/applicationinsights-example-aisku@file:projects/applicationinsights-example-aisku.tgz': - resolution: {integrity: sha512-V7Q9FhUdf1Qy2xwhtNunkOzD0VQNiS2D6ayxUgnkSHYuKzY+IbvB8wYoQkDKU39rbmD/tHVcSd4DtQgxaWoFmA==, tarball: file:projects/applicationinsights-example-aisku.tgz} + resolution: {integrity: sha512-QqmLF0/4TXLugqGlTyOFfEHZMmwpp8e2VYrmHKXJjRkN2ulRrYZIm6xFTT116FIjyisN+m/GaeDmifCOXxGH2A==, tarball: file:projects/applicationinsights-example-aisku.tgz} version: 0.0.0 '@rush-temp/applicationinsights-example-cfgsync@file:projects/applicationinsights-example-cfgsync.tgz': - resolution: {integrity: sha512-xhHppB1AlTy/ODJDpDdUaPb3SgrkVR9Poh17Jfhu9rUGl9IsKDp4xZD+mCMW2XkXH2yWhM+DNa2Rc4ltxu1doQ==, tarball: file:projects/applicationinsights-example-cfgsync.tgz} + resolution: {integrity: sha512-xX2f0KnRxNbQpO2RgUPhshBRuCaGokrirIIdckHLRo2WdNIwgURwKttokzZYULIy4OLn/RLbpaRPh2ydG2BRUg==, tarball: file:projects/applicationinsights-example-cfgsync.tgz} version: 0.0.0 '@rush-temp/applicationinsights-example-dependencies@file:projects/applicationinsights-example-dependencies.tgz': - resolution: {integrity: sha512-h7qoWXzSvZEqh93NpfyScslZWjT/YpfhFZPyfGXH3hcN1FLnUomMhJWHQYHapOzXID8fnWu+DAdH8NUtwsvFfQ==, tarball: file:projects/applicationinsights-example-dependencies.tgz} + resolution: {integrity: sha512-srwYupFUZkl9GVmlK9/RV0kIA2gb6viHfdOkko7RDOiwUZSW25qwcFj+r8jOtOOH57OxfFQ8UOiUoMasXGIlBQ==, tarball: file:projects/applicationinsights-example-dependencies.tgz} version: 0.0.0 '@rush-temp/applicationinsights-example-shared-worker@file:projects/applicationinsights-example-shared-worker.tgz': - resolution: {integrity: sha512-LPXm8ko4ak0IfSsbfk3N+Kov9VTWs6t0kZtTtGyEa7Lvcw64zvT0Ap4kJwJBTX+2h8VQSKvAoxr9LzAGrgsxmw==, tarball: file:projects/applicationinsights-example-shared-worker.tgz} + resolution: {integrity: sha512-tCeq7hjbdrVwHvoUfryoynBpX/2S/VyKhtJ6xaeSTlk7F8pvYk9eR7a928V13clcDDYF01tSh5fonVcK/NGFnQ==, tarball: file:projects/applicationinsights-example-shared-worker.tgz} version: 0.0.0 '@rush-temp/applicationinsights-example-startspan@file:projects/applicationinsights-example-startspan.tgz': - resolution: {integrity: sha512-J2wBbFuA7f3vnSBQTXAarJp3goK0iHdu9lCX24XB6BWB6eHANEmN/ws/GIAhciKkczZzl7BlwhZRBm/dosHCxQ==, tarball: file:projects/applicationinsights-example-startspan.tgz} + resolution: {integrity: sha512-KoIAkfRA2xRx4ZowtVf0eVbOKenz3IWcGcNmRw+D/wxdRlLxY7UK5ROgQ53xgiZPLQsEgTYFO/VCJb4o1PjXaQ==, tarball: file:projects/applicationinsights-example-startspan.tgz} version: 0.0.0 '@rush-temp/applicationinsights-js-release-tools@file:projects/applicationinsights-js-release-tools.tgz': @@ -521,19 +521,19 @@ packages: version: 0.0.0 '@rush-temp/applicationinsights-offlinechannel-js@file:projects/applicationinsights-offlinechannel-js.tgz': - resolution: {integrity: sha512-139iwxnnIYmNCPYXUqxYpAHyAMWFR3cZfZHf/8QjluI3yzcpoSnTd2eFXDfWNQKmER6/VflNvKR2IE4VdMD4OA==, tarball: file:projects/applicationinsights-offlinechannel-js.tgz} + resolution: {integrity: sha512-M88APjPJUdX+LzvJZa/pPQrS1aSt+MRmTT97bIPnv0NkOolUu0EbumzAQuNC4nmbLS/YEjFaRFDKgNYP52P8Aw==, tarball: file:projects/applicationinsights-offlinechannel-js.tgz} version: 0.0.0 '@rush-temp/applicationinsights-osplugin-js@file:projects/applicationinsights-osplugin-js.tgz': - resolution: {integrity: sha512-3PqI5K1LRR981LGcC4usNhb1lVZFyB03JejGQ9KuL2uh0uD2/aphsP/Z4fU72dI+PW61Tt3ZaMr0BtczvLKPzg==, tarball: file:projects/applicationinsights-osplugin-js.tgz} + resolution: {integrity: sha512-JyQNaE8CpvsXPXVde1BZwcQq8tGu8epOWk7jTeI7g0twLJEPtBdZyKGaRlWCrqEGNlpI+mygpWiz3uoSRUtLbA==, tarball: file:projects/applicationinsights-osplugin-js.tgz} version: 0.0.0 '@rush-temp/applicationinsights-perfmarkmeasure-js@file:projects/applicationinsights-perfmarkmeasure-js.tgz': - resolution: {integrity: sha512-fMFeuHTWhFAhaAcS6BZ3rhWuL/lvq/Hbeom8GdMowvzfm3QL2tmpm+U18W09txQec+D4FPQdIfpjvgEBuSM1KQ==, tarball: file:projects/applicationinsights-perfmarkmeasure-js.tgz} + resolution: {integrity: sha512-R7o/hMmjAOb0yRz1QPvlitPorJrpk64pilP1fvNPbk0GOC68sQidap+YbPQ0FSiqwQIIxPvlvl0GwEy4ZhckVA==, tarball: file:projects/applicationinsights-perfmarkmeasure-js.tgz} version: 0.0.0 '@rush-temp/applicationinsights-properties-js@file:projects/applicationinsights-properties-js.tgz': - resolution: {integrity: sha512-o+a6GkBcVL0/QXRKMRIfb8s3qzgNiZ/vHwxbgRP51+5KxG7LBHVVnVoOPwL4JvvdlUZeb0atQagS+TbqBRoRBA==, tarball: file:projects/applicationinsights-properties-js.tgz} + resolution: {integrity: sha512-5+b4lSU6mjT/oJIUOU5XNZglaYmVV3F97S/aktr+NlIAf03KON+iLAY1Mkic37fvBz9tcTeU6tYQoROV08L0cA==, tarball: file:projects/applicationinsights-properties-js.tgz} version: 0.0.0 '@rush-temp/applicationinsights-rollup-es5@file:projects/applicationinsights-rollup-es5.tgz': @@ -549,15 +549,15 @@ packages: version: 0.0.0 '@rush-temp/applicationinsights-teechannel-js@file:projects/applicationinsights-teechannel-js.tgz': - resolution: {integrity: sha512-aLslquSpCcXc8P2zoYPwUnbuExvbGYrG4UVCrEXvh0nMbz4XWZ+VX601yyP+BAU2dVF3bD0xGI7Aq8QvJpC7Ng==, tarball: file:projects/applicationinsights-teechannel-js.tgz} + resolution: {integrity: sha512-Hk0l1RclW/MqmePPWlf+PBl/3pzoLyihzg/pDsvdM4/zGYRvacKa0KeriTfX2es3gMnMGcYdTSyTnpEIPxkFDg==, tarball: file:projects/applicationinsights-teechannel-js.tgz} version: 0.0.0 '@rush-temp/applicationinsights-test-module-type-check@file:projects/applicationinsights-test-module-type-check.tgz': - resolution: {integrity: sha512-A4r9eIE7N9qNG7ourVmGSDnH5sd1qSNiafurx4vkoBkDmx9mCUGySL5p/buMTd/EOvMlGSIXkWM7UZkwPWd8hA==, tarball: file:projects/applicationinsights-test-module-type-check.tgz} + resolution: {integrity: sha512-/UDpdq8/s4Y2WF6NAteraEqYjdq+ktVjVoXgoGDrq3H6gO6ziqtojjpPWUeud79iSHor1y/cmy/NSVLf10pPLw==, tarball: file:projects/applicationinsights-test-module-type-check.tgz} version: 0.0.0 '@rush-temp/applicationinsights-web-basic@file:projects/applicationinsights-web-basic.tgz': - resolution: {integrity: sha512-zI8VbCYZU81XLNLQ2QRxLXG2BLvfcIKu9JFu2lCC/sidycHakwbovRxFAWayExDTaoKtm+0wd8yfItKc1DlhOw==, tarball: file:projects/applicationinsights-web-basic.tgz} + resolution: {integrity: sha512-xxNmhG+0Dv5ly3h7Mi8nqy0THSIwWS4nrXzcQXgJOoWBingg0HC0DsP3CV5OdjBZpHxGfq7pNWku/aCPIUmRHA==, tarball: file:projects/applicationinsights-web-basic.tgz} version: 0.0.0 '@rush-temp/applicationinsights-web-config@file:projects/applicationinsights-web-config.tgz': @@ -565,11 +565,11 @@ packages: version: 0.0.0 '@rush-temp/applicationinsights-web-snippet@file:projects/applicationinsights-web-snippet.tgz': - resolution: {integrity: sha512-QfHG5Z7L40dQW/JRXMFhSKE43coLiVlXE+e6Ve4JRKSDGdO0W8h7uMdg/1ahUOQoHwpW/bQ/+8lgo6OPszalkg==, tarball: file:projects/applicationinsights-web-snippet.tgz} + resolution: {integrity: sha512-541kWhmHyLky4oJX+6v60YP6EY5I+qSw46GV582Pn0v+bgknriCMp9ttqbxa2PsaD9su/wGGLN5qQMTB4AFiSw==, tarball: file:projects/applicationinsights-web-snippet.tgz} version: 0.0.0 '@rush-temp/applicationinsights-web@file:projects/applicationinsights-web.tgz': - resolution: {integrity: sha512-YSBHFuyzucBxZYZ9vXZE7Slhq5LrFq1i0Rka3Qk6fCsHs7z2WeQTNjFi4wr+cUZSUPdhWNyov4LVmtcIDGRTpw==, tarball: file:projects/applicationinsights-web.tgz} + resolution: {integrity: sha512-eFQUKxoBiv8qBJlj0Rzd60LDdLIP+Chai2UL+mLXpY1Xu2VoMVlz9FG+7rSMQADBJKK3JiPkHJpbIvuS3Nruuw==, tarball: file:projects/applicationinsights-web.tgz} version: 0.0.0 '@rushstack/node-core-library@5.23.1': diff --git a/examples/AISKU/package.json b/examples/AISKU/package.json index c4fe9c4b1..6cabf6865 100644 --- a/examples/AISKU/package.json +++ b/examples/AISKU/package.json @@ -1,7 +1,7 @@ { "name": "@microsoft/applicationinsights-example-aisku", "author": "Microsoft Application Insights Team", - "version": "3.4.4", + "version": "3.4.5", "description": "Microsoft Application Insights AISKU Example", "homepage": "https://github.com/microsoft/ApplicationInsights-JS#readme", "keywords": [ @@ -59,8 +59,8 @@ "dependencies": { "@microsoft/applicationinsights-shims": "3.0.1", "@microsoft/dynamicproto-js": "^2.0.3", - "@microsoft/applicationinsights-web": "3.4.4", - "@microsoft/applicationinsights-core-js": "3.4.4", + "@microsoft/applicationinsights-web": "3.4.5", + "@microsoft/applicationinsights-core-js": "3.4.5", "@nevware21/ts-utils": ">= 0.14.0 < 2.x" } } diff --git a/examples/cfgSync/package.json b/examples/cfgSync/package.json index 4ec2f51be..6d7606c26 100644 --- a/examples/cfgSync/package.json +++ b/examples/cfgSync/package.json @@ -1,7 +1,7 @@ { "name": "@microsoft/applicationinsights-example-cfgsync", "author": "Microsoft Application Insights Team", - "version": "3.4.4", + "version": "3.4.5", "description": "Microsoft Application Insights CfgSync Plugin Example", "homepage": "https://github.com/microsoft/ApplicationInsights-JS#readme", "keywords": [ @@ -66,10 +66,10 @@ }, "dependencies": { "@microsoft/applicationinsights-shims": "3.0.1", - "@microsoft/applicationinsights-cfgsync-js": "3.4.4", + "@microsoft/applicationinsights-cfgsync-js": "3.4.5", "@microsoft/dynamicproto-js": "^2.0.3", - "@microsoft/applicationinsights-web": "3.4.4", - "@microsoft/applicationinsights-core-js": "3.4.4", + "@microsoft/applicationinsights-web": "3.4.5", + "@microsoft/applicationinsights-core-js": "3.4.5", "@nevware21/ts-utils": ">= 0.14.0 < 2.x" } } diff --git a/examples/dependency/package.json b/examples/dependency/package.json index fe04702c1..0823d6a61 100644 --- a/examples/dependency/package.json +++ b/examples/dependency/package.json @@ -1,7 +1,7 @@ { "name": "@microsoft/applicationinsights-example-dependencies", "author": "Microsoft Application Insights Team", - "version": "3.4.4", + "version": "3.4.5", "description": "Microsoft Application Insights Dependencies Example", "homepage": "https://github.com/microsoft/ApplicationInsights-JS#readme", "keywords": [ @@ -59,9 +59,9 @@ "dependencies": { "@microsoft/applicationinsights-shims": "3.0.1", "@microsoft/dynamicproto-js": "^2.0.3", - "@microsoft/applicationinsights-web": "3.4.4", - "@microsoft/applicationinsights-dependencies-js": "3.4.4", - "@microsoft/applicationinsights-core-js": "3.4.4", + "@microsoft/applicationinsights-web": "3.4.5", + "@microsoft/applicationinsights-dependencies-js": "3.4.5", + "@microsoft/applicationinsights-core-js": "3.4.5", "@nevware21/ts-utils": ">= 0.14.0 < 2.x" } } diff --git a/examples/shared-worker/package.json b/examples/shared-worker/package.json index e6fd39c8e..24f7f4db6 100644 --- a/examples/shared-worker/package.json +++ b/examples/shared-worker/package.json @@ -1,7 +1,7 @@ { "name": "@microsoft/applicationinsights-example-shared-worker", "author": "Microsoft Application Insights Team", - "version": "3.4.4", + "version": "3.4.5", "description": "Microsoft Application Insights Shared Worker Example", "homepage": "https://github.com/microsoft/ApplicationInsights-JS#readme", "keywords": [ @@ -67,8 +67,8 @@ "dependencies": { "@microsoft/applicationinsights-shims": "3.0.1", "@microsoft/dynamicproto-js": "^2.0.3", - "@microsoft/applicationinsights-web": "3.4.4", - "@microsoft/applicationinsights-core-js": "3.4.4", + "@microsoft/applicationinsights-web": "3.4.5", + "@microsoft/applicationinsights-core-js": "3.4.5", "@nevware21/ts-utils": ">= 0.14.0 < 2.x" } } diff --git a/examples/startSpan/package.json b/examples/startSpan/package.json index 68e82f0c2..5c3507852 100644 --- a/examples/startSpan/package.json +++ b/examples/startSpan/package.json @@ -1,7 +1,7 @@ { "name": "@microsoft/applicationinsights-example-startspan", "author": "Microsoft Application Insights Team", - "version": "3.4.4", + "version": "3.4.5", "description": "Microsoft Application Insights startSpan Example", "homepage": "https://github.com/microsoft/ApplicationInsights-JS#readme", "keywords": [ @@ -62,8 +62,8 @@ "dependencies": { "@microsoft/applicationinsights-shims": "3.0.1", "@microsoft/dynamicproto-js": "^2.0.3", - "@microsoft/applicationinsights-web": "3.4.4", - "@microsoft/applicationinsights-core-js": "3.4.4", + "@microsoft/applicationinsights-web": "3.4.5", + "@microsoft/applicationinsights-core-js": "3.4.5", "@nevware21/ts-utils": ">= 0.14.0 < 2.x" } } diff --git a/extensions/applicationinsights-analytics-js/package.json b/extensions/applicationinsights-analytics-js/package.json index b33fb3e39..8fed902cc 100644 --- a/extensions/applicationinsights-analytics-js/package.json +++ b/extensions/applicationinsights-analytics-js/package.json @@ -1,6 +1,6 @@ { "name": "@microsoft/applicationinsights-analytics-js", - "version": "3.4.4", + "version": "3.4.5", "description": "Microsoft Application Insights JavaScript SDK - Web Analytics", "homepage": "https://github.com/microsoft/ApplicationInsights-JS#readme", "author": "Microsoft Application Insights Team", @@ -32,9 +32,9 @@ "@microsoft/ai-test-framework": "0.0.1", "@microsoft/applicationinsights-rollup-plugin-uglify3-js": "1.0.0", "@microsoft/applicationinsights-rollup-es5": "1.0.2", - "@microsoft/applicationinsights-properties-js": "3.4.4", - "@microsoft/applicationinsights-channel-js": "3.4.4", - "@microsoft/applicationinsights-dependencies-js": "3.4.4", + "@microsoft/applicationinsights-properties-js": "3.4.5", + "@microsoft/applicationinsights-channel-js": "3.4.5", + "@microsoft/applicationinsights-dependencies-js": "3.4.5", "@microsoft/api-extractor": "^7.40.0", "typescript": "^4.9.3", "tslib": "^2.0.0", @@ -68,7 +68,7 @@ "dependencies": { "@microsoft/dynamicproto-js": "^2.0.3", "@microsoft/applicationinsights-shims": "3.0.1", - "@microsoft/applicationinsights-core-js": "3.4.4", + "@microsoft/applicationinsights-core-js": "3.4.5", "@nevware21/ts-utils": ">= 0.14.0 < 2.x" }, "license": "MIT" diff --git a/extensions/applicationinsights-cfgsync-js/package.json b/extensions/applicationinsights-cfgsync-js/package.json index ed74b3591..92e3e27f2 100644 --- a/extensions/applicationinsights-cfgsync-js/package.json +++ b/extensions/applicationinsights-cfgsync-js/package.json @@ -1,6 +1,6 @@ { "name": "@microsoft/applicationinsights-cfgsync-js", - "version": "3.4.4", + "version": "3.4.5", "description": "Microsoft Application Insights CfgSync Plugin", "homepage": "https://github.com/microsoft/ApplicationInsights-JS#readme", "author": "Microsoft Application Insights Team", @@ -64,7 +64,7 @@ "dependencies": { "@microsoft/dynamicproto-js": "^2.0.3", "@microsoft/applicationinsights-shims": "3.0.1", - "@microsoft/applicationinsights-core-js": "3.4.4", + "@microsoft/applicationinsights-core-js": "3.4.5", "@nevware21/ts-utils": ">= 0.14.0 < 2.x", "@nevware21/ts-async": ">= 0.5.5 < 0.6.0" }, diff --git a/extensions/applicationinsights-clickanalytics-js/package.json b/extensions/applicationinsights-clickanalytics-js/package.json index 75aaf0255..e0a971b65 100644 --- a/extensions/applicationinsights-clickanalytics-js/package.json +++ b/extensions/applicationinsights-clickanalytics-js/package.json @@ -1,6 +1,6 @@ { "name": "@microsoft/applicationinsights-clickanalytics-js", - "version": "3.4.4", + "version": "3.4.5", "description": "Microsoft Application Insights Click Analytics extension", "homepage": "https://github.com/microsoft/ApplicationInsights-JS#readme", "author": "Microsoft Application Insights Team", @@ -58,8 +58,8 @@ "dependencies": { "@microsoft/dynamicproto-js": "^2.0.3", "@microsoft/applicationinsights-shims": "3.0.1", - "@microsoft/applicationinsights-core-js": "3.4.4", - "@microsoft/applicationinsights-properties-js": "3.4.4", + "@microsoft/applicationinsights-core-js": "3.4.5", + "@microsoft/applicationinsights-properties-js": "3.4.5", "@nevware21/ts-utils": ">= 0.14.0 < 2.x" }, "repository": { diff --git a/extensions/applicationinsights-debugplugin-js/package.json b/extensions/applicationinsights-debugplugin-js/package.json index 667e69517..b3ac8490e 100644 --- a/extensions/applicationinsights-debugplugin-js/package.json +++ b/extensions/applicationinsights-debugplugin-js/package.json @@ -1,6 +1,6 @@ { "name": "@microsoft/applicationinsights-debugplugin-js", - "version": "3.4.4", + "version": "3.4.5", "description": "Microsoft Application Insights JavaScript SDK - Debug Plugin extension", "homepage": "https://github.com/microsoft/ApplicationInsights-JS#readme", "author": "Microsoft Application Insights Team", @@ -56,7 +56,7 @@ }, "dependencies": { "@microsoft/dynamicproto-js": "^2.0.3", - "@microsoft/applicationinsights-core-js": "3.4.4", + "@microsoft/applicationinsights-core-js": "3.4.5", "@microsoft/applicationinsights-shims": "3.0.1", "@nevware21/ts-utils": ">= 0.14.0 < 2.x" }, diff --git a/extensions/applicationinsights-dependencies-js/package.json b/extensions/applicationinsights-dependencies-js/package.json index cf77e9237..139192b43 100644 --- a/extensions/applicationinsights-dependencies-js/package.json +++ b/extensions/applicationinsights-dependencies-js/package.json @@ -1,6 +1,6 @@ { "name": "@microsoft/applicationinsights-dependencies-js", - "version": "3.4.4", + "version": "3.4.5", "description": "Microsoft Application Insights XHR dependencies plugin", "homepage": "https://github.com/microsoft/ApplicationInsights-JS#readme", "author": "Microsoft Application Insights Team", @@ -64,7 +64,7 @@ "dependencies": { "@microsoft/dynamicproto-js": "^2.0.3", "@microsoft/applicationinsights-shims": "3.0.1", - "@microsoft/applicationinsights-core-js": "3.4.4", + "@microsoft/applicationinsights-core-js": "3.4.5", "@nevware21/ts-utils": ">= 0.14.0 < 2.x", "@nevware21/ts-async": ">= 0.5.5 < 0.6.0" }, diff --git a/extensions/applicationinsights-osplugin-js/package.json b/extensions/applicationinsights-osplugin-js/package.json index 04b7833d0..c848dcbf3 100644 --- a/extensions/applicationinsights-osplugin-js/package.json +++ b/extensions/applicationinsights-osplugin-js/package.json @@ -1,6 +1,6 @@ { "name": "@microsoft/applicationinsights-osplugin-js", - "version": "3.4.4", + "version": "3.4.5", "description": "Microsoft Application Insights OS Plugin", "homepage": "https://github.com/microsoft/ApplicationInsights-JS#readme", "author": "Microsoft Application Insights Team", @@ -31,7 +31,7 @@ "dependencies": { "@microsoft/applicationinsights-shims": "3.0.1", "@microsoft/dynamicproto-js": "^2.0.3", - "@microsoft/applicationinsights-core-js": "3.4.4", + "@microsoft/applicationinsights-core-js": "3.4.5", "@nevware21/ts-utils": ">= 0.14.0 < 2.x", "@nevware21/ts-async": ">= 0.5.5 < 0.6.0" }, diff --git a/extensions/applicationinsights-perfmarkmeasure-js/package.json b/extensions/applicationinsights-perfmarkmeasure-js/package.json index 885af8315..3599030df 100644 --- a/extensions/applicationinsights-perfmarkmeasure-js/package.json +++ b/extensions/applicationinsights-perfmarkmeasure-js/package.json @@ -1,6 +1,6 @@ { "name": "@microsoft/applicationinsights-perfmarkmeasure-js", - "version": "3.4.4", + "version": "3.4.5", "description": "Microsoft Application Insights Performance Mark and Measure Manager plugin", "homepage": "https://github.com/microsoft/ApplicationInsights-JS#readme", "author": "Microsoft Application Insights Team", @@ -63,7 +63,7 @@ "dependencies": { "@microsoft/dynamicproto-js": "^2.0.3", "@microsoft/applicationinsights-shims": "3.0.1", - "@microsoft/applicationinsights-core-js": "3.4.4", + "@microsoft/applicationinsights-core-js": "3.4.5", "@nevware21/ts-utils": ">= 0.14.0 < 2.x" }, "license": "MIT" diff --git a/extensions/applicationinsights-properties-js/Tests/Unit/src/propertiesSize.tests.ts b/extensions/applicationinsights-properties-js/Tests/Unit/src/propertiesSize.tests.ts index fa0770fb0..6d8a40d68 100644 --- a/extensions/applicationinsights-properties-js/Tests/Unit/src/propertiesSize.tests.ts +++ b/extensions/applicationinsights-properties-js/Tests/Unit/src/propertiesSize.tests.ts @@ -54,7 +54,7 @@ export class PropertiesExtensionSizeCheck extends AITestClass { private readonly MAX_DEFLATE_SIZE = 19; private readonly rawFilePath = "../dist/es5/applicationinsights-properties-js.min.js"; // Automatically updated by version scripts - private readonly currentVer = "3.4.4"; + private readonly currentVer = "3.4.5"; private readonly proFilePath = `../browser/es5/ai.props.${this.currentVer[0]}.min.js`; public testInitialize() { diff --git a/extensions/applicationinsights-properties-js/package.json b/extensions/applicationinsights-properties-js/package.json index a9eba8e56..15e840180 100644 --- a/extensions/applicationinsights-properties-js/package.json +++ b/extensions/applicationinsights-properties-js/package.json @@ -1,6 +1,6 @@ { "name": "@microsoft/applicationinsights-properties-js", - "version": "3.4.4", + "version": "3.4.5", "description": "Microsoft Application Insights properties (Part A) plugin", "homepage": "https://github.com/microsoft/ApplicationInsights-JS#readme", "author": "Microsoft Application Insights Team", @@ -66,7 +66,7 @@ "dependencies": { "@microsoft/dynamicproto-js": "^2.0.3", "@microsoft/applicationinsights-shims": "3.0.1", - "@microsoft/applicationinsights-core-js": "3.4.4", + "@microsoft/applicationinsights-core-js": "3.4.5", "@nevware21/ts-utils": ">= 0.14.0 < 2.x" }, "license": "MIT" diff --git a/gruntfile.js b/gruntfile.js index e2ace91ac..b909156b1 100644 --- a/gruntfile.js +++ b/gruntfile.js @@ -287,7 +287,7 @@ module.exports = function (grunt) { // const perfTestVersions = ["2.0.0","2.0.1","2.1.0","2.2.0","2.2.1","2.2.2","2.3.0","2.3.1", // "2.4.1","2.4.3","2.4.4","2.5.2","2.5.3","2.5.4","2.5.5","2.5.6","2.5.7","2.5.8","2.5.9","2.5.10","2.5.11", // "2.6.0","2.6.1","2.6.2","2.6.3","2.6.4","2.6.5","2.7.0"]; - const perfTestVersions=["3.4.4"]; + const perfTestVersions=["3.4.5"]; function buildConfig(modules) { var buildCmds = { diff --git a/package.json b/package.json index b46c8c787..5b4f84c84 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@microsoft/applicationinsights-web", "description": "Microsoft Application Insights JavaScript SDK", - "version": "3.4.4", + "version": "3.4.5", "keywords": [ "browser performance monitoring", "script errors", diff --git a/shared/1ds-core-js/package.json b/shared/1ds-core-js/package.json index dc5a840d7..1e0d52382 100644 --- a/shared/1ds-core-js/package.json +++ b/shared/1ds-core-js/package.json @@ -1,6 +1,6 @@ { "name": "@microsoft/1ds-core-js", - "version": "4.4.4", + "version": "4.4.5", "description": "Microsoft Application Insights JavaScript SDK - 1ds-core-js", "author": "Microsoft Application Insights Team", "homepage": "https://github.com/microsoft/ApplicationInsights-JS#readme", @@ -37,7 +37,7 @@ ], "dependencies": { "@microsoft/applicationinsights-shims": "3.0.1", - "@microsoft/applicationinsights-core-js": "3.4.4", + "@microsoft/applicationinsights-core-js": "3.4.5", "@microsoft/dynamicproto-js": "^2.0.3", "@nevware21/ts-utils": ">= 0.14.0 < 2.x", "@nevware21/ts-async": ">= 0.5.5 < 0.6.0" diff --git a/shared/AppInsightsCommon/package.json b/shared/AppInsightsCommon/package.json index 5ff0565fb..f29cc1ed8 100644 --- a/shared/AppInsightsCommon/package.json +++ b/shared/AppInsightsCommon/package.json @@ -1,6 +1,6 @@ { "name": "@microsoft/applicationinsights-common", - "version": "3.4.4", + "version": "3.4.5", "description": "Microsoft Application Insights Common JavaScript Library", "homepage": "https://github.com/microsoft/ApplicationInsights-JS#readme", "author": "Microsoft Application Insights Team", @@ -58,7 +58,7 @@ }, "dependencies": { "@microsoft/applicationinsights-shims": "3.0.1", - "@microsoft/applicationinsights-core-js": "3.4.4", + "@microsoft/applicationinsights-core-js": "3.4.5", "@microsoft/dynamicproto-js": "^2.0.3", "@nevware21/ts-utils": ">= 0.14.0 < 2.x" }, diff --git a/shared/AppInsightsCore/package.json b/shared/AppInsightsCore/package.json index 782a5f2d5..9ddc34384 100644 --- a/shared/AppInsightsCore/package.json +++ b/shared/AppInsightsCore/package.json @@ -1,7 +1,7 @@ { "name": "@microsoft/applicationinsights-core-js", "author": "Microsoft Application Insights Team", - "version": "3.4.4", + "version": "3.4.5", "description": "Microsoft Application Insights Core Javascript SDK", "homepage": "https://github.com/microsoft/ApplicationInsights-JS#readme", "keywords": [ diff --git a/tools/applicationinsights-web-snippet/package.json b/tools/applicationinsights-web-snippet/package.json index 5da4b802f..a5d6a6e15 100644 --- a/tools/applicationinsights-web-snippet/package.json +++ b/tools/applicationinsights-web-snippet/package.json @@ -1,6 +1,6 @@ { "name": "@microsoft/applicationinsights-web-snippet", - "version": "1.3.4", + "version": "1.3.5", "description": "Microsoft Application Insights Web Snippet", "main": "dist/es5/node/applicationinsights-web-snippet.js", "module": "dist-es5/applicationinsights-web-snippet.js", @@ -34,8 +34,8 @@ "devDependencies": { "@types/qunit": "^2.19.3", "@microsoft/ai-test-framework": "0.0.1", - "@microsoft/applicationinsights-web": "3.4.4", - "@microsoft/applicationinsights-core-js": "3.4.4", + "@microsoft/applicationinsights-web": "3.4.5", + "@microsoft/applicationinsights-core-js": "3.4.5", "@microsoft/applicationinsights-rollup-plugin-uglify3-js": "1.0.0", "@microsoft/applicationinsights-rollup-es5": "1.0.2", "@microsoft/dynamicproto-js": "^2.0.3", diff --git a/tools/chrome-debug-extension/package.json b/tools/chrome-debug-extension/package.json index d1117d89c..948a3ecb5 100644 --- a/tools/chrome-debug-extension/package.json +++ b/tools/chrome-debug-extension/package.json @@ -1,6 +1,6 @@ { "name": "@microsoft/applicationinsights-chrome-debug-extension", - "version": "0.9.4", + "version": "0.9.5", "description": "A chrome based browser extension that provides a real time view of what's happening in Application Insights including what telemetry is being logged by the web application", "homepage": "https://github.com/microsoft/ApplicationInsights-JS/tree/main/tools/chrome-debug-extension#readme", "keywords": [ @@ -43,7 +43,7 @@ "license": "MIT", "sideEffects": false, "dependencies": { - "@microsoft/applicationinsights-core-js": "3.4.4", + "@microsoft/applicationinsights-core-js": "3.4.5", "@microsoft/applicationinsights-shims": "3.0.1", "@microsoft/dynamicproto-js": "^2.0.3", "@nevware21/ts-async": ">= 0.5.5 < 0.6.0", diff --git a/tools/config/package.json b/tools/config/package.json index 61e637f1a..0d5da45c7 100644 --- a/tools/config/package.json +++ b/tools/config/package.json @@ -1,7 +1,7 @@ { "name": "applicationinsights-web-config", "description": "Application Insights JavaScript SDK - Web Config for CfgSync Plugin", - "version": "1.1.4", + "version": "1.1.5", "copyright": "(c) Microsoft and contributors. All rights reserved.", "author": "Microsoft Application Insights Team", "repository": { diff --git a/version.json b/version.json index 4838de0d7..65859b668 100644 --- a/version.json +++ b/version.json @@ -1,112 +1,112 @@ { "description": "The release value identifies the base version that will be applied via the tools/release-tools/setVersion.js", "usage": "When creating a new release you should update this value directly or via the eg. 'npm run setVersion -- 3.2.0' or 'npm run setVersion -- -patch' or 'npm run setVersion -- -minor'", - "release": "3.4.4", + "release": "3.4.5", "next": "patch", "pkgs": { "@microsoft/applicationinsights-web": { "package": "package.json", - "release": "3.4.4" + "release": "3.4.5" }, "@microsoft/applicationinsights-web-basic": { "package": "AISKULight/package.json", - "release": "3.4.4" + "release": "3.4.5" }, "@microsoft/applicationinsights-channel-js": { "package": "channels/applicationinsights-channel-js/package.json", - "release": "3.4.4" + "release": "3.4.5" }, "@microsoft/applicationinsights-analytics-js": { "package": "extensions/applicationinsights-analytics-js/package.json", - "release": "3.4.4" + "release": "3.4.5" }, "@microsoft/applicationinsights-clickanalytics-js": { "package": "extensions/applicationinsights-clickanalytics-js/package.json", - "release": "3.4.4" + "release": "3.4.5" }, "@microsoft/applicationinsights-osplugin-js": { "package": "extensions/applicationinsights-osplugin-js/package.json", - "release": "3.4.4" + "release": "3.4.5" }, "@microsoft/applicationinsights-debugplugin-js": { "package": "extensions/applicationinsights-debugplugin-js/package.json", - "release": "3.4.4" + "release": "3.4.5" }, "@microsoft/applicationinsights-dependencies-js": { "package": "extensions/applicationinsights-dependencies-js/package.json", - "release": "3.4.4" + "release": "3.4.5" }, "@microsoft/applicationinsights-perfmarkmeasure-js": { "package": "extensions/applicationinsights-perfmarkmeasure-js/package.json", - "release": "3.4.4" + "release": "3.4.5" }, "@microsoft/applicationinsights-properties-js": { "package": "extensions/applicationinsights-properties-js/package.json", - "release": "3.4.4" + "release": "3.4.5" }, "@microsoft/applicationinsights-common": { "package": "shared/AppInsightsCommon/package.json", - "release": "3.4.4" + "release": "3.4.5" }, "@microsoft/applicationinsights-core-js": { "package": "shared/AppInsightsCore/package.json", - "release": "3.4.4" + "release": "3.4.5" }, "@microsoft/applicationinsights-offlinechannel-js": { "package": "channels/offline-channel-js/package.json", - "release": "0.4.4" + "release": "0.4.5" }, "@microsoft/applicationinsights-chrome-debug-extension": { "package": "tools/chrome-debug-extension/package.json", - "release": "0.9.4" + "release": "0.9.5" }, "applicationinsights-web-config": { "package": "tools/config/package.json", - "release": "1.1.4" + "release": "1.1.5" }, "@microsoft/applicationinsights-example-aisku": { "package": "examples/AISKU/package.json", - "release": "3.4.4" + "release": "3.4.5" }, "@microsoft/applicationinsights-example-dependencies": { "package": "examples/dependency/package.json", - "release": "3.4.4" + "release": "3.4.5" }, "@microsoft/applicationinsights-example-shared-worker": { "package": "examples/shared-worker/package.json", - "release": "3.4.4" + "release": "3.4.5" }, "@microsoft/applicationinsights-teechannel-js": { "package": "channels/tee-channel-js/package.json", - "release": "3.4.4" + "release": "3.4.5" }, "@microsoft/applicationinsights-test-module-type-check": { "package": "AISKU/Tests/es6-module-type-check/package.json", - "release": "3.4.4" + "release": "3.4.5" }, "@microsoft/applicationinsights-cfgsync-js": { "package": "extensions/applicationinsights-cfgsync-js/package.json", - "release": "3.4.4" + "release": "3.4.5" }, "@microsoft/applicationinsights-example-cfgsync": { "package": "examples/cfgSync/package.json", - "release": "3.4.4" + "release": "3.4.5" }, "@microsoft/1ds-post-js": { "package": "channels/1ds-post-js/package.json", - "release": "4.4.4" + "release": "4.4.5" }, "@microsoft/1ds-core-js": { "package": "shared/1ds-core-js/package.json", - "release": "4.4.4" + "release": "4.4.5" }, "@microsoft/applicationinsights-web-snippet": { "package": "tools/applicationinsights-web-snippet/package.json", - "release": "1.3.4" + "release": "1.3.5" }, "@microsoft/applicationinsights-example-startspan": { "package": "examples/startSpan/package.json", - "release": "3.4.4" + "release": "3.4.5" } } } From 3281fb7c60a19615de89ffbf82a03506cdf7cc5c Mon Sep 17 00:00:00 2001 From: Jackson Weber Date: Mon, 5 Oct 2026 15:56:23 -0700 Subject: [PATCH 2/2] Fix SDK Stats access after sender unload Guard the sender core before reading stats configuration and cover delayed XHR responses after unload. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> --- RELEASES.md | 1 + .../Tests/Unit/src/InternalSdkStats.tests.ts | 44 +++++++++++++++++-- .../src/Sender.ts | 25 ++++++----- 3 files changed, 56 insertions(+), 14 deletions(-) diff --git a/RELEASES.md b/RELEASES.md index f71e56c85..c496ed72a 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -13,6 +13,7 @@ This release enables internal SDK network statistics and routes them to a dedica - **Internal SDK Stats**: The full SDK now records request successes, failures, retries, throttling, and request duration. Counters are persisted in session storage by customer instrumentation key and endpoint, with a default collection interval of one hour (`stats.shrtInt`, in seconds). - **Dedicated Ingestion and Dynamic Configuration**: Internal SDK Stats use a separate core and sender, rather than the customer's telemetry pipeline. Sending requires `stats.cfgUrl`, `stats.iKey`, and an enabled remote configuration that supplies the destination host. EU customer endpoints use the EU-prefixed configuration host. Configuration and sampling can be updated at runtime, and counters are retained while remote configuration is unavailable. - **Feature Throttling**: Added `ThrottleMgr.useFeature()` and string-keyed `throttleMgrCfg` entries for feature operations. Internal SDK Stats have a dedicated daily throttle, separate from internal diagnostic messages. Throttle sampling now honors a zero rate, interval rules are evaluated per configuration, and long-lived instances can send again on the next eligible UTC day. +- **Sender Unload Reliability**: Late network responses no longer access the cleared core configuration when looking up internal SDK Stats after unload. ### Potential behavioral changes diff --git a/channels/applicationinsights-channel-js/Tests/Unit/src/InternalSdkStats.tests.ts b/channels/applicationinsights-channel-js/Tests/Unit/src/InternalSdkStats.tests.ts index c6087cd4b..78bd8dd09 100644 --- a/channels/applicationinsights-channel-js/Tests/Unit/src/InternalSdkStats.tests.ts +++ b/channels/applicationinsights-channel-js/Tests/Unit/src/InternalSdkStats.tests.ts @@ -1,12 +1,12 @@ import { AITestClass, Assert, PollingAssert } from "@microsoft/ai-test-framework"; import { AppInsightsCore, createStatsMgr, FeatureOptInMode, IAppInsightsCore, IConfiguration, IInternalSdkStatsState, - IStatsMgr, ITelemetryItem, TransportType + isBeaconsSupported, IStatsMgr, ITelemetryItem, TransportType } from "@microsoft/applicationinsights-core-js"; -import { Sender } from "../../../src/Sender"; +import { objDefine } from "@nevware21/ts-utils"; import { SinonSpy } from "sinon"; +import { Sender } from "../../../src/Sender"; import { ISenderConfig } from "../../../types/applicationinsights-channel-js"; -import { isBeaconsSupported } from "@microsoft/applicationinsights-core-js"; const STATS_TEST_CFG_URL = "https://tst-data.stats.monitor.azure.com/cfg/v1.json"; const STATS_TEST_HOST = "tst-data.stats.monitor.azure.com"; @@ -243,6 +243,44 @@ export class InternalSdkStatsTests extends AITestClass { }); + this.testCase({ + name: "SDK Stats ignores pending XHR responses after core unload", + useFakeTimers: true, + useFakeServer: true, + fakeServerAutoRespond: false, + test: () => { + const config = this.createSenderConfig(TransportType.Xhr); + const { core, sender } = this.initializeCoreAndSender(config, "000e0000-e000-0000-a000-000000000000"); + const getStatsSpy = this.sandbox.spy(core, "getSdkStats"); + const successSpy = this.sandbox.spy(sender, "_onSuccess"); + const telemetryItem: ITelemetryItem = { + name: "pending item", + baseType: "EventData", + baseData: { name: "pending item" } + }; + + this.processTelemetryAndFlush(sender, telemetryItem); + this.processTelemetryAndFlush(sender, telemetryItem); + const requests = this.activeXhrRequests; + Assert.equal(2, requests.length, "Two XHR requests should be pending"); + for (let lp = 0; lp < requests.length; lp++) { + objDefine(requests[lp], "responseURL", { v: config.endpointUrl }); + } + + sender.pause(); + sender._buffer.clear(); + core.unload(false); + Assert.equal(null, sender.core, "The sender core should be cleared during unload"); + + // The first late response restores the endpoint, so the second reaches the SDK Stats lookup. + requests[0].respond(200, {}, ""); + requests[1].respond(200, {}, ""); + Assert.equal(2, successSpy.callCount, "Both late responses should complete without throwing"); + Assert.equal(0, getStatsSpy.callCount, "Late responses should not access the unloaded stats manager"); + Assert.equal(0, this.internalSdkStatsCountSpy.callCount, "Late responses should not record SDK Stats"); + } + }); + this.testCase({ name: "SDK Stats increments success count for xhr sender", useFakeTimers: true, diff --git a/channels/applicationinsights-channel-js/src/Sender.ts b/channels/applicationinsights-channel-js/src/Sender.ts index defda7bec..5adc6bcea 100644 --- a/channels/applicationinsights-channel-js/src/Sender.ts +++ b/channels/applicationinsights-channel-js/src/Sender.ts @@ -675,19 +675,22 @@ export class Sender extends BaseTelemetryPlugin implements IChannelControls { } function _getSdkStats() { - let statsCfg = _self.core.config.stats; - let snp = statsCfg && statsCfg.snp; - let internalSdkStatsConfig: IInternalSdkStatsState = { - cKey: _self._senderConfig.instrumentationKey, - endpoint: _endpointUrl, - sdkVer: "javascript:" + EnvelopeCreator.Version + (snp ? ":snp" + snp : "") - }; - let core = _self.core; - // During page unload the core may have been cleared and some async events may not have been sent yet - // resulting in the core being null. In this case we don't want to create a SDK Stats instance - return core && core.getSdkStats ? core.getSdkStats(internalSdkStatsConfig) : null; + // Async send responses can arrive after teardown has cleared the core. + if (core && core.getSdkStats) { + let statsCfg = core.config.stats; + let snp = statsCfg && statsCfg.snp; + let internalSdkStatsConfig: IInternalSdkStatsState = { + cKey: _self._senderConfig.instrumentationKey, + endpoint: _endpointUrl, + sdkVer: "javascript:" + EnvelopeCreator.Version + (snp ? ":snp" + snp : "") + }; + + return core.getSdkStats(internalSdkStatsConfig); + } + + return null; } /**