@microsoft/applicationinsights-properties-js 3.4.0-nightlybeta3.2602-27 → 3.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/browser/es5/{ai.props.3.4.0-nightlybeta3.2602-27.cjs.js → ai.props.3.4.1.cjs.js} +13 -11
- package/browser/es5/ai.props.3.4.1.cjs.js.map +1 -0
- package/browser/es5/ai.props.3.4.1.cjs.min.js +6 -0
- package/browser/es5/ai.props.3.4.1.cjs.min.js.map +1 -0
- package/browser/es5/{ai.props.3.4.0-nightlybeta3.2602-27.gbl.js → ai.props.3.4.1.gbl.js} +15 -13
- package/browser/es5/ai.props.3.4.1.gbl.js.map +1 -0
- package/browser/es5/ai.props.3.4.1.gbl.min.js +6 -0
- package/browser/es5/ai.props.3.4.1.gbl.min.js.map +1 -0
- package/browser/es5/ai.props.3.4.1.integrity.json +66 -0
- package/browser/es5/{ai.props.3.4.0-nightlybeta3.2602-27.js → ai.props.3.4.1.js} +15 -13
- package/browser/es5/ai.props.3.4.1.js.map +1 -0
- package/browser/es5/ai.props.3.4.1.min.js +6 -0
- package/browser/es5/ai.props.3.4.1.min.js.map +1 -0
- package/browser/es5/ai.props.3.cjs.js +12 -10
- package/browser/es5/ai.props.3.cjs.js.map +1 -1
- package/browser/es5/ai.props.3.cjs.min.js +2 -2
- package/browser/es5/ai.props.3.cjs.min.js.map +1 -1
- package/browser/es5/ai.props.3.gbl.js +14 -12
- package/browser/es5/ai.props.3.gbl.js.map +1 -1
- package/browser/es5/ai.props.3.gbl.min.js +2 -2
- package/browser/es5/ai.props.3.gbl.min.js.map +1 -1
- package/browser/es5/ai.props.3.integrity.json +25 -25
- package/browser/es5/ai.props.3.js +14 -12
- package/browser/es5/ai.props.3.js.map +1 -1
- package/browser/es5/ai.props.3.min.js +2 -2
- package/browser/es5/ai.props.3.min.js.map +1 -1
- package/dist/es5/applicationinsights-properties-js.js +12 -10
- package/dist/es5/applicationinsights-properties-js.js.map +1 -1
- package/dist/es5/applicationinsights-properties-js.min.js +2 -2
- package/dist/es5/applicationinsights-properties-js.min.js.map +1 -1
- package/dist-es5/Context/Application.js +1 -1
- package/dist-es5/Context/Device.js +1 -1
- package/dist-es5/Context/Internal.js +2 -2
- package/dist-es5/Context/Internal.js.map +1 -1
- package/dist-es5/Context/Location.js +1 -1
- package/dist-es5/Context/Session.js +1 -1
- package/dist-es5/Context/User.js +1 -1
- package/dist-es5/Interfaces/IPropTelemetryContext.js +1 -1
- package/dist-es5/Interfaces/IPropertiesConfig.js +1 -1
- package/dist-es5/PropertiesPlugin.js +1 -1
- package/dist-es5/TelemetryContext.js +1 -1
- package/dist-es5/__DynamicConstants.js +1 -1
- package/dist-es5/applicationinsights-properties-js.js +1 -1
- package/package.json +65 -68
- package/types/applicationinsights-properties-js.d.ts +1 -1
- package/types/applicationinsights-properties-js.namespaced.d.ts +113 -9
- package/browser/es5/ai.props.3.4.0-nightlybeta3.2602-27.cjs.js.map +0 -1
- package/browser/es5/ai.props.3.4.0-nightlybeta3.2602-27.cjs.min.js +0 -6
- package/browser/es5/ai.props.3.4.0-nightlybeta3.2602-27.cjs.min.js.map +0 -1
- package/browser/es5/ai.props.3.4.0-nightlybeta3.2602-27.gbl.js.map +0 -1
- package/browser/es5/ai.props.3.4.0-nightlybeta3.2602-27.gbl.min.js +0 -6
- package/browser/es5/ai.props.3.4.0-nightlybeta3.2602-27.gbl.min.js.map +0 -1
- package/browser/es5/ai.props.3.4.0-nightlybeta3.2602-27.integrity.json +0 -66
- package/browser/es5/ai.props.3.4.0-nightlybeta3.2602-27.js.map +0 -1
- package/browser/es5/ai.props.3.4.0-nightlybeta3.2602-27.min.js +0 -6
- package/browser/es5/ai.props.3.4.0-nightlybeta3.2602-27.min.js.map +0 -1
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Application Insights JavaScript SDK - Properties Plugin, 3.4.
|
|
2
|
+
* Application Insights JavaScript SDK - Properties Plugin, 3.4.1
|
|
3
3
|
* Copyright (c) Microsoft and contributors. All rights reserved.
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
import { onConfigChange } from "@microsoft/applicationinsights-core-js";
|
|
8
|
-
var Version = '3.4.
|
|
8
|
+
var Version = '3.4.1';
|
|
9
9
|
var Internal = /** @class */ (function () {
|
|
10
10
|
/**
|
|
11
11
|
* Constructs a new instance of the internal telemetry data class.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Internal.js.map","sources":["Internal.js"],"sourcesContent":["// Copyright (c) Microsoft Corporation. All rights reserved.\r\n// Licensed under the MIT License.\r\nimport { onConfigChange } from \"@microsoft/applicationinsights-core-js\";\r\nvar Version = '3.4.
|
|
1
|
+
{"version":3,"file":"Internal.js.map","sources":["Internal.js"],"sourcesContent":["// Copyright (c) Microsoft Corporation. All rights reserved.\r\n// Licensed under the MIT License.\r\nimport { onConfigChange } from \"@microsoft/applicationinsights-core-js\";\r\nvar Version = '3.4.1';\r\nvar Internal = /** @class */ (function () {\r\n /**\r\n * Constructs a new instance of the internal telemetry data class.\r\n */\r\n function Internal(config, unloadHookContainer) {\r\n var _this = this;\r\n var unloadHook = onConfigChange((config), function () {\r\n var prefix = config.sdkExtension;\r\n _this.sdkVersion = (prefix ? prefix + \"_\" : \"\") + \"javascript:\" + Version;\r\n });\r\n unloadHookContainer && unloadHookContainer.add(unloadHook);\r\n }\r\n return Internal;\r\n}());\r\nexport { Internal };\r\n//# sourceMappingURL=Internal.js.map"],"names":[],"mappings":";;;;AAA4D;AAC1B;AAClC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA"}
|
package/dist-es5/Context/User.js
CHANGED
package/package.json
CHANGED
|
@@ -1,68 +1,65 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@microsoft/applicationinsights-properties-js",
|
|
3
|
-
"version": "3.4.
|
|
4
|
-
"description": "Microsoft Application Insights properties (Part A) plugin",
|
|
5
|
-
"homepage": "https://github.com/microsoft/ApplicationInsights-JS#readme",
|
|
6
|
-
"author": "Microsoft Application Insights Team",
|
|
7
|
-
"main": "dist/es5/applicationinsights-properties-js.js",
|
|
8
|
-
"module": "dist-es5/applicationinsights-properties-js.js",
|
|
9
|
-
"types": "types/applicationinsights-properties-js.d.ts",
|
|
10
|
-
"sideEffects": false,
|
|
11
|
-
"repository": {
|
|
12
|
-
"type": "git",
|
|
13
|
-
"url": "https://github.com/microsoft/ApplicationInsights-JS/tree/main/extensions/applicationinsights-properties-js"
|
|
14
|
-
},
|
|
15
|
-
"scripts": {
|
|
16
|
-
"clean": "git clean -xdf",
|
|
17
|
-
"build": "npm run build:esm && npm run build:browser && npm run sri && npm run dtsgen",
|
|
18
|
-
"build:esm": "grunt properties",
|
|
19
|
-
"build:browser": "rollup -c rollup.config.js --bundleConfigAsCjs",
|
|
20
|
-
"rebuild": "npm run build",
|
|
21
|
-
"test": "grunt propertiestests",
|
|
22
|
-
"mintest": "grunt properties-mintests",
|
|
23
|
-
"lint": "tslint -p tsconfig.json",
|
|
24
|
-
"dtsgen": "api-extractor run --local && node ../../scripts/dtsgen.js \"Microsoft Application Insights properties plugin\"",
|
|
25
|
-
"sri": "node ../../tools/subResourceIntegrity/generateIntegrityFile.js",
|
|
26
|
-
"ai-min": "grunt properties-min",
|
|
27
|
-
"ai-restore": "grunt properties-restore",
|
|
28
|
-
"npm-pack": "npm pack",
|
|
29
|
-
"api-docs": "typedoc"
|
|
30
|
-
},
|
|
31
|
-
"devDependencies": {
|
|
32
|
-
"@microsoft/ai-test-framework": "0.0.1",
|
|
33
|
-
"@microsoft/applicationinsights-rollup-plugin-uglify3-js": "1.0.0",
|
|
34
|
-
"@microsoft/applicationinsights-rollup-es5": "1.0.2",
|
|
35
|
-
"@microsoft/api-extractor": "^7.40.0",
|
|
36
|
-
"typescript": "^4.9.3",
|
|
37
|
-
"tslib": "^2.0.0",
|
|
38
|
-
"grunt": "^1.6.1",
|
|
39
|
-
"grunt-cli": "^1.5.0",
|
|
40
|
-
"@nevware21/grunt-ts-plugin": "^0.5.1",
|
|
41
|
-
"@nevware21/grunt-eslint-ts": "^0.5.1",
|
|
42
|
-
"globby": "^11.0.0",
|
|
43
|
-
"magic-string": "^0.25.7",
|
|
44
|
-
"pako": "^2.0.3",
|
|
45
|
-
"@rollup/plugin-commonjs": "^24.0.0",
|
|
46
|
-
"@rollup/plugin-node-resolve": "^15.0.1",
|
|
47
|
-
"@rollup/plugin-replace": "^5.0.2",
|
|
48
|
-
"rollup": "^3.20.0",
|
|
49
|
-
"rollup-plugin-cleanup": "^3.2.1",
|
|
50
|
-
"rollup-plugin-sourcemaps": "^0.6.3",
|
|
51
|
-
"typedoc": "^0.26.6",
|
|
52
|
-
"qunit": "^2.11.2",
|
|
53
|
-
"sinon": "^7.3.1"
|
|
54
|
-
},
|
|
55
|
-
"peerDependencies": {
|
|
56
|
-
"tslib": ">= 1.0.0"
|
|
57
|
-
},
|
|
58
|
-
"dependencies": {
|
|
59
|
-
"@microsoft/dynamicproto-js": "^2.0.3",
|
|
60
|
-
"@microsoft/applicationinsights-shims": "3.0.1",
|
|
61
|
-
"@microsoft/applicationinsights-core-js": "3.4.
|
|
62
|
-
"@nevware21/ts-utils": ">= 0.12.6 < 2.x"
|
|
63
|
-
},
|
|
64
|
-
"license": "MIT"
|
|
65
|
-
|
|
66
|
-
"tag": "nightlybeta3"
|
|
67
|
-
}
|
|
68
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@microsoft/applicationinsights-properties-js",
|
|
3
|
+
"version": "3.4.1",
|
|
4
|
+
"description": "Microsoft Application Insights properties (Part A) plugin",
|
|
5
|
+
"homepage": "https://github.com/microsoft/ApplicationInsights-JS#readme",
|
|
6
|
+
"author": "Microsoft Application Insights Team",
|
|
7
|
+
"main": "dist/es5/applicationinsights-properties-js.js",
|
|
8
|
+
"module": "dist-es5/applicationinsights-properties-js.js",
|
|
9
|
+
"types": "types/applicationinsights-properties-js.d.ts",
|
|
10
|
+
"sideEffects": false,
|
|
11
|
+
"repository": {
|
|
12
|
+
"type": "git",
|
|
13
|
+
"url": "https://github.com/microsoft/ApplicationInsights-JS/tree/main/extensions/applicationinsights-properties-js"
|
|
14
|
+
},
|
|
15
|
+
"scripts": {
|
|
16
|
+
"clean": "git clean -xdf",
|
|
17
|
+
"build": "npm run build:esm && npm run build:browser && npm run sri && npm run dtsgen",
|
|
18
|
+
"build:esm": "grunt properties",
|
|
19
|
+
"build:browser": "rollup -c rollup.config.js --bundleConfigAsCjs",
|
|
20
|
+
"rebuild": "npm run build",
|
|
21
|
+
"test": "grunt propertiestests",
|
|
22
|
+
"mintest": "grunt properties-mintests",
|
|
23
|
+
"lint": "tslint -p tsconfig.json",
|
|
24
|
+
"dtsgen": "api-extractor run --local && node ../../scripts/dtsgen.js \"Microsoft Application Insights properties plugin\"",
|
|
25
|
+
"sri": "node ../../tools/subResourceIntegrity/generateIntegrityFile.js",
|
|
26
|
+
"ai-min": "grunt properties-min",
|
|
27
|
+
"ai-restore": "grunt properties-restore",
|
|
28
|
+
"npm-pack": "npm pack",
|
|
29
|
+
"api-docs": "typedoc"
|
|
30
|
+
},
|
|
31
|
+
"devDependencies": {
|
|
32
|
+
"@microsoft/ai-test-framework": "0.0.1",
|
|
33
|
+
"@microsoft/applicationinsights-rollup-plugin-uglify3-js": "1.0.0",
|
|
34
|
+
"@microsoft/applicationinsights-rollup-es5": "1.0.2",
|
|
35
|
+
"@microsoft/api-extractor": "^7.40.0",
|
|
36
|
+
"typescript": "^4.9.3",
|
|
37
|
+
"tslib": "^2.0.0",
|
|
38
|
+
"grunt": "^1.6.1",
|
|
39
|
+
"grunt-cli": "^1.5.0",
|
|
40
|
+
"@nevware21/grunt-ts-plugin": "^0.5.1",
|
|
41
|
+
"@nevware21/grunt-eslint-ts": "^0.5.1",
|
|
42
|
+
"globby": "^11.0.0",
|
|
43
|
+
"magic-string": "^0.25.7",
|
|
44
|
+
"pako": "^2.0.3",
|
|
45
|
+
"@rollup/plugin-commonjs": "^24.0.0",
|
|
46
|
+
"@rollup/plugin-node-resolve": "^15.0.1",
|
|
47
|
+
"@rollup/plugin-replace": "^5.0.2",
|
|
48
|
+
"rollup": "^3.20.0",
|
|
49
|
+
"rollup-plugin-cleanup": "^3.2.1",
|
|
50
|
+
"rollup-plugin-sourcemaps": "^0.6.3",
|
|
51
|
+
"typedoc": "^0.26.6",
|
|
52
|
+
"qunit": "^2.11.2",
|
|
53
|
+
"sinon": "^7.3.1"
|
|
54
|
+
},
|
|
55
|
+
"peerDependencies": {
|
|
56
|
+
"tslib": ">= 1.0.0"
|
|
57
|
+
},
|
|
58
|
+
"dependencies": {
|
|
59
|
+
"@microsoft/dynamicproto-js": "^2.0.3",
|
|
60
|
+
"@microsoft/applicationinsights-shims": "3.0.1",
|
|
61
|
+
"@microsoft/applicationinsights-core-js": "3.4.1",
|
|
62
|
+
"@nevware21/ts-utils": ">= 0.12.6 < 2.x"
|
|
63
|
+
},
|
|
64
|
+
"license": "MIT"
|
|
65
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Microsoft Application Insights properties plugin, 3.4.
|
|
2
|
+
* Microsoft Application Insights properties plugin, 3.4.1
|
|
3
3
|
* Copyright (c) Microsoft and contributors. All rights reserved.
|
|
4
4
|
*
|
|
5
5
|
* Microsoft Application Insights Team
|
|
@@ -461,6 +461,38 @@ declare namespace ApplicationInsights {
|
|
|
461
461
|
All = 3
|
|
462
462
|
}
|
|
463
463
|
|
|
464
|
+
/**
|
|
465
|
+
* Controls how the user can configure which parts of the URL should be redacted. Example, certain query parameters, username and password, etc.
|
|
466
|
+
*/
|
|
467
|
+
const enum eUrlRedactionOptions {
|
|
468
|
+
/**
|
|
469
|
+
* The default value, will redact the username and password as well as the default set of query parameters
|
|
470
|
+
*/
|
|
471
|
+
true = 1,
|
|
472
|
+
/**
|
|
473
|
+
* Does not redact username and password or any query parameters, the URL will be left as is. Note: this is not recommended as it may lead
|
|
474
|
+
* to sensitive data being sent in clear text.
|
|
475
|
+
*/
|
|
476
|
+
false = 2,
|
|
477
|
+
/**
|
|
478
|
+
* This will append any additional queryParams that the user has provided through redactQueryParams config to the default set i.e to
|
|
479
|
+
* @defaultValue ["sig", "Signature", "AWSAccessKeyId", "X-Goog-Signature"].
|
|
480
|
+
*/
|
|
481
|
+
appendToDefault = 3,
|
|
482
|
+
/**
|
|
483
|
+
* This will replace the default set of query parameters to redact with the query parameters defined in redactQueryParams config, if provided by the user.
|
|
484
|
+
*/
|
|
485
|
+
replaceDefault = 4,
|
|
486
|
+
/**
|
|
487
|
+
* This will redact username and password in the URL but will not redact any query parameters, even those in the default set.
|
|
488
|
+
*/
|
|
489
|
+
usernamePasswordOnly = 5,
|
|
490
|
+
/**
|
|
491
|
+
* This will only redact the query parameter in the default set of query parameters to redact. It will not redact username and password.
|
|
492
|
+
*/
|
|
493
|
+
queryParamsOnly = 6
|
|
494
|
+
}
|
|
495
|
+
|
|
464
496
|
const enum FeatureOptInMode {
|
|
465
497
|
/**
|
|
466
498
|
* not set, completely depends on cdn cfg
|
|
@@ -1513,10 +1545,10 @@ declare namespace ApplicationInsights {
|
|
|
1513
1545
|
*/
|
|
1514
1546
|
expCfg?: IExceptionConfig;
|
|
1515
1547
|
/**
|
|
1516
|
-
* [Optional] A flag to enable or disable
|
|
1548
|
+
* [Optional] A flag to enable or disable redaction for query parameters and username/password.
|
|
1517
1549
|
* @defaultValue true
|
|
1518
1550
|
*/
|
|
1519
|
-
redactUrls?:
|
|
1551
|
+
redactUrls?: UrlRedactionOptions;
|
|
1520
1552
|
/**
|
|
1521
1553
|
* [Optional] Additional query parameters to redact beyond the default set.
|
|
1522
1554
|
* Use this to specify custom parameters that contain sensitive information.
|
|
@@ -4155,24 +4187,92 @@ declare namespace ApplicationInsights {
|
|
|
4155
4187
|
|
|
4156
4188
|
/**
|
|
4157
4189
|
* Interface for telemetry trace context.
|
|
4158
|
-
* @deprecated Use
|
|
4159
|
-
*
|
|
4190
|
+
* @deprecated Use {@link ITraceHost.getTraceCtx | appInsights.getTraceCtx()} or {@link ITraceHost.getTraceCtx | appInsights.core.getTraceCtx()} instead to get / set the
|
|
4191
|
+
* current trace context. This returns an {@link IDistributedTraceContext} which supports distributed tracing and
|
|
4192
|
+
* allows the core to manage the trace context.
|
|
4193
|
+
*
|
|
4194
|
+
* To replace the entire trace context, use {@link ITraceHost.setTraceCtx | appInsights.core.setTraceCtx()}.
|
|
4195
|
+
*
|
|
4196
|
+
* @see {@link https://microsoft.github.io/ApplicationInsights-JS/webSdk/applicationinsights-core-js/interfaces/IDistributedTraceContext.html | IDistributedTraceContext Typedoc}
|
|
4197
|
+
* @see {@link https://microsoft.github.io/ApplicationInsights-JS/webSdk/applicationinsights-core-js/interfaces/ITraceHost.html#getTraceCtx | getTraceCtx Typedoc}
|
|
4160
4198
|
*/
|
|
4161
4199
|
interface ITelemetryTrace {
|
|
4162
4200
|
/**
|
|
4163
|
-
*
|
|
4201
|
+
* The trace ID for this telemetry context. A 32 lowercase hex character string.
|
|
4202
|
+
* @deprecated Use {@link IDistributedTraceContext.traceId} instead via `appInsights.getTraceCtx().traceId`.
|
|
4203
|
+
*
|
|
4204
|
+
* @example
|
|
4205
|
+
* ```typescript
|
|
4206
|
+
* // Old (deprecated)
|
|
4207
|
+
* let traceId = context.telemetryTrace.traceID;
|
|
4208
|
+
*
|
|
4209
|
+
* // New (recommended) - using the standard SKU (AISKU)
|
|
4210
|
+
* let traceCtx = appInsights.getTraceCtx();
|
|
4211
|
+
* let traceId = traceCtx.traceId;
|
|
4212
|
+
* traceCtx.traceId = "00000000000000000000000000000001";
|
|
4213
|
+
*
|
|
4214
|
+
* // Or when using the core directly
|
|
4215
|
+
* let traceCtx = appInsights.core.getTraceCtx();
|
|
4216
|
+
* ```
|
|
4164
4217
|
*/
|
|
4165
4218
|
traceID?: string;
|
|
4166
4219
|
/**
|
|
4167
|
-
*
|
|
4220
|
+
* The parent span ID. A 16 lowercase hex character string.
|
|
4221
|
+
* @deprecated Use {@link IDistributedTraceContext.spanId} instead via `appInsights.getTraceCtx().spanId`.
|
|
4222
|
+
*
|
|
4223
|
+
* @example
|
|
4224
|
+
* ```typescript
|
|
4225
|
+
* // Old (deprecated)
|
|
4226
|
+
* let parentId = context.telemetryTrace.parentID;
|
|
4227
|
+
*
|
|
4228
|
+
* // New (recommended) - using the standard SKU (AISKU)
|
|
4229
|
+
* let traceCtx = appInsights.getTraceCtx();
|
|
4230
|
+
* let spanId = traceCtx.spanId;
|
|
4231
|
+
* traceCtx.spanId = "0000000000000001";
|
|
4232
|
+
*
|
|
4233
|
+
* // Or when using the core directly
|
|
4234
|
+
* let traceCtx = appInsights.core.getTraceCtx();
|
|
4235
|
+
* ```
|
|
4168
4236
|
*/
|
|
4169
4237
|
parentID?: string;
|
|
4170
4238
|
/**
|
|
4171
|
-
* An integer representation of the W3C TraceContext trace-flags.
|
|
4239
|
+
* An integer representation of the W3C TraceContext trace-flags.
|
|
4240
|
+
* @deprecated Use {@link IDistributedTraceContext.traceFlags} instead via `appInsights.getTraceCtx().traceFlags`.
|
|
4241
|
+
*
|
|
4242
|
+
* @example
|
|
4243
|
+
* ```typescript
|
|
4244
|
+
* // Old (deprecated)
|
|
4245
|
+
* let flags = context.telemetryTrace.traceFlags;
|
|
4246
|
+
*
|
|
4247
|
+
* // New (recommended) - using the standard SKU (AISKU)
|
|
4248
|
+
* let traceCtx = appInsights.getTraceCtx();
|
|
4249
|
+
* let flags = traceCtx.traceFlags;
|
|
4250
|
+
* traceCtx.traceFlags = 1; // sampled
|
|
4251
|
+
*
|
|
4252
|
+
* // Or when using the core directly
|
|
4253
|
+
* let traceCtx = appInsights.core.getTraceCtx();
|
|
4254
|
+
* ```
|
|
4255
|
+
*
|
|
4256
|
+
* @see {@link https://www.w3.org/TR/trace-context/#trace-flags | W3C TraceContext trace-flags}
|
|
4172
4257
|
*/
|
|
4173
4258
|
traceFlags?: number;
|
|
4174
4259
|
/**
|
|
4175
|
-
*
|
|
4260
|
+
* The operation/page name for this trace context.
|
|
4261
|
+
* @deprecated Use {@link IDistributedTraceContext.pageName} instead via `appInsights.getTraceCtx().pageName`.
|
|
4262
|
+
*
|
|
4263
|
+
* @example
|
|
4264
|
+
* ```typescript
|
|
4265
|
+
* // Old (deprecated)
|
|
4266
|
+
* let name = context.telemetryTrace.name;
|
|
4267
|
+
*
|
|
4268
|
+
* // New (recommended) - using the standard SKU (AISKU)
|
|
4269
|
+
* let traceCtx = appInsights.getTraceCtx();
|
|
4270
|
+
* let pageName = traceCtx.pageName;
|
|
4271
|
+
* traceCtx.pageName = "my-page";
|
|
4272
|
+
*
|
|
4273
|
+
* // Or when using the core directly
|
|
4274
|
+
* let traceCtx = appInsights.core.getTraceCtx();
|
|
4275
|
+
* ```
|
|
4176
4276
|
*/
|
|
4177
4277
|
name?: string;
|
|
4178
4278
|
}
|
|
@@ -5011,6 +5111,10 @@ declare namespace ApplicationInsights {
|
|
|
5011
5111
|
|
|
5012
5112
|
type UnloadHandler = (itemCtx: IProcessTelemetryUnloadContext, unloadState: ITelemetryUnloadState) => void;
|
|
5013
5113
|
|
|
5114
|
+
const UrlRedactionOptions: EnumValue<typeof eUrlRedactionOptions>;
|
|
5115
|
+
|
|
5116
|
+
type UrlRedactionOptions = boolean | eUrlRedactionOptions;
|
|
5117
|
+
|
|
5014
5118
|
type WatcherFunction<T = IConfiguration> = (details: IWatchDetails<T>) => void;
|
|
5015
5119
|
|
|
5016
5120
|
}
|