@microsoft/applicationinsights-dependencies-js 3.0.0-beta.2303-10 → 3.0.0-beta.2304-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.
Files changed (64) hide show
  1. package/browser/es5/applicationinsights-dependencies-js.cjs.js +4892 -0
  2. package/browser/es5/applicationinsights-dependencies-js.cjs.js.map +1 -0
  3. package/browser/es5/applicationinsights-dependencies-js.cjs.min.js +6 -0
  4. package/browser/es5/applicationinsights-dependencies-js.cjs.min.js.map +1 -0
  5. package/browser/es5/applicationinsights-dependencies-js.gbl.js +4896 -0
  6. package/browser/es5/applicationinsights-dependencies-js.gbl.js.map +1 -0
  7. package/browser/es5/applicationinsights-dependencies-js.gbl.min.js +6 -0
  8. package/browser/es5/applicationinsights-dependencies-js.gbl.min.js.map +1 -0
  9. package/browser/es5/applicationinsights-dependencies-js.integrity.json +66 -0
  10. package/browser/{applicationinsights-dependencies-js.js → es5/applicationinsights-dependencies-js.js} +889 -859
  11. package/browser/es5/applicationinsights-dependencies-js.js.map +1 -0
  12. package/browser/es5/applicationinsights-dependencies-js.min.js +6 -0
  13. package/browser/es5/applicationinsights-dependencies-js.min.js.map +1 -0
  14. package/dist/{applicationinsights-dependencies-js.js → es5/applicationinsights-dependencies-js.js} +889 -859
  15. package/dist/es5/applicationinsights-dependencies-js.js.map +1 -0
  16. package/dist/es5/applicationinsights-dependencies-js.min.js +6 -0
  17. package/dist/es5/applicationinsights-dependencies-js.min.js.map +1 -0
  18. package/{dist-esm → dist-es5}/DependencyInitializer.js +1 -1
  19. package/{dist-esm → dist-es5}/DependencyListener.js +1 -1
  20. package/{dist-esm → dist-es5}/InternalConstants.js +1 -1
  21. package/{dist-esm → dist-es5}/__DynamicConstants.js +1 -1
  22. package/{dist-esm → dist-es5}/ajax.js +5 -5
  23. package/dist-es5/ajax.js.map +1 -0
  24. package/{dist-esm → dist-es5}/ajaxRecord.js +1 -1
  25. package/{dist-esm → dist-es5}/ajaxUtils.js +1 -1
  26. package/{dist-esm → dist-es5}/applicationinsights-dependencies-js.js +1 -1
  27. package/package.json +18 -17
  28. package/tsconfig.json +5 -4
  29. package/types/applicationinsights-dependencies-js.d.ts +284 -4
  30. package/{dist/applicationinsights-dependencies-js.d.ts → types/applicationinsights-dependencies-js.namespaced.d.ts} +1 -1
  31. package/browser/applicationinsights-dependencies-js.integrity.json +0 -26
  32. package/browser/applicationinsights-dependencies-js.js.map +0 -1
  33. package/browser/applicationinsights-dependencies-js.min.js +0 -6
  34. package/browser/applicationinsights-dependencies-js.min.js.map +0 -1
  35. package/dist/applicationinsights-dependencies-js.api.json +0 -2904
  36. package/dist/applicationinsights-dependencies-js.api.md +0 -197
  37. package/dist/applicationinsights-dependencies-js.js.map +0 -1
  38. package/dist/applicationinsights-dependencies-js.min.js +0 -6
  39. package/dist/applicationinsights-dependencies-js.min.js.map +0 -1
  40. package/dist/applicationinsights-dependencies-js.rollup.d.ts +0 -285
  41. package/dist-esm/ajax.js.map +0 -1
  42. package/src/DependencyInitializer.ts +0 -49
  43. package/src/DependencyListener.ts +0 -82
  44. package/src/InternalConstants.ts +0 -13
  45. package/src/__DynamicConstants.ts +0 -68
  46. package/src/ajax.ts +0 -1290
  47. package/src/ajaxRecord.ts +0 -436
  48. package/src/ajaxUtils.ts +0 -23
  49. package/src/applicationinsights-dependencies-js.ts +0 -9
  50. package/types/DependencyInitializer.d.ts +0 -45
  51. package/types/DependencyListener.d.ts +0 -69
  52. package/types/InternalConstants.d.ts +0 -2
  53. package/types/__DynamicConstants.d.ts +0 -56
  54. package/types/ajax.d.ts +0 -63
  55. package/types/ajaxRecord.d.ts +0 -80
  56. package/types/ajaxUtils.d.ts +0 -3
  57. package/types/tsdoc-metadata.json +0 -11
  58. /package/{dist-esm → dist-es5}/DependencyInitializer.js.map +0 -0
  59. /package/{dist-esm → dist-es5}/DependencyListener.js.map +0 -0
  60. /package/{dist-esm → dist-es5}/InternalConstants.js.map +0 -0
  61. /package/{dist-esm → dist-es5}/__DynamicConstants.js.map +0 -0
  62. /package/{dist-esm → dist-es5}/ajaxRecord.js.map +0 -0
  63. /package/{dist-esm → dist-es5}/ajaxUtils.js.map +0 -0
  64. /package/{dist-esm → dist-es5}/applicationinsights-dependencies-js.js.map +0 -0
