@microsoft/applicationinsights-web-basic 2.8.4-nightly.2205-08 → 2.8.4
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/aib.2.8.4.integrity.json +26 -0
- package/browser/{aib.2.8.4-nightly.2205-08.js → aib.2.8.4.js} +930 -862
- package/browser/aib.2.8.4.js.map +1 -0
- package/browser/aib.2.8.4.min.js +6 -0
- package/browser/aib.2.8.4.min.js.map +1 -0
- package/browser/aib.2.js +929 -861
- package/browser/aib.2.js.map +1 -1
- package/browser/aib.2.min.js +2 -2
- package/browser/aib.2.min.js.map +1 -1
- package/dist/applicationinsights-web-basic.api.json +101 -1
- package/dist/applicationinsights-web-basic.api.md +3 -0
- package/dist/applicationinsights-web-basic.d.ts +63 -1
- package/dist/applicationinsights-web-basic.js +929 -861
- package/dist/applicationinsights-web-basic.js.map +1 -1
- package/dist/applicationinsights-web-basic.min.js +2 -2
- package/dist/applicationinsights-web-basic.min.js.map +1 -1
- package/dist/applicationinsights-web-basic.rollup.d.ts +63 -1
- package/dist-esm/index.js +1 -1
- package/package.json +59 -62
- package/types/tsdoc-metadata.json +1 -1
- package/browser/aib.2.8.4-nightly.2205-08.integrity.json +0 -26
- package/browser/aib.2.8.4-nightly.2205-08.js.map +0 -1
- package/browser/aib.2.8.4-nightly.2205-08.min.js +0 -6
- package/browser/aib.2.8.4-nightly.2205-08.min.js.map +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"metadata": {
|
|
3
3
|
"toolPackage": "@microsoft/api-extractor",
|
|
4
|
-
"toolVersion": "7.24.
|
|
4
|
+
"toolVersion": "7.24.2",
|
|
5
5
|
"schemaVersion": 1005,
|
|
6
6
|
"oldestForwardsCompatibleVersion": 1001,
|
|
7
7
|
"tsdocConfig": {
|
|
@@ -3716,6 +3716,56 @@
|
|
|
3716
3716
|
"parameters": [],
|
|
3717
3717
|
"name": "getProcessTelContext"
|
|
3718
3718
|
},
|
|
3719
|
+
{
|
|
3720
|
+
"kind": "MethodSignature",
|
|
3721
|
+
"canonicalReference": "@microsoft/applicationinsights-web-basic!IAppInsightsCore#getTraceCtx:member(1)",
|
|
3722
|
+
"docComment": "/**\n * Gets the current distributed trace context for this instance if available\n *\n * @param createNew - Optional flag to create a new instance if one doesn't currently exist, defaults to true\n */\n",
|
|
3723
|
+
"excerptTokens": [
|
|
3724
|
+
{
|
|
3725
|
+
"kind": "Content",
|
|
3726
|
+
"text": "getTraceCtx(createNew?: "
|
|
3727
|
+
},
|
|
3728
|
+
{
|
|
3729
|
+
"kind": "Content",
|
|
3730
|
+
"text": "boolean"
|
|
3731
|
+
},
|
|
3732
|
+
{
|
|
3733
|
+
"kind": "Content",
|
|
3734
|
+
"text": "): "
|
|
3735
|
+
},
|
|
3736
|
+
{
|
|
3737
|
+
"kind": "Reference",
|
|
3738
|
+
"text": "IDistributedTraceContext",
|
|
3739
|
+
"canonicalReference": "@microsoft/applicationinsights-web-basic!IDistributedTraceContext:interface"
|
|
3740
|
+
},
|
|
3741
|
+
{
|
|
3742
|
+
"kind": "Content",
|
|
3743
|
+
"text": " | null"
|
|
3744
|
+
},
|
|
3745
|
+
{
|
|
3746
|
+
"kind": "Content",
|
|
3747
|
+
"text": ";"
|
|
3748
|
+
}
|
|
3749
|
+
],
|
|
3750
|
+
"isOptional": false,
|
|
3751
|
+
"returnTypeTokenRange": {
|
|
3752
|
+
"startIndex": 3,
|
|
3753
|
+
"endIndex": 5
|
|
3754
|
+
},
|
|
3755
|
+
"releaseTag": "Public",
|
|
3756
|
+
"overloadIndex": 1,
|
|
3757
|
+
"parameters": [
|
|
3758
|
+
{
|
|
3759
|
+
"parameterName": "createNew",
|
|
3760
|
+
"parameterTypeTokenRange": {
|
|
3761
|
+
"startIndex": 1,
|
|
3762
|
+
"endIndex": 2
|
|
3763
|
+
},
|
|
3764
|
+
"isOptional": true
|
|
3765
|
+
}
|
|
3766
|
+
],
|
|
3767
|
+
"name": "getTraceCtx"
|
|
3768
|
+
},
|
|
3719
3769
|
{
|
|
3720
3770
|
"kind": "MethodSignature",
|
|
3721
3771
|
"canonicalReference": "@microsoft/applicationinsights-web-basic!IAppInsightsCore#getTransmissionControls:member(1)",
|
|
@@ -4040,6 +4090,56 @@
|
|
|
4040
4090
|
],
|
|
4041
4091
|
"name": "setCookieMgr"
|
|
4042
4092
|
},
|
|
4093
|
+
{
|
|
4094
|
+
"kind": "MethodSignature",
|
|
4095
|
+
"canonicalReference": "@microsoft/applicationinsights-web-basic!IAppInsightsCore#setTraceCtx:member(1)",
|
|
4096
|
+
"docComment": "/**\n * Sets the current distributed trace context for this instance if available\n */\n",
|
|
4097
|
+
"excerptTokens": [
|
|
4098
|
+
{
|
|
4099
|
+
"kind": "Content",
|
|
4100
|
+
"text": "setTraceCtx(newTraceCtx: "
|
|
4101
|
+
},
|
|
4102
|
+
{
|
|
4103
|
+
"kind": "Reference",
|
|
4104
|
+
"text": "IDistributedTraceContext",
|
|
4105
|
+
"canonicalReference": "@microsoft/applicationinsights-web-basic!IDistributedTraceContext:interface"
|
|
4106
|
+
},
|
|
4107
|
+
{
|
|
4108
|
+
"kind": "Content",
|
|
4109
|
+
"text": " | null | undefined"
|
|
4110
|
+
},
|
|
4111
|
+
{
|
|
4112
|
+
"kind": "Content",
|
|
4113
|
+
"text": "): "
|
|
4114
|
+
},
|
|
4115
|
+
{
|
|
4116
|
+
"kind": "Content",
|
|
4117
|
+
"text": "void"
|
|
4118
|
+
},
|
|
4119
|
+
{
|
|
4120
|
+
"kind": "Content",
|
|
4121
|
+
"text": ";"
|
|
4122
|
+
}
|
|
4123
|
+
],
|
|
4124
|
+
"isOptional": false,
|
|
4125
|
+
"returnTypeTokenRange": {
|
|
4126
|
+
"startIndex": 4,
|
|
4127
|
+
"endIndex": 5
|
|
4128
|
+
},
|
|
4129
|
+
"releaseTag": "Public",
|
|
4130
|
+
"overloadIndex": 1,
|
|
4131
|
+
"parameters": [
|
|
4132
|
+
{
|
|
4133
|
+
"parameterName": "newTraceCtx",
|
|
4134
|
+
"parameterTypeTokenRange": {
|
|
4135
|
+
"startIndex": 1,
|
|
4136
|
+
"endIndex": 3
|
|
4137
|
+
},
|
|
4138
|
+
"isOptional": false
|
|
4139
|
+
}
|
|
4140
|
+
],
|
|
4141
|
+
"name": "setTraceCtx"
|
|
4142
|
+
},
|
|
4043
4143
|
{
|
|
4044
4144
|
"kind": "MethodSignature",
|
|
4045
4145
|
"canonicalReference": "@microsoft/applicationinsights-web-basic!IAppInsightsCore#stopPollingInternalLogs:member(1)",
|
|
@@ -255,6 +255,8 @@ export interface IAppInsightsCore extends IPerfManagerProvider {
|
|
|
255
255
|
getPlugin<T extends IPlugin = IPlugin>(pluginIdentifier: string): ILoadedPlugin<T>;
|
|
256
256
|
// Warning: (ae-forgotten-export) The symbol "IProcessTelemetryContext" needs to be exported by the entry point index.d.ts
|
|
257
257
|
getProcessTelContext(): IProcessTelemetryContext;
|
|
258
|
+
// Warning: (ae-forgotten-export) The symbol "IDistributedTraceContext" needs to be exported by the entry point index.d.ts
|
|
259
|
+
getTraceCtx(createNew?: boolean): IDistributedTraceContext | null;
|
|
258
260
|
// Warning: (ae-forgotten-export) The symbol "IChannelControls" needs to be exported by the entry point index.d.ts
|
|
259
261
|
//
|
|
260
262
|
// (undocumented)
|
|
@@ -268,6 +270,7 @@ export interface IAppInsightsCore extends IPerfManagerProvider {
|
|
|
268
270
|
pollInternalLogs?(eventName?: string): number;
|
|
269
271
|
removeNotificationListener?(listener: INotificationListener): void;
|
|
270
272
|
setCookieMgr(cookieMgr: ICookieMgr): void;
|
|
273
|
+
setTraceCtx(newTraceCtx: IDistributedTraceContext | null | undefined): void;
|
|
271
274
|
// (undocumented)
|
|
272
275
|
stopPollingInternalLogs?(): void;
|
|
273
276
|
// (undocumented)
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Microsoft.ApplicationInsights, 2.8.4
|
|
2
|
+
* Microsoft.ApplicationInsights, 2.8.4
|
|
3
3
|
* Copyright (c) Microsoft and contributors. All rights reserved.
|
|
4
4
|
*
|
|
5
5
|
* Microsoft Application Insights Team
|
|
@@ -178,6 +178,15 @@ declare namespace ApplicationInsights {
|
|
|
178
178
|
* @returns - true if the callback will be return after the flush is complete otherwise the caller should assume that any provided callback will never be called
|
|
179
179
|
*/
|
|
180
180
|
flush(isAsync?: boolean, callBack?: (flushComplete?: boolean) => void, sendReason?: SendRequestReason): void;
|
|
181
|
+
/**
|
|
182
|
+
* Gets the current distributed trace context for this instance if available
|
|
183
|
+
* @param createNew - Optional flag to create a new instance if one doesn't currently exist, defaults to true
|
|
184
|
+
*/
|
|
185
|
+
getTraceCtx(createNew?: boolean): IDistributedTraceContext | null;
|
|
186
|
+
/**
|
|
187
|
+
* Sets the current distributed trace context for this instance if available
|
|
188
|
+
*/
|
|
189
|
+
setTraceCtx(newTracectx: IDistributedTraceContext): void;
|
|
181
190
|
protected releaseQueue(): void;
|
|
182
191
|
/**
|
|
183
192
|
* Hook for Core extensions to allow them to update their own configuration before updating all of the plugins.
|
|
@@ -517,6 +526,15 @@ declare namespace ApplicationInsights {
|
|
|
517
526
|
* @returns - true if the callback will be return after the flush is complete otherwise the caller should assume that any provided callback will never be called
|
|
518
527
|
*/
|
|
519
528
|
flush(isAsync?: boolean, callBack?: (flushComplete?: boolean) => void, sendReason?: SendRequestReason, cbTimeout?: number): boolean | void;
|
|
529
|
+
/**
|
|
530
|
+
* Gets the current distributed trace context for this instance if available
|
|
531
|
+
* @param createNew - Optional flag to create a new instance if one doesn't currently exist, defaults to true
|
|
532
|
+
*/
|
|
533
|
+
getTraceCtx(createNew?: boolean): IDistributedTraceContext | null;
|
|
534
|
+
/**
|
|
535
|
+
* Sets the current distributed trace context for this instance if available
|
|
536
|
+
*/
|
|
537
|
+
setTraceCtx(newTraceCtx: IDistributedTraceContext | null | undefined): void;
|
|
520
538
|
}
|
|
521
539
|
|
|
522
540
|
/**
|
|
@@ -1493,6 +1511,50 @@ declare namespace ApplicationInsights {
|
|
|
1493
1511
|
logInternalMessage?(severity: LoggingSeverity, message: _InternalLogMessage): void;
|
|
1494
1512
|
}
|
|
1495
1513
|
|
|
1514
|
+
interface IDistributedTraceContext {
|
|
1515
|
+
/**
|
|
1516
|
+
* Returns the current name of the page
|
|
1517
|
+
*/
|
|
1518
|
+
getName(): string;
|
|
1519
|
+
/**
|
|
1520
|
+
* Sets the current name of the page
|
|
1521
|
+
* @param pageName
|
|
1522
|
+
*/
|
|
1523
|
+
setName(pageName: string): void;
|
|
1524
|
+
/**
|
|
1525
|
+
* Returns the unique identifier for a trace. All requests / spans from the same trace share the same traceId.
|
|
1526
|
+
* Must be read from incoming headers or generated according to the W3C TraceContext specification,
|
|
1527
|
+
* in a hex representation of 16-byte array. A.k.a. trace-id, TraceID or Distributed TraceID
|
|
1528
|
+
*/
|
|
1529
|
+
getTraceId(): string;
|
|
1530
|
+
/**
|
|
1531
|
+
* Set the unique identifier for a trace. All requests / spans from the same trace share the same traceId.
|
|
1532
|
+
* Must be conform to the W3C TraceContext specification, in a hex representation of 16-byte array.
|
|
1533
|
+
* A.k.a. trace-id, TraceID or Distributed TraceID https://www.w3.org/TR/trace-context/#trace-id
|
|
1534
|
+
*/
|
|
1535
|
+
setTraceId(newValue: string): void;
|
|
1536
|
+
/**
|
|
1537
|
+
* Self-generated 8-bytes identifier of the incoming request. Must be a hex representation of 8-byte array.
|
|
1538
|
+
* Also know as the parentId, used to link requests together
|
|
1539
|
+
*/
|
|
1540
|
+
getSpanId(): string;
|
|
1541
|
+
/**
|
|
1542
|
+
* Self-generated 8-bytes identifier of the incoming request. Must be a hex representation of 8-byte array.
|
|
1543
|
+
* Also know as the parentId, used to link requests together
|
|
1544
|
+
* https://www.w3.org/TR/trace-context/#parent-id
|
|
1545
|
+
*/
|
|
1546
|
+
setSpanId(newValue: string): void;
|
|
1547
|
+
/**
|
|
1548
|
+
* An integer representation of the W3C TraceContext trace-flags.
|
|
1549
|
+
*/
|
|
1550
|
+
getTraceFlags(): number | undefined;
|
|
1551
|
+
/**
|
|
1552
|
+
* https://www.w3.org/TR/trace-context/#trace-flags
|
|
1553
|
+
* @param newValue
|
|
1554
|
+
*/
|
|
1555
|
+
setTraceFlags(newValue?: number): void;
|
|
1556
|
+
}
|
|
1557
|
+
|
|
1496
1558
|
interface IEnvelope extends ISerializable {
|
|
1497
1559
|
/**
|
|
1498
1560
|
* Envelope version. For internal use only. By assigning this the default, it will not be serialized within the payload unless changed to a value other than #1.
|