@microsoft/applicationinsights-core-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 (102) hide show
  1. package/browser/applicationinsights-core-js.integrity.json +9 -9
  2. package/browser/applicationinsights-core-js.js +2008 -1811
  3. package/browser/applicationinsights-core-js.js.map +1 -1
  4. package/browser/applicationinsights-core-js.min.js +2 -2
  5. package/browser/applicationinsights-core-js.min.js.map +1 -1
  6. package/dist/applicationinsights-core-js.api.json +1302 -199
  7. package/dist/applicationinsights-core-js.api.md +54 -0
  8. package/dist/applicationinsights-core-js.d.ts +174 -1
  9. package/dist/applicationinsights-core-js.js +2008 -1811
  10. package/dist/applicationinsights-core-js.js.map +1 -1
  11. package/dist/applicationinsights-core-js.min.js +2 -2
  12. package/dist/applicationinsights-core-js.min.js.map +1 -1
  13. package/dist/applicationinsights-core-js.rollup.d.ts +174 -1
  14. package/dist-esm/JavaScriptSDK/AppInsightsCore.js +2 -2
  15. package/dist-esm/JavaScriptSDK/AppInsightsCore.js.map +1 -1
  16. package/dist-esm/JavaScriptSDK/BaseCore.js +25 -12
  17. package/dist-esm/JavaScriptSDK/BaseCore.js.map +1 -1
  18. package/dist-esm/JavaScriptSDK/BaseTelemetryPlugin.js +3 -3
  19. package/dist-esm/JavaScriptSDK/BaseTelemetryPlugin.js.map +1 -1
  20. package/dist-esm/JavaScriptSDK/ChannelController.js +3 -3
  21. package/dist-esm/JavaScriptSDK/ChannelController.js.map +1 -1
  22. package/dist-esm/JavaScriptSDK/Constants.js +1 -1
  23. package/dist-esm/JavaScriptSDK/CookieMgr.js +2 -2
  24. package/dist-esm/JavaScriptSDK/CookieMgr.js.map +1 -1
  25. package/dist-esm/JavaScriptSDK/CoreUtils.js +1 -1
  26. package/dist-esm/JavaScriptSDK/DataCacheHelper.js +2 -2
  27. package/dist-esm/JavaScriptSDK/DataCacheHelper.js.map +1 -1
  28. package/dist-esm/JavaScriptSDK/DbgExtensionUtils.js +1 -1
  29. package/dist-esm/JavaScriptSDK/DiagnosticLogger.js +6 -6
  30. package/dist-esm/JavaScriptSDK/DiagnosticLogger.js.map +1 -1
  31. package/dist-esm/JavaScriptSDK/EnvUtils.js +40 -1
  32. package/dist-esm/JavaScriptSDK/EnvUtils.js.map +1 -1
  33. package/dist-esm/JavaScriptSDK/EventHelpers.js +1 -1
  34. package/dist-esm/JavaScriptSDK/HelperFuncs.js +1 -1
  35. package/dist-esm/JavaScriptSDK/InstrumentHooks.js +6 -6
  36. package/dist-esm/JavaScriptSDK/InstrumentHooks.js.map +1 -1
  37. package/dist-esm/JavaScriptSDK/InternalConstants.js +1 -1
  38. package/dist-esm/JavaScriptSDK/NotificationManager.js +1 -1
  39. package/dist-esm/JavaScriptSDK/PerfManager.js +1 -1
  40. package/dist-esm/JavaScriptSDK/ProcessTelemetryContext.js +6 -6
  41. package/dist-esm/JavaScriptSDK/ProcessTelemetryContext.js.map +1 -1
  42. package/dist-esm/JavaScriptSDK/RandomHelper.js +1 -1
  43. package/dist-esm/JavaScriptSDK/TelemetryHelpers.js +54 -6
  44. package/dist-esm/JavaScriptSDK/TelemetryHelpers.js.map +1 -1
  45. package/dist-esm/JavaScriptSDK/TelemetryInitializerPlugin.js +2 -2
  46. package/dist-esm/JavaScriptSDK/TelemetryInitializerPlugin.js.map +1 -1
  47. package/dist-esm/JavaScriptSDK/UnloadHandlerContainer.js +2 -2
  48. package/dist-esm/JavaScriptSDK/UnloadHandlerContainer.js.map +1 -1
  49. package/dist-esm/JavaScriptSDK/W3cTraceParent.js +172 -0
  50. package/dist-esm/JavaScriptSDK/W3cTraceParent.js.map +1 -0
  51. package/dist-esm/JavaScriptSDK.Enums/EnumHelperFuncs.js +1 -1
  52. package/dist-esm/JavaScriptSDK.Enums/EventsDiscardedReason.js +7 -7
  53. package/dist-esm/JavaScriptSDK.Enums/EventsDiscardedReason.js.map +1 -1
  54. package/dist-esm/JavaScriptSDK.Enums/LoggingEnums.js +86 -86
  55. package/dist-esm/JavaScriptSDK.Enums/LoggingEnums.js.map +1 -1
  56. package/dist-esm/JavaScriptSDK.Enums/SendRequestReason.js +1 -1
  57. package/dist-esm/JavaScriptSDK.Enums/TelemetryUnloadReason.js +1 -1
  58. package/dist-esm/JavaScriptSDK.Enums/TelemetryUpdateReason.js +1 -1
  59. package/dist-esm/JavaScriptSDK.Interfaces/IAppInsightsCore.js +1 -1
  60. package/dist-esm/JavaScriptSDK.Interfaces/IChannelControls.js +1 -1
  61. package/dist-esm/JavaScriptSDK.Interfaces/IConfiguration.js +1 -1
  62. package/dist-esm/JavaScriptSDK.Interfaces/ICookieMgr.js +1 -1
  63. package/dist-esm/JavaScriptSDK.Interfaces/IDbgExtension.js +1 -1
  64. package/dist-esm/JavaScriptSDK.Interfaces/IDiagnosticLogger.js +1 -1
  65. package/dist-esm/JavaScriptSDK.Interfaces/IDistributedTraceContext.js +8 -0
  66. package/dist-esm/JavaScriptSDK.Interfaces/IDistributedTraceContext.js.map +1 -0
  67. package/dist-esm/JavaScriptSDK.Interfaces/IInstrumentHooks.js +1 -1
  68. package/dist-esm/JavaScriptSDK.Interfaces/INotificationListener.js +1 -1
  69. package/dist-esm/JavaScriptSDK.Interfaces/INotificationManager.js +1 -1
  70. package/dist-esm/JavaScriptSDK.Interfaces/IPerfEvent.js +1 -1
  71. package/dist-esm/JavaScriptSDK.Interfaces/IPerfManager.js +1 -1
  72. package/dist-esm/JavaScriptSDK.Interfaces/IProcessTelemetryContext.js +1 -1
  73. package/dist-esm/JavaScriptSDK.Interfaces/ITelemetryInitializers.js +1 -1
  74. package/dist-esm/JavaScriptSDK.Interfaces/ITelemetryItem.js +1 -1
  75. package/dist-esm/JavaScriptSDK.Interfaces/ITelemetryPlugin.js +1 -1
  76. package/dist-esm/JavaScriptSDK.Interfaces/ITelemetryPluginChain.js +1 -1
  77. package/dist-esm/JavaScriptSDK.Interfaces/ITelemetryUnloadState.js +1 -1
  78. package/dist-esm/JavaScriptSDK.Interfaces/ITelemetryUpdateState.js +1 -1
  79. package/dist-esm/JavaScriptSDK.Interfaces/ITraceParent.js +8 -0
  80. package/dist-esm/JavaScriptSDK.Interfaces/ITraceParent.js.map +1 -0
  81. package/dist-esm/JavaScriptSDK.Interfaces/IUnloadableComponent.js +1 -1
  82. package/dist-esm/applicationinsights-core-js.js +3 -2
  83. package/dist-esm/applicationinsights-core-js.js.map +1 -1
  84. package/package.json +2 -2
  85. package/src/JavaScriptSDK/BaseCore.ts +32 -1
  86. package/src/JavaScriptSDK/DataCacheHelper.ts +1 -1
  87. package/src/JavaScriptSDK/EnvUtils.ts +45 -0
  88. package/src/JavaScriptSDK/TelemetryHelpers.ts +57 -5
  89. package/src/JavaScriptSDK/W3cTraceParent.ts +196 -0
  90. package/src/JavaScriptSDK.Interfaces/IAppInsightsCore.ts +12 -0
  91. package/src/JavaScriptSDK.Interfaces/IDistributedTraceContext.ts +54 -0
  92. package/src/JavaScriptSDK.Interfaces/ITraceParent.ts +38 -0
  93. package/tsconfig.json +1 -2
  94. package/types/JavaScriptSDK/BaseCore.d.ts +10 -0
  95. package/types/JavaScriptSDK/EnvUtils.d.ts +10 -0
  96. package/types/JavaScriptSDK/TelemetryHelpers.d.ts +7 -0
  97. package/types/JavaScriptSDK/W3cTraceParent.d.ts +59 -0
  98. package/types/JavaScriptSDK.Interfaces/IAppInsightsCore.d.ts +10 -0
  99. package/types/JavaScriptSDK.Interfaces/IDistributedTraceContext.d.ts +43 -0
  100. package/types/JavaScriptSDK.Interfaces/ITraceParent.d.ts +32 -0
  101. package/types/applicationinsights-core-js.d.ts +4 -1
  102. package/types/tsdoc-metadata.json +1 -1