package/types/ajax.d.ts DELETED
@@ -1,63 +0,0 @@
1
- import { IConfig, IDependencyTelemetry } from "@microsoft/applicationinsights-common";
2
- import { BaseTelemetryPlugin, IAppInsightsCore, IConfiguration, IPlugin, IProcessTelemetryContext, ITelemetryItem, ITelemetryPluginChain } from "@microsoft/applicationinsights-core-js";
3
- import { DependencyInitializerFunction, IDependencyInitializerHandler } from "./DependencyInitializer";
4
- import { DependencyListenerFunction, IDependencyListenerContainer, IDependencyListenerHandler } from "./DependencyListener";
5
- import { _DYN_INCLUDE_CORRELATION_2 } from "./__DynamicConstants";
6
- import { ajaxRecord } from "./ajaxRecord";
7
- export interface XMLHttpRequestInstrumented extends XMLHttpRequest {
8
- ajaxData: ajaxRecord;
9
- }
10
- export declare const DfltAjaxCorrelationHeaderExDomains: string[];
11
- export interface IDependenciesPlugin extends IDependencyListenerContainer {
12
- /**
13
- * Logs dependency call
14
- * @param dependencyData - dependency data object
15
- */
16
- trackDependencyData(dependency: IDependencyTelemetry): void;
17
- }
18
- export interface IInstrumentationRequirements extends IDependenciesPlugin {
19
- [_DYN_INCLUDE_CORRELATION_2]: (ajaxData: ajaxRecord, input?: Request | string, init?: RequestInit, xhr?: XMLHttpRequestInstrumented) => any;
20
- }
21
- export declare class AjaxMonitor extends BaseTelemetryPlugin implements IDependenciesPlugin, IInstrumentationRequirements, IDependencyListenerContainer {
22
- static identifier: string;
23
- identifier: string;
24
- priority: number;
25
- constructor();
26
- initialize(config: IConfiguration & IConfig, core: IAppInsightsCore, extensions: IPlugin[], pluginChain?: ITelemetryPluginChain): void;
27
- processTelemetry(item: ITelemetryItem, itemCtx?: IProcessTelemetryContext): void;
28
- /**
29
- * Logs dependency call
30
- * @param dependencyData - dependency data object
31
- */
32
- trackDependencyData(dependency: IDependencyTelemetry, properties?: {
33
- [key: string]: any;
34
- }): void;
35
- includeCorrelationHeaders(ajaxData: ajaxRecord, input?: Request | string, init?: RequestInit, xhr?: XMLHttpRequestInstrumented): any;
36
- /**
37
- * Add an ajax listener which is called just prior to the request being sent and before the correlation headers are added, to allow you
38
- * to access the headers and modify the values used to generate the distributed tracing correlation headers.
39
- * @param dependencyListener - The Telemetry Initializer function
40
- * @returns - A IDependencyListenerHandler to enable the initializer to be removed
41
- */
42
- addDependencyListener(dependencyListener: DependencyListenerFunction): IDependencyListenerHandler;
43
- /**
44
- * Add an dependency telemetry initializer callback function to allow populating additional properties or drop the request.
45
- * It is called after the dependency call has completed and any available performance details are available. A dependency
46
- * initializer is similar to the TelemetryInitializer function but it allows you to block the reporting of the dependency
47
- * request so that it doesn't count against the `maxAjaxCallsPerView`.
48
- * @param dependencyInitializer - The Dependency Telemetry Initializer function
49
- * @returns - A IDependencyInitializerHandler to enable the initializer to be removed
50
- */
51
- addDependencyInitializer(dependencyInitializer: DependencyInitializerFunction): IDependencyInitializerHandler;
52
- /**
53
- * Protected function to allow sub classes the chance to add additional properties to the dependency event
54
- * before it's sent. This function calls track, so sub-classes must call this function after they have
55
- * populated their properties.
56
- * @param dependencyData - dependency data object
57
- */
58
- protected trackDependencyDataInternal(dependency: IDependencyTelemetry, properties?: {
59
- [key: string]: any;
60
- }, systemProperties?: {
61
- [key: string]: any;
62
- }): void;
63
- }
@@ -1,80 +0,0 @@
1
- import { IDependencyTelemetry } from "@microsoft/applicationinsights-common";
2
- import { IDiagnosticLogger, IDistributedTraceContext } from "@microsoft/applicationinsights-core-js";
3
- import { _DYN_HEADER_MAP } from "./__DynamicConstants";
4
- export interface IAjaxRecordResponse {
5
- statusText: string;
6
- [_DYN_HEADER_MAP]: Object;
7
- correlationContext: string;
8
- type?: string;
9
- responseText?: string;
10
- response?: Object;
11
- }
12
- interface ITraceCtx {
13
- traceId: string;
14
- spanId: string;
15
- traceFlags: number;
16
- }
17
- export declare class XHRMonitoringState {
18
- openDone: boolean;
19
- setRequestHeaderDone: boolean;
20
- sendDone: boolean;
21
- abortDone: boolean;
22
- stateChangeAttached: boolean;
23
- constructor();
24
- }
25
- export declare class ajaxRecord {
26
- completed: boolean;
27
- requestHeadersSize: number;
28
- requestHeaders: any;
29
- responseReceivingDuration: number;
30
- callbackDuration: number;
31
- ajaxTotalDuration: number;
32
- aborted: number;
33
- pageUrl: string;
34
- requestUrl: string;
35
- requestSize: number;
36
- method: string;
37
- perfMark: PerformanceMark;
38
- perfTiming: PerformanceResourceTiming;
39
- perfAttempts?: number;
40
- async?: boolean;
41
- errorStatusText?: boolean;
42
- status: string | number;
43
- requestSentTime: number;
44
- responseStartedTime: number;
45
- responseFinishedTime: number;
46
- callbackFinishedTime: number;
47
- endTime: number;
48
- xhrMonitoringState: XHRMonitoringState;
49
- clientFailure: number;
50
- /**
51
- * The traceId to use for the dependency call
52
- */
53
- traceID: string;
54
- /**
55
- * The spanId to use for the dependency call
56
- */
57
- spanID: string;
58
- /**
59
- * The traceFlags to use for the dependency call
60
- */
61
- traceFlags?: number;
62
- /**
63
- * The trace context to use for reporting the remote dependency call
64
- */
65
- eventTraceCtx: ITraceCtx;
66
- /**
67
- * The listener assigned context values that will be passed to any dependency initializer
68
- */
69
- context?: {
70
- [key: string]: any;
71
- };
72
- constructor(traceId: string, spanId: string, logger: IDiagnosticLogger, traceCtx?: IDistributedTraceContext);
73
- getAbsoluteUrl(): string;
74
- getPathName(): string;
75
- CreateTrackItem(ajaxType: string, enableRequestHeaderTracking: boolean, getResponse: () => IAjaxRecordResponse): IDependencyTelemetry;
76
- getPartAProps(): {
77
- [key: string]: any;
78
- };
79
- }
80
- export {};
@@ -1,3 +0,0 @@
1
- export declare class stringUtils {
2
- static GetLength(strObject: any): number;
3
- }
@@ -1,11 +0,0 @@
1
- // This file is read by tools that parse documentation comments conforming to the TSDoc standard.
2
- // It should be published with your NPM package. It should not be tracked by Git.
3
- {
4
- "tsdocVersion": "0.12",
5
- "toolPackages": [
6
- {
7
- "packageName": "@microsoft/api-extractor",
8
- "packageVersion": "7.34.4"
9
- }
10
- ]
11
- }
File without changes
File without changes
File without changes