@microsoft/applicationinsights-common 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.
- package/browser/applicationinsights-common.integrity.json +9 -9
- package/browser/applicationinsights-common.js +174 -127
- package/browser/applicationinsights-common.js.map +1 -1
- package/browser/applicationinsights-common.min.js +2 -2
- package/browser/applicationinsights-common.min.js.map +1 -1
- package/dist/applicationinsights-common.api.json +81 -501
- package/dist/applicationinsights-common.api.md +24 -23
- package/dist/applicationinsights-common.d.ts +33 -91
- package/dist/applicationinsights-common.js +174 -127
- package/dist/applicationinsights-common.js.map +1 -1
- package/dist/applicationinsights-common.min.js +2 -2
- package/dist/applicationinsights-common.min.js.map +1 -1
- package/dist/applicationinsights-common.rollup.d.ts +33 -91
- package/dist-esm/ConnectionStringParser.js +1 -1
- package/dist-esm/Constants.js +1 -1
- package/dist-esm/DomHelperFuncs.js +1 -1
- package/dist-esm/Enums.js +6 -6
- package/dist-esm/Enums.js.map +1 -1
- package/dist-esm/HelperFuncs.js +1 -1
- package/dist-esm/Interfaces/ConnectionString.js +1 -1
- package/dist-esm/Interfaces/Context/IApplication.js +1 -1
- package/dist-esm/Interfaces/Context/IDevice.js +1 -1
- package/dist-esm/Interfaces/Context/IInternal.js +1 -1
- package/dist-esm/Interfaces/Context/ILocation.js +1 -1
- package/dist-esm/Interfaces/Context/IOperatingSystem.js +1 -1
- package/dist-esm/Interfaces/Context/ISample.js +1 -1
- package/dist-esm/Interfaces/Context/ISession.js +1 -1
- package/dist-esm/Interfaces/Context/ITelemetryTrace.js +1 -1
- package/dist-esm/Interfaces/Context/IUser.js +1 -1
- package/dist-esm/Interfaces/Context/IWeb.js +1 -1
- package/dist-esm/Interfaces/Contracts/AvailabilityData.js +1 -1
- package/dist-esm/Interfaces/Contracts/ContextTagKeys.js +1 -1
- package/dist-esm/Interfaces/Contracts/DataPointType.js +1 -1
- package/dist-esm/Interfaces/Contracts/DependencyKind.js +1 -1
- package/dist-esm/Interfaces/Contracts/DependencySourceType.js +1 -1
- package/dist-esm/Interfaces/Contracts/IBase.js +1 -1
- package/dist-esm/Interfaces/Contracts/IData.js +1 -1
- package/dist-esm/Interfaces/Contracts/IDataPoint.js +1 -1
- package/dist-esm/Interfaces/Contracts/IDomain.js +1 -1
- package/dist-esm/Interfaces/Contracts/IEnvelope.js +1 -1
- package/dist-esm/Interfaces/Contracts/IEventData.js +1 -1
- package/dist-esm/Interfaces/Contracts/IExceptionData.js +1 -1
- package/dist-esm/Interfaces/Contracts/IExceptionDetails.js +1 -1
- package/dist-esm/Interfaces/Contracts/IMessageData.js +1 -1
- package/dist-esm/Interfaces/Contracts/IMetricData.js +1 -1
- package/dist-esm/Interfaces/Contracts/IPageViewData.js +1 -1
- package/dist-esm/Interfaces/Contracts/IPageViewPerfData.js +1 -1
- package/dist-esm/Interfaces/Contracts/IRemoteDependencyData.js +1 -1
- package/dist-esm/Interfaces/Contracts/IStackFrame.js +1 -1
- package/dist-esm/Interfaces/Contracts/RequestData.js +1 -1
- package/dist-esm/Interfaces/Contracts/SeverityLevel.js +6 -6
- package/dist-esm/Interfaces/Contracts/SeverityLevel.js.map +1 -1
- package/dist-esm/Interfaces/IAppInsights.js +1 -1
- package/dist-esm/Interfaces/IChannelControlsAI.js +1 -1
- package/dist-esm/Interfaces/IConfig.js +1 -1
- package/dist-esm/Interfaces/ICorrelationConfig.js +1 -1
- package/dist-esm/Interfaces/IDependencyTelemetry.js +1 -1
- package/dist-esm/Interfaces/IEventTelemetry.js +1 -1
- package/dist-esm/Interfaces/IExceptionTelemetry.js +1 -1
- package/dist-esm/Interfaces/IMetricTelemetry.js +1 -1
- package/dist-esm/Interfaces/IPageViewPerformanceTelemetry.js +1 -1
- package/dist-esm/Interfaces/IPageViewTelemetry.js +1 -1
- package/dist-esm/Interfaces/IPartC.js +1 -1
- package/dist-esm/Interfaces/IPropertiesPlugin.js +1 -1
- package/dist-esm/Interfaces/IRequestContext.js +1 -1
- package/dist-esm/Interfaces/ITelemetryContext.js +1 -1
- package/dist-esm/Interfaces/ITraceTelemetry.js +1 -1
- package/dist-esm/Interfaces/PartAExtensions.js +1 -1
- package/dist-esm/Interfaces/Telemetry/IEnvelope.js +1 -1
- package/dist-esm/Interfaces/Telemetry/ISerializable.js +1 -1
- package/dist-esm/RequestResponseHeaders.js +10 -10
- package/dist-esm/RequestResponseHeaders.js.map +1 -1
- package/dist-esm/StorageHelperFuncs.js +7 -7
- package/dist-esm/StorageHelperFuncs.js.map +1 -1
- package/dist-esm/Telemetry/Common/Data.js +3 -3
- package/dist-esm/Telemetry/Common/Data.js.map +1 -1
- package/dist-esm/Telemetry/Common/DataPoint.js +9 -9
- package/dist-esm/Telemetry/Common/DataPoint.js.map +1 -1
- package/dist-esm/Telemetry/Common/DataSanitizer.js +26 -26
- package/dist-esm/Telemetry/Common/DataSanitizer.js.map +1 -1
- package/dist-esm/Telemetry/Common/Envelope.js +7 -7
- package/dist-esm/Telemetry/Common/Envelope.js.map +1 -1
- package/dist-esm/Telemetry/Event.js +5 -5
- package/dist-esm/Telemetry/Event.js.map +1 -1
- package/dist-esm/Telemetry/Exception.js +18 -18
- package/dist-esm/Telemetry/Exception.js.map +1 -1
- package/dist-esm/Telemetry/Metric.js +4 -4
- package/dist-esm/Telemetry/Metric.js.map +1 -1
- package/dist-esm/Telemetry/PageView.js +8 -8
- package/dist-esm/Telemetry/PageView.js.map +1 -1
- package/dist-esm/Telemetry/PageViewPerformance.js +12 -12
- package/dist-esm/Telemetry/PageViewPerformance.js.map +1 -1
- package/dist-esm/Telemetry/RemoteDependencyData.js +22 -22
- package/dist-esm/Telemetry/RemoteDependencyData.js.map +1 -1
- package/dist-esm/Telemetry/Trace.js +5 -5
- package/dist-esm/Telemetry/Trace.js.map +1 -1
- package/dist-esm/TelemetryItemCreator.js +1 -1
- package/dist-esm/UrlHelperFuncs.js +1 -1
- package/dist-esm/Util.js +46 -3
- package/dist-esm/Util.js.map +1 -1
- package/dist-esm/applicationinsights-common.js +3 -4
- package/dist-esm/applicationinsights-common.js.map +1 -1
- package/package.json +3 -3
- package/src/Interfaces/Context/ITelemetryTrace.ts +6 -0
- package/src/Util.ts +49 -2
- package/src/applicationinsights-common.ts +6 -6
- package/types/Interfaces/Context/ITelemetryTrace.d.ts +5 -0
- package/types/Util.d.ts +9 -1
- package/types/applicationinsights-common.d.ts +2 -4
- package/types/tsdoc-metadata.json +1 -1
- package/dist-esm/Interfaces/ITraceParent.js +0 -8
- package/dist-esm/Interfaces/ITraceParent.js.map +0 -1
- package/dist-esm/W3cTraceParent.js +0 -192
- package/dist-esm/W3cTraceParent.js.map +0 -1
- package/src/Interfaces/ITraceParent.ts +0 -38
- package/src/W3cTraceParent.ts +0 -219
- package/types/Interfaces/ITraceParent.d.ts +0 -32
- package/types/W3cTraceParent.d.ts +0 -59
|
@@ -1,32 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import { ITraceParent } from "./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;
|