@microsoft/applicationinsights-common 2.8.0-nightly.2204-06 → 2.8.0-nightly.2204-07
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 +201 -55
- 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 +1198 -400
- package/dist/applicationinsights-common.api.md +101 -25
- package/dist/applicationinsights-common.d.ts +165 -28
- package/dist/applicationinsights-common.js +201 -55
- 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 +165 -28
- 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 +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 +9 -10
- 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/ITraceParent.js +8 -0
- package/dist-esm/Interfaces/ITraceParent.js.map +1 -0
- 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 +13 -12
- package/dist-esm/RequestResponseHeaders.js.map +1 -1
- package/dist-esm/StorageHelperFuncs.js +5 -5
- package/dist-esm/StorageHelperFuncs.js.map +1 -1
- package/dist-esm/Telemetry/Common/Data.js +1 -1
- package/dist-esm/Telemetry/Common/DataPoint.js +1 -1
- package/dist-esm/Telemetry/Common/DataSanitizer.js +1 -1
- package/dist-esm/Telemetry/Common/Envelope.js +1 -1
- package/dist-esm/Telemetry/Event.js +1 -1
- package/dist-esm/Telemetry/Exception.js +1 -1
- package/dist-esm/Telemetry/Metric.js +1 -1
- package/dist-esm/Telemetry/PageView.js +1 -1
- package/dist-esm/Telemetry/PageViewPerformance.js +1 -1
- package/dist-esm/Telemetry/RemoteDependencyData.js +1 -1
- package/dist-esm/Telemetry/Trace.js +1 -1
- package/dist-esm/TelemetryItemCreator.js +42 -32
- package/dist-esm/TelemetryItemCreator.js.map +1 -1
- package/dist-esm/UrlHelperFuncs.js +1 -1
- package/dist-esm/Util.js +2 -2
- package/dist-esm/Util.js.map +1 -1
- package/dist-esm/W3cTraceParent.js +192 -0
- package/dist-esm/W3cTraceParent.js.map +1 -0
- package/dist-esm/applicationinsights-common.js +3 -2
- package/dist-esm/applicationinsights-common.js.map +1 -1
- package/package.json +2 -2
- package/src/Enums.ts +2 -3
- package/src/Interfaces/Contracts/SeverityLevel.ts +15 -2
- package/src/Interfaces/IConfig.ts +2 -9
- package/src/Interfaces/ITraceParent.ts +38 -0
- package/src/RequestResponseHeaders.ts +38 -2
- package/src/StorageHelperFuncs.ts +4 -4
- package/src/TelemetryItemCreator.ts +56 -44
- package/src/Util.ts +3 -3
- package/src/W3cTraceParent.ts +219 -0
- package/src/applicationinsights-common.ts +8 -3
- package/types/Enums.d.ts +2 -9
- package/types/Interfaces/Contracts/SeverityLevel.d.ts +6 -1
- package/types/Interfaces/IConfig.d.ts +3 -9
- package/types/Interfaces/ITraceParent.d.ts +32 -0
- package/types/RequestResponseHeaders.d.ts +31 -1
- package/types/TelemetryItemCreator.d.ts +15 -5
- package/types/W3cTraceParent.d.ts +59 -0
- package/types/applicationinsights-common.d.ts +5 -3
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Microsoft Application Insights Common JavaScript Library, 2.8.0-nightly.2204-
|
|
2
|
+
* Microsoft Application Insights Common JavaScript Library, 2.8.0-nightly.2204-07
|
|
3
3
|
* Copyright (c) Microsoft and contributors. All rights reserved.
|
|
4
4
|
*
|
|
5
5
|
* Microsoft Application Insights Team
|
|
@@ -18,7 +18,6 @@ import { EnumValue } from '@microsoft/applicationinsights-core-js';
|
|
|
18
18
|
import { IChannelControls } from '@microsoft/applicationinsights-core-js';
|
|
19
19
|
import { IConfiguration } from '@microsoft/applicationinsights-core-js';
|
|
20
20
|
import { ICookieMgr } from '@microsoft/applicationinsights-core-js';
|
|
21
|
-
import { ICookieMgrConfig } from '@microsoft/applicationinsights-core-js';
|
|
22
21
|
import { ICustomProperties } from '@microsoft/applicationinsights-core-js';
|
|
23
22
|
import { IDiagnosticLogger } from '@microsoft/applicationinsights-core-js';
|
|
24
23
|
import { IPlugin } from '@microsoft/applicationinsights-core-js';
|
|
@@ -77,6 +76,31 @@ export declare const CorrelationIdHelper: ICorrelationIdHelper;
|
|
|
77
76
|
|
|
78
77
|
export declare function createDomEvent(eventName: string): Event;
|
|
79
78
|
|
|
79
|
+
/**
|
|
80
|
+
* Create a telemetry item that the 1DS channel understands
|
|
81
|
+
* @param item domain specific properties; part B
|
|
82
|
+
* @param baseType telemetry item type. ie PageViewData
|
|
83
|
+
* @param envelopeName name of the envelope. ie Microsoft.ApplicationInsights.<instrumentation key>.PageView
|
|
84
|
+
* @param customProperties user defined custom properties; part C
|
|
85
|
+
* @param systemProperties system properties that are added to the context; part A
|
|
86
|
+
* @returns ITelemetryItem that is sent to channel
|
|
87
|
+
*/
|
|
88
|
+
export declare function createTelemetryItem<T>(item: T, baseType: string, envelopeName: string, logger: IDiagnosticLogger, customProperties?: {
|
|
89
|
+
[key: string]: any;
|
|
90
|
+
}, systemProperties?: {
|
|
91
|
+
[key: string]: any;
|
|
92
|
+
}): ITelemetryItem;
|
|
93
|
+
|
|
94
|
+
/**
|
|
95
|
+
* Create a new ITraceParent instance using the provided values.
|
|
96
|
+
* @param traceId - The traceId to use, when invalid a new random W3C id will be generated.
|
|
97
|
+
* @param spanId - The parent/span id to use, a new random value will be generated if it is invalid.
|
|
98
|
+
* @param flags - The traceFlags to use, defaults to zero (0) if not supplied or invalid
|
|
99
|
+
* @param version - The version to used, defaults to version "01" if not supplied or invalid.
|
|
100
|
+
* @returns
|
|
101
|
+
*/
|
|
102
|
+
export declare function createTraceParent(traceId?: string, spanId?: string, flags?: number, version?: string): ITraceParent;
|
|
103
|
+
|
|
80
104
|
export declare let CtxTagKeys: ContextTagKeys;
|
|
81
105
|
|
|
82
106
|
export declare class Data<TDomain> implements AIData<TDomain>, ISerializable {
|
|
@@ -228,11 +252,7 @@ export declare const DEFAULT_BREEZE_ENDPOINT = "https://dc.services.visualstudio
|
|
|
228
252
|
*/
|
|
229
253
|
export declare const DisabledPropertyName: string;
|
|
230
254
|
|
|
231
|
-
export declare const DistributedTracingModes: EnumValue<
|
|
232
|
-
AI: number;
|
|
233
|
-
AI_AND_W3C: number;
|
|
234
|
-
W3C: number;
|
|
235
|
-
}>;
|
|
255
|
+
export declare const DistributedTracingModes: EnumValue<typeof eDistributedTracingModes>;
|
|
236
256
|
|
|
237
257
|
export declare type DistributedTracingModes = number | eDistributedTracingModes;
|
|
238
258
|
|
|
@@ -296,6 +316,29 @@ export declare class Envelope implements IEnvelope {
|
|
|
296
316
|
constructor(logger: IDiagnosticLogger, data: AIBase, name: string);
|
|
297
317
|
}
|
|
298
318
|
|
|
319
|
+
export declare const enum eRequestHeaders {
|
|
320
|
+
requestContextHeader = 0,
|
|
321
|
+
requestContextTargetKey = 1,
|
|
322
|
+
requestContextAppIdFormat = 2,
|
|
323
|
+
requestIdHeader = 3,
|
|
324
|
+
traceParentHeader = 4,
|
|
325
|
+
traceStateHeader = 5,
|
|
326
|
+
sdkContextHeader = 6,
|
|
327
|
+
sdkContextHeaderAppIdRequest = 7,
|
|
328
|
+
requestContextHeaderLowerCase = 8
|
|
329
|
+
}
|
|
330
|
+
|
|
331
|
+
/**
|
|
332
|
+
* Defines the level of severity for the event.
|
|
333
|
+
*/
|
|
334
|
+
export declare const enum eSeverityLevel {
|
|
335
|
+
Verbose = 0,
|
|
336
|
+
Information = 1,
|
|
337
|
+
Warning = 2,
|
|
338
|
+
Error = 3,
|
|
339
|
+
Critical = 4
|
|
340
|
+
}
|
|
341
|
+
|
|
299
342
|
declare class Event_2 implements IEventData, ISerializable {
|
|
300
343
|
static envelopeType: string;
|
|
301
344
|
static dataType: string;
|
|
@@ -403,12 +446,28 @@ export declare const enum FieldType {
|
|
|
403
446
|
Hidden = 4
|
|
404
447
|
}
|
|
405
448
|
|
|
449
|
+
/**
|
|
450
|
+
* Helper function to fetch the passed traceparent from the page, looking for it as a meta-tag or a Server-Timing header.
|
|
451
|
+
* @returns
|
|
452
|
+
*/
|
|
453
|
+
export declare function findW3cTraceParent(): ITraceParent;
|
|
454
|
+
|
|
406
455
|
/**
|
|
407
456
|
* Formats the provided errorObj for display and reporting, it may be a String, Object, integer or undefined depending on the browser.
|
|
408
457
|
* @param errorObj The supplied errorObj
|
|
409
458
|
*/
|
|
410
459
|
declare function _formatErrorCode(errorObj: any): any;
|
|
411
460
|
|
|
461
|
+
/**
|
|
462
|
+
* Format the ITraceParent value as a string using the supported and know version formats.
|
|
463
|
+
* So even if the passed traceParent is a later version the string value returned from this
|
|
464
|
+
* function will convert it to only the known version formats.
|
|
465
|
+
* This currently only supports version "00" and invalid "ff"
|
|
466
|
+
* @param value - The parsed traceParent value
|
|
467
|
+
* @returns
|
|
468
|
+
*/
|
|
469
|
+
export declare function formatTraceParent(value: ITraceParent): string;
|
|
470
|
+
|
|
412
471
|
export declare function getExtensionByName(extensions: IPlugin[], identifier: string): IPlugin | null;
|
|
413
472
|
|
|
414
473
|
export declare const HttpMethod = "http.method";
|
|
@@ -659,7 +718,7 @@ export declare interface IConfig {
|
|
|
659
718
|
*/
|
|
660
719
|
enableSessionStorageBuffer?: boolean;
|
|
661
720
|
/**
|
|
662
|
-
* @deprecated Use either disableCookiesUsage or specify a
|
|
721
|
+
* @deprecated Use either disableCookiesUsage or specify a cookieCfg with the enabled value set.
|
|
663
722
|
* If true, the SDK will not store or read any data from cookies. Default is false. As this field is being deprecated, when both
|
|
664
723
|
* isCookieUseDisabled and disableCookiesUsage are used disableCookiesUsage will take precedent.
|
|
665
724
|
* @defaultValue false
|
|
@@ -667,7 +726,7 @@ export declare interface IConfig {
|
|
|
667
726
|
isCookieUseDisabled?: boolean;
|
|
668
727
|
/**
|
|
669
728
|
* If true, the SDK will not store or read any data from cookies. Default is false.
|
|
670
|
-
* If you have also specified a
|
|
729
|
+
* If you have also specified a cookieCfg then enabled property (if specified) will take precedent over this value.
|
|
671
730
|
* @defaultValue false
|
|
672
731
|
*/
|
|
673
732
|
disableCookiesUsage?: boolean;
|
|
@@ -681,12 +740,6 @@ export declare interface IConfig {
|
|
|
681
740
|
* @defaultValue ""
|
|
682
741
|
*/
|
|
683
742
|
cookiePath?: string;
|
|
684
|
-
/**
|
|
685
|
-
* [Optional] A Cookie Manager configuration which includes hooks to allow interception of the get, set and delete cookie
|
|
686
|
-
* operations. If this configuration is specified any specified enabled and domain properties will take precedence over the
|
|
687
|
-
* cookieDomain and disableCookiesUsage values.
|
|
688
|
-
*/
|
|
689
|
-
cookieMgrCfg?: ICookieMgrConfig;
|
|
690
743
|
/**
|
|
691
744
|
* Default false. If false, retry on 206 (partial success), 408 (timeout), 429 (too many requests), 500 (internal server error), 503 (service unavailable), and 0 (offline, only if detected)
|
|
692
745
|
* @description
|
|
@@ -1845,6 +1898,13 @@ export declare interface ISession {
|
|
|
1845
1898
|
|
|
1846
1899
|
export declare function isInternalApplicationInsightsEndpoint(endpointUrl: string): boolean;
|
|
1847
1900
|
|
|
1901
|
+
/**
|
|
1902
|
+
* Is the parsed traceParent indicating that the trace is currently sampled.
|
|
1903
|
+
* @param value - The parsed traceParent value
|
|
1904
|
+
* @returns
|
|
1905
|
+
*/
|
|
1906
|
+
export declare function isSampledFlag(value: ITraceParent): boolean;
|
|
1907
|
+
|
|
1848
1908
|
declare interface IStackDetails {
|
|
1849
1909
|
src: string;
|
|
1850
1910
|
obj: string[];
|
|
@@ -1876,6 +1936,31 @@ declare interface IStackFrame {
|
|
|
1876
1936
|
line: number;
|
|
1877
1937
|
}
|
|
1878
1938
|
|
|
1939
|
+
/**
|
|
1940
|
+
* Is the provided W3c span id (aka. parent id) a valid string representation, it must be a 16-character
|
|
1941
|
+
* string of lowercase hexadecimal characters, for example, 00f067aa0ba902b7.
|
|
1942
|
+
* If all characters are zero (0000000000000000) this is considered an invalid value.
|
|
1943
|
+
* @param value - The W3c span id to be validated
|
|
1944
|
+
* @returns true if valid otherwise false
|
|
1945
|
+
*/
|
|
1946
|
+
export declare function isValidSpanId(value: string): boolean;
|
|
1947
|
+
|
|
1948
|
+
/**
|
|
1949
|
+
* Is the provided W3c Trace Id a valid string representation, it must be a 32-character string
|
|
1950
|
+
* of lowercase hexadecimal characters for example, 4bf92f3577b34da6a3ce929d0e0e4736.
|
|
1951
|
+
* If all characters as zero (00000000000000000000000000000000) it will be considered an invalid value.
|
|
1952
|
+
* @param value - The W3c trace Id to be validated
|
|
1953
|
+
* @returns true if valid otherwise false
|
|
1954
|
+
*/
|
|
1955
|
+
export declare function isValidTraceId(value: string): boolean;
|
|
1956
|
+
|
|
1957
|
+
/**
|
|
1958
|
+
* Validates that the provided ITraceParent instance conforms to the currently supported specifications
|
|
1959
|
+
* @param value
|
|
1960
|
+
* @returns
|
|
1961
|
+
*/
|
|
1962
|
+
export declare function isValidTraceParent(value: ITraceParent): boolean;
|
|
1963
|
+
|
|
1879
1964
|
export declare interface ITelemetryContext {
|
|
1880
1965
|
/**
|
|
1881
1966
|
* The object describing a component tracked by this object.
|
|
@@ -1942,6 +2027,39 @@ export declare interface ITelemetryTrace {
|
|
|
1942
2027
|
name?: string;
|
|
1943
2028
|
}
|
|
1944
2029
|
|
|
2030
|
+
/**
|
|
2031
|
+
* This interface represents the components of a W3C traceparent header
|
|
2032
|
+
*/
|
|
2033
|
+
export declare interface ITraceParent {
|
|
2034
|
+
/**
|
|
2035
|
+
* The version of the definition, this MUST be a string with a length of 2 and only contain lowercase
|
|
2036
|
+
* hexadecimal characters. A value of 'ff' is considered to be an invalid version.
|
|
2037
|
+
*/
|
|
2038
|
+
version: string;
|
|
2039
|
+
/**
|
|
2040
|
+
* This is the ID of the whole trace forest and is used to uniquely identify a distributed trace
|
|
2041
|
+
* through a system. It is represented as a 32-character string of lowercase hexadecimal characters,
|
|
2042
|
+
* for example, 4bf92f3577b34da6a3ce929d0e0e4736.
|
|
2043
|
+
* All characters as zero (00000000000000000000000000000000) is considered an invalid value.
|
|
2044
|
+
*/
|
|
2045
|
+
traceId: string;
|
|
2046
|
+
/**
|
|
2047
|
+
* This is the ID of the current request as known by the caller (in some tracing systems, this is also
|
|
2048
|
+
* known as the parent-id, where a span is the execution of a client request). It is represented as an
|
|
2049
|
+
* 16-character string of lowercase hexadecimal characters, for example, 00f067aa0ba902b7.
|
|
2050
|
+
* All bytes as zero (0000000000000000) is considered an invalid value.
|
|
2051
|
+
*/
|
|
2052
|
+
spanId: string;
|
|
2053
|
+
/**
|
|
2054
|
+
* An 8-bit value of flags that controls tracing such as sampling, trace level, etc. These flags are
|
|
2055
|
+
* recommendations given by the caller rather than strict rules to follow.
|
|
2056
|
+
* As this is a bit field, you cannot interpret flags by decoding the hex value and looking at the resulting
|
|
2057
|
+
* number. For example, a flag 00000001 could be encoded as 01 in hex, or 09 in hex if present with the flag
|
|
2058
|
+
* 00001000. A common mistake in bit fields is forgetting to mask when interpreting flags.
|
|
2059
|
+
*/
|
|
2060
|
+
traceFlags: number;
|
|
2061
|
+
}
|
|
2062
|
+
|
|
1945
2063
|
export declare interface ITraceState {
|
|
1946
2064
|
}
|
|
1947
2065
|
|
|
@@ -2378,6 +2496,14 @@ export declare class PageViewPerformance implements IPageViewPerfData, ISerializ
|
|
|
2378
2496
|
|
|
2379
2497
|
export declare function parseConnectionString(connectionString?: string): ConnectionString;
|
|
2380
2498
|
|
|
2499
|
+
/**
|
|
2500
|
+
* Attempt to parse the provided string as a W3C TraceParent header value (https://www.w3.org/TR/trace-context/#traceparent-header)
|
|
2501
|
+
*
|
|
2502
|
+
* @param value
|
|
2503
|
+
* @returns
|
|
2504
|
+
*/
|
|
2505
|
+
export declare function parseTraceParent(value: string): ITraceParent;
|
|
2506
|
+
|
|
2381
2507
|
export declare const ProcessLegacy = "ProcessLegacy";
|
|
2382
2508
|
|
|
2383
2509
|
export declare const PropertiesPluginIdentifier = "AppInsightsPropertiesPlugin";
|
|
@@ -2458,20 +2584,35 @@ export declare class RemoteDependencyData implements IRemoteDependencyData, ISer
|
|
|
2458
2584
|
constructor(logger: IDiagnosticLogger, id: string, absoluteUrl: string, commandName: string, value: number, success: boolean, resultCode: number, method?: string, requestAPI?: string, correlationContext?: string, properties?: Object, measurements?: Object);
|
|
2459
2585
|
}
|
|
2460
2586
|
|
|
2461
|
-
export declare const RequestHeaders: IRequestHeaders
|
|
2587
|
+
export declare const RequestHeaders: IRequestHeaders & {
|
|
2588
|
+
requestContextHeader: "Request-Context";
|
|
2589
|
+
requestContextTargetKey: "appId";
|
|
2590
|
+
requestContextAppIdFormat: "appId=cid-v1:";
|
|
2591
|
+
requestIdHeader: "Request-Id";
|
|
2592
|
+
traceParentHeader: "traceparent";
|
|
2593
|
+
traceStateHeader: "tracestate";
|
|
2594
|
+
sdkContextHeader: "Sdk-Context";
|
|
2595
|
+
sdkContextHeaderAppIdRequest: "appId";
|
|
2596
|
+
requestContextHeaderLowerCase: "request-context";
|
|
2597
|
+
0: "Request-Context";
|
|
2598
|
+
1: "appId";
|
|
2599
|
+
2: "appId=cid-v1:";
|
|
2600
|
+
3: "Request-Id";
|
|
2601
|
+
4: "traceparent";
|
|
2602
|
+
5: "tracestate";
|
|
2603
|
+
6: "Sdk-Context";
|
|
2604
|
+
7: "appId";
|
|
2605
|
+
8: "request-context";
|
|
2606
|
+
};
|
|
2462
2607
|
|
|
2463
2608
|
export declare const SampleRate = "sampleRate";
|
|
2464
2609
|
|
|
2465
2610
|
/**
|
|
2466
2611
|
* Defines the level of severity for the event.
|
|
2467
2612
|
*/
|
|
2468
|
-
export declare
|
|
2469
|
-
|
|
2470
|
-
|
|
2471
|
-
Warning = 2,
|
|
2472
|
-
Error = 3,
|
|
2473
|
-
Critical = 4
|
|
2474
|
-
}
|
|
2613
|
+
export declare const SeverityLevel: EnumValue<typeof eSeverityLevel>;
|
|
2614
|
+
|
|
2615
|
+
export declare type SeverityLevel = number | eSeverityLevel;
|
|
2475
2616
|
|
|
2476
2617
|
export declare function stringToBoolOrDefault(str: any, defaultValue?: boolean): boolean;
|
|
2477
2618
|
|
|
@@ -2487,11 +2628,7 @@ export declare class TelemetryItemCreator {
|
|
|
2487
2628
|
* @param systemProperties system properties that are added to the context; part A
|
|
2488
2629
|
* @returns ITelemetryItem that is sent to channel
|
|
2489
2630
|
*/
|
|
2490
|
-
static create
|
|
2491
|
-
[key: string]: any;
|
|
2492
|
-
}, systemProperties?: {
|
|
2493
|
-
[key: string]: any;
|
|
2494
|
-
}): ITelemetryItem;
|
|
2631
|
+
static create: typeof createTelemetryItem;
|
|
2495
2632
|
}
|
|
2496
2633
|
|
|
2497
2634
|
export declare class Trace implements IMessageData, ISerializable {
|
package/dist-esm/Constants.js
CHANGED
package/dist-esm/Enums.js
CHANGED
package/dist-esm/HelperFuncs.js
CHANGED
|
@@ -1,19 +1,18 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Application Insights JavaScript SDK - Common, 2.8.0-nightly.2204-
|
|
2
|
+
* Application Insights JavaScript SDK - Common, 2.8.0-nightly.2204-07
|
|
3
3
|
* Copyright (c) Microsoft and contributors. All rights reserved.
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
import { createEnumStyle } from "@microsoft/applicationinsights-core-js";
|
|
8
8
|
/**
|
|
9
9
|
* Defines the level of severity for the event.
|
|
10
10
|
*/
|
|
11
|
-
export var SeverityLevel
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
})(SeverityLevel || (SeverityLevel = {}));
|
|
11
|
+
export var SeverityLevel = createEnumStyle({
|
|
12
|
+
Verbose: 0 /* Verbose */,
|
|
13
|
+
Information: 1 /* Information */,
|
|
14
|
+
Warning: 2 /* Warning */,
|
|
15
|
+
Error: 3 /* Error */,
|
|
16
|
+
Critical: 4 /* Critical */
|
|
17
|
+
});
|
|
19
18
|
//# sourceMappingURL=SeverityLevel.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SeverityLevel.js.map","sources":["SeverityLevel.js"],"sourcesContent":["// Copyright (c) Microsoft Corporation. All rights reserved.\r\n// Licensed under the MIT License.\r\
|
|
1
|
+
{"version":3,"file":"SeverityLevel.js.map","sources":["SeverityLevel.js"],"sourcesContent":["// Copyright (c) Microsoft Corporation. All rights reserved.\r\n// Licensed under the MIT License.\r\nimport { createEnumStyle } from \"@microsoft/applicationinsights-core-js\";\r\n/**\r\n * Defines the level of severity for the event.\r\n */\r\nexport var SeverityLevel = createEnumStyle({\r\n Verbose: 0 /* Verbose */,\r\n Information: 1 /* Information */,\r\n Warning: 2 /* Warning */,\r\n Error: 3 /* Error */,\r\n Critical: 4 /* Critical */\r\n});\r\n//# sourceMappingURL=SeverityLevel.js.map"],"names":[],"mappings":";;;;AAA4D;AAC1B;AAClC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA"}
|