@microsoft/applicationinsights-properties-js 2.8.4-nightly.2205-07 → 2.8.4-nightly.2205-10

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.
Files changed (39) hide show
  1. package/browser/applicationinsights-properties-js.integrity.json +9 -9
  2. package/browser/applicationinsights-properties-js.js +571 -499
  3. package/browser/applicationinsights-properties-js.js.map +1 -1
  4. package/browser/applicationinsights-properties-js.min.js +2 -2
  5. package/browser/applicationinsights-properties-js.min.js.map +1 -1
  6. package/dist/applicationinsights-properties-js.api.json +45 -1
  7. package/dist/applicationinsights-properties-js.api.md +4 -1
  8. package/dist/applicationinsights-properties-js.d.ts +4 -2
  9. package/dist/applicationinsights-properties-js.js +571 -499
  10. package/dist/applicationinsights-properties-js.js.map +1 -1
  11. package/dist/applicationinsights-properties-js.min.js +2 -2
  12. package/dist/applicationinsights-properties-js.min.js.map +1 -1
  13. package/dist/applicationinsights-properties-js.rollup.d.ts +4 -2
  14. package/dist-esm/Context/Application.js +1 -1
  15. package/dist-esm/Context/Device.js +1 -1
  16. package/dist-esm/Context/Internal.js +2 -2
  17. package/dist-esm/Context/Internal.js.map +1 -1
  18. package/dist-esm/Context/Location.js +1 -1
  19. package/dist-esm/Context/Session.js +5 -5
  20. package/dist-esm/Context/Session.js.map +1 -1
  21. package/dist-esm/Context/TelemetryTrace.js +3 -4
  22. package/dist-esm/Context/TelemetryTrace.js.map +1 -1
  23. package/dist-esm/Context/User.js +2 -2
  24. package/dist-esm/Context/User.js.map +1 -1
  25. package/dist-esm/Interfaces/IPropTelemetryContext.js +1 -1
  26. package/dist-esm/Interfaces/ITelemetryConfig.js +1 -1
  27. package/dist-esm/PropertiesPlugin.js +30 -8
  28. package/dist-esm/PropertiesPlugin.js.map +1 -1
  29. package/dist-esm/TelemetryContext.js +11 -3
  30. package/dist-esm/TelemetryContext.js.map +1 -1
  31. package/dist-esm/applicationinsights-properties-js.js +1 -1
  32. package/package.json +4 -4
  33. package/src/Context/Internal.ts +1 -1
  34. package/src/Context/TelemetryTrace.ts +3 -3
  35. package/src/PropertiesPlugin.ts +33 -7
  36. package/src/TelemetryContext.ts +12 -3
  37. package/types/Context/TelemetryTrace.d.ts +1 -0
  38. package/types/TelemetryContext.d.ts +2 -2
  39. package/types/tsdoc-metadata.json +1 -1
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "metadata": {
3
3
  "toolPackage": "@microsoft/api-extractor",
4
- "toolVersion": "7.23.2",
4
+ "toolVersion": "7.24.2",
5
5
  "schemaVersion": 1005,
6
6
  "oldestForwardsCompatibleVersion": 1001,
7
7
  "tsdocConfig": {
@@ -1819,6 +1819,15 @@
1819
1819
  "text": "ITelemetryConfig",
1820
1820
  "canonicalReference": "@microsoft/applicationinsights-properties-js!ITelemetryConfig:interface"
1821
1821
  },
1822
+ {
1823
+ "kind": "Content",
1824
+ "text": ", previousTraceCtx?: "
1825
+ },
1826
+ {
1827
+ "kind": "Reference",
1828
+ "text": "IDistributedTraceContext",
1829
+ "canonicalReference": "@microsoft/applicationinsights-core-js!IDistributedTraceContext:interface"
1830
+ },
1822
1831
  {
1823
1832
  "kind": "Content",
1824
1833
  "text": ");"
@@ -1842,6 +1851,14 @@
1842
1851
  "endIndex": 4
1843
1852
  },
1844
1853
  "isOptional": false
1854
+ },
1855
+ {
1856
+ "parameterName": "previousTraceCtx",
1857
+ "parameterTypeTokenRange": {
1858
+ "startIndex": 5,
1859
+ "endIndex": 6
1860
+ },
1861
+ "isOptional": true
1845
1862
  }
1846
1863
  ]
1847
1864
  },
@@ -2983,6 +3000,33 @@
2983
3000
  },
2984
3001
  "isStatic": false
2985
3002
  },