@@ -0,0 +1,38 @@
1
+ // Copyright (c) Microsoft Corporation. All rights reserved.
2
+ // Licensed under the MIT License.
3
+
4
+ /**
5
+ * This interface represents the components of a W3C traceparent header
6
+ */
7
+ export interface ITraceParent {
8
+ /**
9
+ * The version of the definition, this MUST be a string with a length of 2 and only contain lowercase
10
+ * hexadecimal characters. A value of 'ff' is considered to be an invalid version.
11
+ */
12
+ version: string;
13
+
14
+ /**
15
+ * This is the ID of the whole trace forest and is used to uniquely identify a distributed trace
16
+ * through a system. It is represented as a 32-character string of lowercase hexadecimal characters,
17
+ * for example, 4bf92f3577b34da6a3ce929d0e0e4736.
18
+ * All characters as zero (00000000000000000000000000000000) is considered an invalid value.
19
+ */
20
+ traceId: string;
21
+
22
+ /**
23
+ * This is the ID of the current request as known by the caller (in some tracing systems, this is also
24
+ * known as the parent-id, where a span is the execution of a client request). It is represented as an
25
+ * 16-character string of lowercase hexadecimal characters, for example, 00f067aa0ba902b7.
26
+ * All bytes as zero (0000000000000000) is considered an invalid value.
27
+ */
28
+ spanId: string;
29
+
30
+ /**
31
+ * An 8-bit value of flags that controls tracing such as sampling, trace level, etc. These flags are
32
+ * recommendations given by the caller rather than strict rules to follow.
33
+ * As this is a bit field, you cannot interpret flags by decoding the hex value and looking at the resulting
34
+ * number. For example, a flag 00000001 could be encoded as 01 in hex, or 09 in hex if present with the flag
35
+ * 00001000. A common mistake in bit fields is forgetting to mask when interpreting flags.
36
+ */
37
+ traceFlags: number;
38
+ }
package/tsconfig.json CHANGED
@@ -9,9 +9,8 @@
9
9
  "forceConsistentCasingInFileNames": true,
