Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions AISKU/Tests/Unit/src/AISKUSize.Tests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ function _checkSize(checkType: string, maxSize: number, size: number, isNightly:
}

export class AISKUSizeCheck extends AITestClass {
private readonly MAX_RAW_SIZE = 145;
private readonly MAX_BUNDLE_SIZE = 145;
private readonly MAX_RAW_SIZE = 146;
private readonly MAX_BUNDLE_SIZE = 146;
private readonly MAX_RAW_DEFLATE_SIZE = 58;
private readonly MAX_BUNDLE_DEFLATE_SIZE = 58;
private readonly rawFilePath = "../dist/es5/applicationinsights-web.min.js";
Expand Down
4 changes: 2 additions & 2 deletions AISKULight/Tests/Unit/src/AISKULightSize.Tests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ function _checkSize(checkType: string, maxSize: number, size: number, isNightly:
}

export class AISKULightSizeCheck extends AITestClass {
private readonly MAX_RAW_SIZE = 91;
private readonly MAX_BUNDLE_SIZE = 91;
private readonly MAX_RAW_SIZE = 92;
private readonly MAX_BUNDLE_SIZE = 92;
private readonly MAX_RAW_DEFLATE_SIZE = 38;
private readonly MAX_BUNDLE_DEFLATE_SIZE = 38;
private readonly rawFilePath = "../dist/es5/applicationinsights-web-basic.min.js";
Expand Down
2 changes: 1 addition & 1 deletion channels/1ds-post-js/src/HttpManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -774,7 +774,7 @@ export class HttpManager {

// Make sure we have a payload object
thePayload = thePayload || _serializer.createPayload(retryCount, isTeardown, isSynchronous, isReducedPayload, sendReason, sendType);

// Add the batch to the current payload
if (!_serializer.appendPayload(thePayload, theBatch, maxEventsPerBatch)) {
// Entire batch was not added so send the payload and retry adding this batch
Expand Down
3 changes: 2 additions & 1 deletion channels/1ds-post-js/src/Serializer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ import { mathMin, strSubstr } from "@nevware21/ts-utils";
*/
const _MAX_STRING_JOINS = 20;

const RequestSizeLimitBytes = 3984588; // approx 3.8 Mb
// Max Size set by One Collector: https://msazure.visualstudio.com/OneDsCollector/_git/Collector?path=/Services/Azure/CollectorWorkerRoleAzure/ServiceConfiguration.Cloud.cscfg
const RequestSizeLimitBytes = 3145728; // approx 3.15 Mb
const BeaconRequestSizeLimitBytes = 65000; // approx 64kb (the current Edge, Firefox and Chrome max limit)
const MaxRecordSize = 2000000; // approx 2 Mb
const MaxBeaconRecordSize = mathMin(MaxRecordSize, BeaconRequestSizeLimitBytes);
Expand Down
258 changes: 140 additions & 118 deletions common/config/rush/npm-shrinkwrap.json

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ function _checkSize(checkType: string, maxSize: number, size: number, isNightly:
}

export class AnalyticsExtensionSizeCheck extends AITestClass {
private readonly MAX_DEFLATE_SIZE = 24;
private readonly MAX_DEFLATE_SIZE = 25;
private readonly rawFilePath = "../dist/es5/applicationinsights-analytics-js.min.js";
private readonly prodFilePaath = "../browser/es5/applicationinsights-analytics-js.min.js"

Expand Down
2 changes: 1 addition & 1 deletion shared/1ds-core-js/test/Unit/src/FileSizeCheckTest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ function _checkSize(checkType: string, maxSize: number, size: number, isNightly:
}

export class FileSizeCheckTest extends AITestClass {
private readonly MAX_BUNDLE_SIZE = 68;
private readonly MAX_BUNDLE_SIZE = 69;
private readonly MAX_DEFLATE_SIZE = 29;
private readonly bundleFilePath = "../bundle/es5/ms.core.min.js";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ function _checkSize(checkType: string, maxSize: number, size: number, isNightly:
}

export class AppInsightsCoreSizeCheck extends AITestClass {
private readonly MAX_RAW_SIZE = 65;
private readonly MAX_BUNDLE_SIZE = 65;
private readonly MAX_RAW_SIZE = 67;
private readonly MAX_BUNDLE_SIZE = 67;
private readonly MAX_RAW_DEFLATE_SIZE = 28;
private readonly MAX_BUNDLE_DEFLATE_SIZE = 28;
private readonly rawFilePath = "../dist/es5/applicationinsights-core-js.min.js";
Expand Down
Loading