3003
+ {
3004
+ "kind": "Property",
3005
+ "canonicalReference": "@microsoft/applicationinsights-properties-js!TelemetryTrace#traceFlags:member",
3006
+ "docComment": "",
3007
+ "excerptTokens": [
3008
+ {
3009
+ "kind": "Content",
3010
+ "text": "traceFlags: "
3011
+ },
3012
+ {
3013
+ "kind": "Content",
3014
+ "text": "number"
3015
+ },
3016
+ {
3017
+ "kind": "Content",
3018
+ "text": ";"
3019
+ }
3020
+ ],
3021
+ "isOptional": false,
3022
+ "releaseTag": "Public",
3023
+ "name": "traceFlags",
3024
+ "propertyTypeTokenRange": {
3025
+ "startIndex": 1,
3026
+ "endIndex": 2
3027
+ },
3028
+ "isStatic": false
3029
+ },
2986
3030
  {
2987
3031
  "kind": "Property",
2988
3032
  "canonicalReference": "@microsoft/applicationinsights-properties-js!TelemetryTrace#traceID:member",
@@ -11,6 +11,7 @@ import { IConfig } from '@microsoft/applicationinsights-common';
11
11
  import { IConfiguration } from '@microsoft/applicationinsights-core-js';
12
12
  import { IDevice } from '@microsoft/applicationinsights-common';
13
13
  import { IDiagnosticLogger } from '@microsoft/applicationinsights-core-js';
14
+ import { IDistributedTraceContext } from '@microsoft/applicationinsights-core-js';
14
15
  import { IInternal } from '@microsoft/applicationinsights-common';
15
16
  import { ILocation } from '@microsoft/applicationinsights-common';
16
17
  import { IOperatingSystem } from '@microsoft/applicationinsights-common';
@@ -115,7 +116,7 @@ export class SessionManager {
115
116
 
116
117
  // @public (undocumented)
117
118
  export class TelemetryContext implements IPropTelemetryContext {
118
- constructor(core: IAppInsightsCore, defaultConfig: ITelemetryConfig);
119
+ constructor(core: IAppInsightsCore, defaultConfig: ITelemetryConfig, previousTraceCtx?: IDistributedTraceContext);
119
120
  // (undocumented)
120
121
  appId: () => string;
121
122
  // (undocumented)
@@ -170,6 +171,8 @@ export class TelemetryTrace implements ITelemetryTrace {
170
171
  // (undocumented)
171
172
  parentID: string;
172
173
  // (undocumented)
174
+ traceFlags: number;
175
+ // (undocumented)
173
176
  traceID: string;
174
177
  // (undocumented)
175
178
  traceState: ITraceState;
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Microsoft Application Insights properties plugin, 2.8.4-nightly.2205-07
2
+ * Microsoft Application Insights properties plugin, 2.8.4-nightly.2205-10
3
3
  * Copyright (c) Microsoft and contributors. All rights reserved.
4
4
  *
5
5
  * Microsoft Application Insights Team
@@ -14,6 +14,7 @@ declare namespace ApplicationInsights {
14
14
  import { IConfiguration } from '@microsoft/applicationinsights-core-js';
15
15
  import { IDevice } from '@microsoft/applicationinsights-common';
16
16
  import { IDiagnosticLogger } from '@microsoft/applicationinsights-core-js';
17
+ import { IDistributedTraceContext } from '@microsoft/applicationinsights-core-js';
17
18
  import { IInternal } from '@microsoft/applicationinsights-common';
18
19
  import { ILocation } from '@microsoft/applicationinsights-common';
19
20
  import { IOperatingSystem } from '@microsoft/applicationinsights-common';
@@ -135,7 +136,7 @@ declare namespace ApplicationInsights {
135
136
  web: IWeb;
136
137
  appId: () => string;
137
138
  getSessionId: () => string;
138
- constructor(core: IAppInsightsCore, defaultConfig: ITelemetryConfig);
139
+ constructor(core: IAppInsightsCore, defaultConfig: ITelemetryConfig, previousTraceCtx?: IDistributedTraceContext);
139
140
  applySessionContext(evt: ITelemetryItem, itemCtx?: IProcessTelemetryContext): void;
140
141
  applyOperatingSystemContxt(event: ITelemetryItem, itemCtx?: IProcessTelemetryContext): void;
141
142
  applyApplicationContext(event: ITelemetryItem, itemCtx?: IProcessTelemetryContext): void;
@@ -152,6 +153,7 @@ declare namespace ApplicationInsights {
152
153
  traceID: string;
153
154
  parentID: string;
154
155
  traceState: ITraceState;
156
+ traceFlags: number;
155
157
  name: string;
156
158
  constructor(id?: string, parentId?: string, name?: string, logger?: IDiagnosticLogger);
157
159
  }