10
10
  "importHelpers": true,
11
11
  "noEmitHelpers": true,
12
- "skipLibCheck": true,
12
+ "skipLibCheck": false,
13
13
  "alwaysStrict": true,
14
- "skipLibCheck": true,
15
14
  "skipDefaultLibCheck": true,
16
15
  "declaration": true,
17
16
  "declarationDir": "shared/AppInsightsCore/types",
@@ -14,6 +14,7 @@ import { UnloadHandler } from "./UnloadHandlerContainer";
14
14
  import { ITelemetryUpdateState } from "../JavaScriptSDK.Interfaces/ITelemetryUpdateState";
15
15
  import { ITelemetryUnloadState } from "../JavaScriptSDK.Interfaces/ITelemetryUnloadState";
16
16
  import { SendRequestReason } from "../JavaScriptSDK.Enums/SendRequestReason";
17
+ import { IDistributedTraceContext } from "../JavaScriptSDK.Interfaces/IDistributedTraceContext";
17
18
  export declare class BaseCore implements IAppInsightsCore {
18
19
  static defaultConfig: IConfiguration;
19
20
  config: IConfiguration;
@@ -103,6 +104,15 @@ export declare class BaseCore implements IAppInsightsCore {
103
104
  * @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
104
105
  */
105
106
  flush(isAsync?: boolean, callBack?: (flushComplete?: boolean) => void, sendReason?: SendRequestReason): void;
107
+ /**
108
+ * Gets the current distributed trace context for this instance if available
109
+ * @param createNew - Optional flag to create a new instance if one doesn't currently exist, defaults to true
110
+ */
111
+ getTraceCtx(createNew?: boolean): IDistributedTraceContext | null;
112
+ /**
113
+ * Sets the current distributed trace context for this instance if available
114
+ */
115
+ setTraceCtx(newTracectx: IDistributedTraceContext): void;
106
116
  protected releaseQueue(): void;
107
117
  /**
108
118
  * Hook for Core extensions to allow them to update their own configuration before updating all of the plugins.
@@ -140,3 +140,13 @@ export declare function useXDomainRequest(): boolean | undefined;
140
140
  * @returns True if supported, otherwise false
141
141
  */
142
142
  export declare function isXhrSupported(): boolean;
143
+ /**
144
+ * Helper function to fetch the named meta-tag from the page.
145
+ * @param name
146
+ */
147
+ export declare function findMetaTag(name: string): any;
148
+ /**
149
+ * Helper function to fetch the named server timing value from the page response (first navigation event).
150
+ * @param name
151
+ */
152
+ export declare function findNamedServerTiming(name: string): any;
@@ -3,6 +3,7 @@ import { IProcessTelemetryContext, IProcessTelemetryUnloadContext } from "../Jav
3
3
  import { IAppInsightsCore } from "../JavaScriptSDK.Interfaces/IAppInsightsCore";
4
4
  import { IUnloadableComponent } from "../JavaScriptSDK.Interfaces/IUnloadableComponent";
5
5
  import { ITelemetryUnloadState } from "../JavaScriptSDK.Interfaces/ITelemetryUnloadState";
6
+ import { IDistributedTraceContext } from "../JavaScriptSDK.Interfaces/IDistributedTraceContext";
6
7
  export interface IPluginState {
7
8
  core?: IAppInsightsCore;
8
9
  isInitialized?: boolean;
@@ -29,3 +30,9 @@ export declare function sortPlugins<T = IPlugin>(plugins: T[]): T[];
29
30
  * @returns boolean - true if the plugin has or will call asyncCallback, this allows the plugin to perform any asynchronous operations.
30
31
  */
31
32
  export declare function unloadComponents(components: any | IUnloadableComponent[], unloadCtx?: IProcessTelemetryUnloadContext, unloadState?: ITelemetryUnloadState, asyncCallback?: () => void): void | boolean;
33
+ /**
34
+ * Creates a IDistributedTraceContext which optionally also "sets" the value on a parent
35
+ * @param parentCtx - An optional parent distributed trace instance
36
+ * @returns A new IDistributedTraceContext instance that uses an internal temporary object
37
+ */
38
+ export declare function createDistributedTraceContext(parentCtx?: IDistributedTraceContext): IDistributedTraceContext;
@@ -0,0 +1,59 @@
1
+ import { ITraceParent } from "../JavaScriptSDK.Interfaces/ITraceParent";
2
+ /**
3
+ * Create a new ITraceParent instance using the provided values.
4
+ * @param traceId - The traceId to use, when invalid a new random W3C id will be generated.
5
+ * @param spanId - The parent/span id to use, a new random value will be generated if it is invalid.
6
+ * @param flags - The traceFlags to use, defaults to zero (0) if not supplied or invalid
7
+ * @param version - The version to used, defaults to version "01" if not supplied or invalid.
8
+ * @returns
9
+ */
10
+ export declare function createTraceParent(traceId?: string, spanId?: string, flags?: number, version?: string): ITraceParent;
11
+ /**
12
+ * Attempt to parse the provided string as a W3C TraceParent header value (https://www.w3.org/TR/trace-context/#traceparent-header)
13
+ *
14
+ * @param value
15
+ * @returns
16
+ */
17
+ export declare function parseTraceParent(value: string): ITraceParent;
18
+ /**
19
+ * Is the provided W3c Trace Id a valid string representation, it must be a 32-character string
20
+ * of lowercase hexadecimal characters for example, 4bf92f3577b34da6a3ce929d0e0e4736.
21
+ * If all characters as zero (00000000000000000000000000000000) it will be considered an invalid value.
22
+ * @param value - The W3c trace Id to be validated
23
+ * @returns true if valid otherwise false
24
+ */
25
+ export declare function isValidTraceId(value: string): boolean;
26
+ /**
27
+ * Is the provided W3c span id (aka. parent id) a valid string representation, it must be a 16-character
28
+ * string of lowercase hexadecimal characters, for example, 00f067aa0ba902b7.
29
+ * If all characters are zero (0000000000000000) this is considered an invalid value.
30
+ * @param value - The W3c span id to be validated
31
+ * @returns true if valid otherwise false
32
+ */
33
+ export declare function isValidSpanId(value: string): boolean;
34
+ /**
35
+ * Validates that the provided ITraceParent instance conforms to the currently supported specifications
36
+ * @param value
37
+ * @returns
38
+ */
39
+ export declare function isValidTraceParent(value: ITraceParent): boolean;
40
+ /**
41
+ * Is the parsed traceParent indicating that the trace is currently sampled.
42
+ * @param value - The parsed traceParent value
43
+ * @returns
44
+ */
45
+ export declare function isSampledFlag(value: ITraceParent): boolean;
46
+ /**
47
+ * Format the ITraceParent value as a string using the supported and know version formats.
48
+ * So even if the passed traceParent is a later version the string value returned from this
49
+ * function will convert it to only the known version formats.
50
+ * This currently only supports version "00" and invalid "ff"
51
+ * @param value - The parsed traceParent value
52
+ * @returns
53
+ */
54
+ export declare function formatTraceParent(value: ITraceParent): string;
55
+ /**
56
+ * Helper function to fetch the passed traceparent from the page, looking for it as a meta-tag or a Server-Timing header.
57
+ * @returns
58
+ */
59
+ export declare function findW3cTraceParent(): ITraceParent;
@@ -12,6 +12,7 @@ import { ITelemetryInitializerHandler, TelemetryInitializerFunction } from "./IT
12
12
  import { ITelemetryUnloadState } from "./ITelemetryUnloadState";
13
13
  import { UnloadHandler } from "../JavaScriptSDK/UnloadHandlerContainer";
14
14
  import { SendRequestReason } from "../JavaScriptSDK.Enums/SendRequestReason";
15
+ import { IDistributedTraceContext } from "./IDistributedTraceContext";
15
16
  export interface ILoadedPlugin<T extends IPlugin> {
16
17
  plugin: T;
17
18
  /**
@@ -120,4 +121,13 @@ export interface IAppInsightsCore extends IPerfManagerProvider {
120
121
  * @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
121
122
  */
122
123
  flush(isAsync?: boolean, callBack?: (flushComplete?: boolean) => void, sendReason?: SendRequestReason, cbTimeout?: number): boolean | void;
124
+ /**
125
+ * Gets the current distributed trace context for this instance if available
126
+ * @param createNew - Optional flag to create a new instance if one doesn't currently exist, defaults to true
127
+ */
128
+ getTraceCtx(createNew?: boolean): IDistributedTraceContext | null;
129
+ /**
130
+ * Sets the current distributed trace context for this instance if available
131
+ */
132
+ setTraceCtx(newTraceCtx: IDistributedTraceContext | null | undefined): void;
123
133
  }
@@ -0,0 +1,43 @@
1
+ export interface IDistributedTraceContext {
2
+ /**
3
+ * Returns the current name of the page
4
+ */
5
+ getName(): string;
6
+ /**
7
+ * Sets the current name of the page
8
+ * @param pageName
9
+ */
10
+ setName(pageName: string): void;
11
+ /**
12
+ * Returns the unique identifier for a trace. All requests / spans from the same trace share the same traceId.
13
+ * Must be read from incoming headers or generated according to the W3C TraceContext specification,
14
+ * in a hex representation of 16-byte array. A.k.a. trace-id, TraceID or Distributed TraceID
15
+ */
16
+ getTraceId(): string;
17
+ /**
18
+ * Set the unique identifier for a trace. All requests / spans from the same trace share the same traceId.
19
+ * Must be conform to the W3C TraceContext specification, in a hex representation of 16-byte array.
20
+ * A.k.a. trace-id, TraceID or Distributed TraceID https://www.w3.org/TR/trace-context/#trace-id
21
+ */
22
+ setTraceId(newValue: string): void;
23
+ /**
24
+ * Self-generated 8-bytes identifier of the incoming request. Must be a hex representation of 8-byte array.
25
+ * Also know as the parentId, used to link requests together
26
+ */
27
+ getSpanId(): string;
28
+ /**
29
+ * Self-generated 8-bytes identifier of the incoming request. Must be a hex representation of 8-byte array.
30
+ * Also know as the parentId, used to link requests together
31
+ * https://www.w3.org/TR/trace-context/#parent-id
32
+ */
33
+ setSpanId(newValue: string): void;
34
+ /**
35
+ * An integer representation of the W3C TraceContext trace-flags.
36
+ */
37
+ getTraceFlags(): number | undefined;
38
+ /**
39
+ * https://www.w3.org/TR/trace-context/#trace-flags
40
+ * @param newValue
41
+ */
42
+ setTraceFlags(newValue?: number): void;
43
+ }
@@ -0,0 +1,32 @@
1
+ /**
2
+ * This interface represents the components of a W3C traceparent header
3
+ */
4
+ export interface ITraceParent {
5
+ /**
6
+ * The version of the definition, this MUST be a string with a length of 2 and only contain lowercase
7
+ * hexadecimal characters. A value of 'ff' is considered to be an invalid version.
8
+ */
9
+ version: string;
10
+ /**
11
+ * This is the ID of the whole trace forest and is used to uniquely identify a distributed trace
12
+ * through a system. It is represented as a 32-character string of lowercase hexadecimal characters,
13
+ * for example, 4bf92f3577b34da6a3ce929d0e0e4736.
14
+ * All characters as zero (00000000000000000000000000000000) is considered an invalid value.
15
+ */
16
+ traceId: string;
17
+ /**
18
+ * This is the ID of the current request as known by the caller (in some tracing systems, this is also
19
+ * known as the parent-id, where a span is the execution of a client request). It is represented as an
20
+ * 16-character string of lowercase hexadecimal characters, for example, 00f067aa0ba902b7.
21
+ * All bytes as zero (0000000000000000) is considered an invalid value.
22
+ */
23
+ spanId: string;
24
+ /**
25
+ * An 8-bit value of flags that controls tracing such as sampling, trace level, etc. These flags are
26
+ * recommendations given by the caller rather than strict rules to follow.
27
+ * As this is a bit field, you cannot interpret flags by decoding the hex value and looking at the resulting
28
+ * number. For example, a flag 00000001 could be encoded as 01 in hex, or 09 in hex if present with the flag
29
+ * 00001000. A common mistake in bit fields is forgetting to mask when interpreting flags.
30
+ */
31
+ traceFlags: number;
32
+ }
@@ -21,7 +21,7 @@ export { CoreUtils, ICoreUtils, EventHelper, IEventHelper, Undefined, newGuid, p
21
21
  export { isTypeof, isUndefined, isNullOrUndefined, hasOwnProperty, isObject, isFunction, normalizeJsName, objForEachKey, strEndsWith, strStartsWith, isDate, isArray, isError, isString, isNumber, isBoolean, toISOString, arrForEach, arrIndexOf, arrMap, arrReduce, strTrim, objKeys, objDefineAccessors, dateNow, getExceptionName, throwError, strContains, isSymbol, setValue, getSetValue, isNotTruthy, isTruthy, proxyAssign, proxyFunctions, proxyFunctionAs, createClassFromInterface, optimizeObject, isNotUndefined, isNotNullOrUndefined, objFreeze, objSeal, objExtend, objToString, deepFreeze } from "./JavaScriptSDK/HelperFuncs";
22
22
  export { EnumValue, createEnumStyle, EnumMap, createEnumMap, createValueMap } from "./JavaScriptSDK.Enums/EnumHelperFuncs";
23
23
  export { attachEvent, detachEvent, addEventHandler, addEventListeners, addPageUnloadEventListener, addPageHideEventListener, addPageShowEventListener, removeEventHandler, removeEventListeners, removePageUnloadEventListener, removePageHideEventListener, removePageShowEventListener, eventOn, eventOff, mergeEvtNamespace, _IRegisteredEvents, __getRegisteredEvents } from "./JavaScriptSDK/EventHelpers";
24
- export { getGlobalInst, hasWindow, getWindow, hasDocument, getDocument, getCrypto, getMsCrypto, hasNavigator, getNavigator, hasHistory, getHistory, getLocation, getPerformance, hasJSON, getJSON, isReactNative, getConsole, dumpObj, isIE, getIEVersion, isSafari, setEnableEnvMocks, isBeaconsSupported, isFetchSupported, useXDomainRequest, isXhrSupported } from "./JavaScriptSDK/EnvUtils";
24
+ export { getGlobalInst, hasWindow, getWindow, hasDocument, getDocument, getCrypto, getMsCrypto, hasNavigator, getNavigator, hasHistory, getHistory, getLocation, getPerformance, hasJSON, getJSON, isReactNative, getConsole, dumpObj, isIE, getIEVersion, isSafari, setEnableEnvMocks, isBeaconsSupported, isFetchSupported, useXDomainRequest, isXhrSupported, findMetaTag, findNamedServerTiming } from "./JavaScriptSDK/EnvUtils";
25
25
  export { getGlobal, objCreateFn as objCreate, strShimPrototype as strPrototype, strShimFunction as strFunction, strShimUndefined as strUndefined, strShimObject as strObject } from "@microsoft/applicationinsights-shims";
26
26
  export { NotificationManager } from "./JavaScriptSDK/NotificationManager";
27
27
  export { INotificationManager } from "./JavaScriptSDK.Interfaces/INotificationManager";
@@ -42,3 +42,6 @@ export { createUniqueNamespace } from "./JavaScriptSDK/DataCacheHelper";
42
42
  export { UnloadHandler, IUnloadHandlerContainer, createUnloadHandlerContainer } from "./JavaScriptSDK/UnloadHandlerContainer";
43
43
  export { ITelemetryUpdateState } from "./JavaScriptSDK.Interfaces/ITelemetryUpdateState";
44
44
  export { ITelemetryUnloadState } from "./JavaScriptSDK.Interfaces/ITelemetryUnloadState";
45
+ export { IDistributedTraceContext } from "./JavaScriptSDK.Interfaces/IDistributedTraceContext";
46
+ export { ITraceParent } from "./JavaScriptSDK.Interfaces/ITraceParent";
47
+ export { createTraceParent, parseTraceParent, isValidTraceId, isValidSpanId, isValidTraceParent, isSampledFlag, formatTraceParent, findW3cTraceParent } from "./JavaScriptSDK/W3cTraceParent";
@@ -5,7 +5,7 @@
5
5
  "toolPackages": [
6
6
  {
7
7
  "packageName": "@microsoft/api-extractor",
8
- "packageVersion": "7.23.2"
8
+ "packageVersion": "7.24.2"
9
9
  }
10
10
  ]
11
11
  }