@newrelic/browser-agent 1.236.0 → 1.237.1
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/dist/cjs/common/config/state/init.js +1 -0
- package/dist/cjs/common/config/state/runtime.js +2 -1
- package/dist/cjs/common/constants/env.cdn.js +1 -1
- package/dist/cjs/common/constants/env.npm.js +1 -1
- package/dist/cjs/common/deny-list/deny-list.js +14 -10
- package/dist/cjs/common/harvest/harvest.js +8 -22
- package/dist/cjs/common/util/submit-data.js +4 -36
- package/dist/cjs/common/wrap/wrap-jsonp.js +12 -6
- package/dist/cjs/features/ajax/aggregate/index.js +24 -27
- package/dist/cjs/features/jserrors/aggregate/compute-stack-trace.js +1 -1
- package/dist/cjs/features/jserrors/constants.js +2 -4
- package/dist/cjs/features/jserrors/instrument/index.js +79 -88
- package/dist/cjs/features/jserrors/instrument/uncaught-error.js +22 -0
- package/dist/cjs/features/metrics/aggregate/index.js +8 -0
- package/dist/cjs/features/page_view_event/aggregate/initialized-features.js +23 -19
- package/dist/cjs/features/session_replay/aggregate/index.js +65 -34
- package/dist/cjs/features/session_trace/aggregate/index.js +3 -4
- package/dist/cjs/features/spa/aggregate/index.js +1 -1
- package/dist/cjs/features/utils/instrument-base.js +6 -8
- package/dist/cjs/loaders/agent-base.js +87 -0
- package/dist/cjs/loaders/agent.js +41 -1
- package/dist/cjs/loaders/api/api.js +1 -1
- package/dist/cjs/loaders/api/interaction-types.js +87 -0
- package/dist/cjs/loaders/configure/configure.js +3 -1
- package/dist/cjs/loaders/micro-agent.js +3 -1
- package/dist/esm/common/config/state/init.js +1 -0
- package/dist/esm/common/config/state/runtime.js +2 -1
- package/dist/esm/common/constants/env.cdn.js +1 -1
- package/dist/esm/common/constants/env.npm.js +1 -1
- package/dist/esm/common/deny-list/deny-list.js +14 -10
- package/dist/esm/common/harvest/harvest.js +7 -22
- package/dist/esm/common/util/submit-data.js +4 -35
- package/dist/esm/common/wrap/wrap-jsonp.js +12 -6
- package/dist/esm/features/ajax/aggregate/index.js +25 -28
- package/dist/esm/features/jserrors/aggregate/compute-stack-trace.js +1 -1
- package/dist/esm/features/jserrors/constants.js +1 -2
- package/dist/esm/features/jserrors/instrument/index.js +78 -87
- package/dist/esm/features/jserrors/instrument/uncaught-error.js +15 -0
- package/dist/esm/features/metrics/aggregate/index.js +8 -0
- package/dist/esm/features/page_view_event/aggregate/initialized-features.js +23 -19
- package/dist/esm/features/session_replay/aggregate/index.js +65 -34
- package/dist/esm/features/session_trace/aggregate/index.js +3 -4
- package/dist/esm/features/spa/aggregate/index.js +1 -1
- package/dist/esm/features/utils/instrument-base.js +7 -9
- package/dist/esm/loaders/agent-base.js +80 -0
- package/dist/esm/loaders/agent.js +41 -1
- package/dist/esm/loaders/api/api.js +1 -1
- package/dist/esm/loaders/api/interaction-types.js +80 -0
- package/dist/esm/loaders/configure/configure.js +5 -3
- package/dist/esm/loaders/micro-agent.js +3 -1
- package/dist/types/common/config/state/runtime.d.ts.map +1 -1
- package/dist/types/common/event-emitter/register-handler.d.ts +1 -1
- package/dist/types/common/harvest/harvest.d.ts.map +1 -1
- package/dist/types/common/session/session-entity.d.ts +6 -6
- package/dist/types/common/util/submit-data.d.ts +2 -20
- package/dist/types/common/util/submit-data.d.ts.map +1 -1
- package/dist/types/common/window/nreum.d.ts +2 -2
- package/dist/types/common/wrap/wrap-jsonp.d.ts.map +1 -1
- package/dist/types/features/ajax/aggregate/index.d.ts +5 -5
- package/dist/types/features/ajax/aggregate/index.d.ts.map +1 -1
- package/dist/types/features/jserrors/constants.d.ts +0 -1
- package/dist/types/features/jserrors/constants.d.ts.map +1 -1
- package/dist/types/features/jserrors/instrument/index.d.ts +0 -13
- package/dist/types/features/jserrors/instrument/index.d.ts.map +1 -1
- package/dist/types/features/jserrors/instrument/uncaught-error.d.ts +15 -0
- package/dist/types/features/jserrors/instrument/uncaught-error.d.ts.map +1 -0
- package/dist/types/features/metrics/aggregate/endpoint-map.d.ts +5 -5
- package/dist/types/features/metrics/aggregate/index.d.ts.map +1 -1
- package/dist/types/features/page_view_event/aggregate/initialized-features.d.ts.map +1 -1
- package/dist/types/features/session_replay/aggregate/index.d.ts +16 -30
- package/dist/types/features/session_replay/aggregate/index.d.ts.map +1 -1
- package/dist/types/features/session_trace/aggregate/index.d.ts.map +1 -1
- package/dist/types/features/utils/instrument-base.d.ts.map +1 -1
- package/dist/types/loaders/agent-base.d.ts +59 -0
- package/dist/types/loaders/agent-base.d.ts.map +1 -0
- package/dist/types/loaders/agent.d.ts +35 -1
- package/dist/types/loaders/agent.d.ts.map +1 -1
- package/dist/types/loaders/api/interaction-types.d.ts +122 -0
- package/dist/types/loaders/api/interaction-types.d.ts.map +1 -0
- package/dist/types/loaders/configure/configure.d.ts.map +1 -1
- package/dist/types/loaders/features/features.d.ts +9 -9
- package/dist/types/loaders/micro-agent.d.ts +3 -2
- package/dist/types/loaders/micro-agent.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/common/config/state/init.js +1 -1
- package/src/common/config/state/runtime.js +2 -1
- package/src/common/deny-list/deny-list.js +11 -11
- package/src/common/deny-list/deny-list.test.js +31 -0
- package/src/common/harvest/harvest.js +8 -18
- package/src/common/harvest/harvest.test.js +16 -36
- package/src/common/util/__mocks__/submit-data.js +0 -1
- package/src/common/util/submit-data.js +2 -24
- package/src/common/util/submit-data.test.js +0 -56
- package/src/common/wrap/wrap-jsonp.js +11 -6
- package/src/features/ajax/aggregate/index.js +25 -31
- package/src/features/jserrors/aggregate/compute-stack-trace.js +1 -1
- package/src/features/jserrors/constants.js +0 -1
- package/src/features/jserrors/instrument/index.js +91 -87
- package/src/features/jserrors/instrument/uncaught-error.js +15 -0
- package/src/features/metrics/aggregate/index.js +8 -0
- package/src/features/page_view_event/aggregate/initialized-features.js +18 -14
- package/src/features/session_replay/aggregate/index.component-test.js +17 -56
- package/src/features/session_replay/aggregate/index.js +47 -28
- package/src/features/session_trace/aggregate/index.js +3 -4
- package/src/features/spa/aggregate/index.js +1 -1
- package/src/features/utils/instrument-base.js +6 -9
- package/src/features/utils/instrument-base.test.js +7 -0
- package/src/loaders/agent-base.js +81 -0
- package/src/loaders/agent.js +42 -1
- package/src/loaders/api/api.js +1 -1
- package/src/loaders/api/interaction-types.js +80 -0
- package/src/loaders/configure/configure.js +14 -4
- package/src/loaders/micro-agent.js +4 -1
- package/dist/cjs/features/jserrors/instrument/debug.js +0 -40
- package/dist/esm/features/jserrors/instrument/debug.js +0 -38
- package/dist/types/features/jserrors/instrument/debug.d.ts +0 -2
- package/dist/types/features/jserrors/instrument/debug.d.ts.map +0 -1
- package/src/features/jserrors/instrument/debug.js +0 -36
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @typedef {xhr|
|
|
2
|
+
* @typedef {xhr|beacon} NetworkMethods
|
|
3
3
|
*/
|
|
4
4
|
/**
|
|
5
5
|
* Determines the submit method to use based on options.
|
|
@@ -30,24 +30,6 @@ export function xhr({ url, body, sync, method, headers }: {
|
|
|
30
30
|
value: string;
|
|
31
31
|
}[] | undefined;
|
|
32
32
|
}): XMLHttpRequest;
|
|
33
|
-
/**
|
|
34
|
-
* Send via fetch with keepalive true
|
|
35
|
-
* @param {Object} args - The args.
|
|
36
|
-
* @param {string} args.url - The URL to send to.
|
|
37
|
-
* @param {string=} args.body - The Stringified body.
|
|
38
|
-
* @param {string=} [args.method=POST] - The XHR method to use.
|
|
39
|
-
* @param {{key: string, value: string}[]} [args.headers] - The headers to attach.
|
|
40
|
-
* @returns {XMLHttpRequest}
|
|
41
|
-
*/
|
|
42
|
-
export function fetchKeepAlive({ url, body, method, headers }: {
|
|
43
|
-
url: string;
|
|
44
|
-
body?: string | undefined;
|
|
45
|
-
method?: string | undefined;
|
|
46
|
-
headers?: {
|
|
47
|
-
key: string;
|
|
48
|
-
value: string;
|
|
49
|
-
}[] | undefined;
|
|
50
|
-
}): XMLHttpRequest;
|
|
51
33
|
/**
|
|
52
34
|
* Send via sendBeacon. Do NOT call this function outside of a guaranteed web window environment.
|
|
53
35
|
* @param {Object} args - The args
|
|
@@ -59,5 +41,5 @@ export function beacon({ url, body }: {
|
|
|
59
41
|
url: string;
|
|
60
42
|
body?: string | undefined;
|
|
61
43
|
}): boolean;
|
|
62
|
-
export type NetworkMethods = typeof xhr | typeof
|
|
44
|
+
export type NetworkMethods = typeof xhr | typeof beacon;
|
|
63
45
|
//# sourceMappingURL=submit-data.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"submit-data.d.ts","sourceRoot":"","sources":["../../../../src/common/util/submit-data.js"],"names":[],"mappings":"AAQA;;GAEG;AAEH;;;;;GAKG;AACH;IAHyB,cAAc,EAA5B,OAAO;+BAUjB;AAED;;;;;;;;;GASG;AACH;IAPwB,GAAG,EAAhB,MAAM;IACQ,IAAI,GAAlB,MAAM;IACS,IAAI,GAAnB,OAAO;IACQ,MAAM,GAArB,MAAM;IACgC,OAAO;aAAvC,MAAM;eAAS,MAAM;;IACzB,cAAc,CAmB1B;AAED
|
|
1
|
+
{"version":3,"file":"submit-data.d.ts","sourceRoot":"","sources":["../../../../src/common/util/submit-data.js"],"names":[],"mappings":"AAQA;;GAEG;AAEH;;;;;GAKG;AACH;IAHyB,cAAc,EAA5B,OAAO;+BAUjB;AAED;;;;;;;;;GASG;AACH;IAPwB,GAAG,EAAhB,MAAM;IACQ,IAAI,GAAlB,MAAM;IACS,IAAI,GAAnB,OAAO;IACQ,MAAM,GAArB,MAAM;IACgC,OAAO;aAAvC,MAAM;eAAS,MAAM;;IACzB,cAAc,CAmB1B;AAED;;;;;;GAMG;AACH;IAJwB,GAAG,EAAhB,MAAM;IACQ,IAAI,GAAlB,MAAM;IACJ,OAAO,CAanB;6BAjEY,0BAAU"}
|
|
@@ -8,7 +8,7 @@ export function addToNREUM(fnName: any, fn: any): void;
|
|
|
8
8
|
export function NREUMinitialized(): void;
|
|
9
9
|
export function gosCDN(): any;
|
|
10
10
|
export namespace defaults {
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
let beacon: string;
|
|
12
|
+
let errorBeacon: string;
|
|
13
13
|
}
|
|
14
14
|
//# sourceMappingURL=nreum.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"wrap-jsonp.d.ts","sourceRoot":"","sources":["../../../../src/common/wrap/wrap-jsonp.js"],"names":[],"mappings":"AAiBA;;;;;GAKG;AACH,oCAHW,MAAM,GACJ,MAAM,
|
|
1
|
+
{"version":3,"file":"wrap-jsonp.d.ts","sourceRoot":"","sources":["../../../../src/common/wrap/wrap-jsonp.js"],"names":[],"mappings":"AAiBA;;;;;GAKG;AACH,oCAHW,MAAM,GACJ,MAAM,CA4GlB;AAED;;;;;;GAMG;AACH,mCAJW,MAAM,GAEJ,MAAM,CAIlB"}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
export class Aggregate extends AggregateBase {
|
|
2
2
|
static featureName: string;
|
|
3
3
|
constructor(agentIdentifier: any, aggregator: any);
|
|
4
|
-
storeXhr: (params: any, metrics: any, startTime: any, endTime: any, type: any) => void;
|
|
5
|
-
prepareHarvest: (options: any) => {
|
|
4
|
+
storeXhr: ((params: any, metrics: any, startTime: any, endTime: any, type: any) => void) | undefined;
|
|
5
|
+
prepareHarvest: ((options: any) => {
|
|
6
6
|
body: {
|
|
7
7
|
e: any;
|
|
8
8
|
};
|
|
9
|
-
}[] | null;
|
|
10
|
-
getStoredEvents: () => {
|
|
9
|
+
}[] | null) | undefined;
|
|
10
|
+
getStoredEvents: (() => {
|
|
11
11
|
ajaxEvents: any[];
|
|
12
12
|
spaAjaxEvents: {};
|
|
13
|
-
};
|
|
13
|
+
}) | undefined;
|
|
14
14
|
}
|
|
15
15
|
import { AggregateBase } from '../../utils/aggregate-base';
|
|
16
16
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/features/ajax/aggregate/index.js"],"names":[],"mappings":"AAiBA;IACE,2BAAiC;IACjC,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/features/ajax/aggregate/index.js"],"names":[],"mappings":"AAiBA;IACE,2BAAiC;IACjC,mDA6NC;IAtMC,qGAAwB;IACxB;;;;4BAAoC;IACpC;;;mBAA2E;CAqM9E;8BAlO6B,4BAA4B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../src/features/jserrors/constants.js"],"names":[],"mappings":"AAEA,kCAAkD
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../src/features/jserrors/constants.js"],"names":[],"mappings":"AAEA,kCAAkD"}
|
|
@@ -1,21 +1,8 @@
|
|
|
1
1
|
export class Instrument extends InstrumentBase {
|
|
2
2
|
static featureName: string;
|
|
3
3
|
constructor(agentIdentifier: any, aggregator: any, auto?: boolean);
|
|
4
|
-
skipNext: number;
|
|
5
4
|
removeOnAbort: AbortController | undefined;
|
|
6
|
-
origOnerror: any;
|
|
7
5
|
abortHandler: () => void;
|
|
8
|
-
/**
|
|
9
|
-
* FF and Android browsers do not provide error info to the 'error' event callback,
|
|
10
|
-
* so we must use window.onerror
|
|
11
|
-
* @param {string} message
|
|
12
|
-
* @param {string} filename
|
|
13
|
-
* @param {number} lineno
|
|
14
|
-
* @param {number} column
|
|
15
|
-
* @param {Error | *} errorObj
|
|
16
|
-
* @returns
|
|
17
|
-
*/
|
|
18
|
-
onerrorHandler(message: string, filename: string, lineno: number, column: number, errorObj: Error | any, ...args: any[]): boolean;
|
|
19
6
|
#private;
|
|
20
7
|
}
|
|
21
8
|
import { InstrumentBase } from '../../utils/instrument-base';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/features/jserrors/instrument/index.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/features/jserrors/instrument/index.js"],"names":[],"mappings":"AAeA;IACE,2BAAiC;IAIjC,mEA4CC;IAvCG,2CAA0C;IAqC5C,yBAA+B;;CA8ElC;+BArI8B,6BAA6B"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Represents an uncaught non Error type error. This class does
|
|
3
|
+
* not extend the Error class to prevent an invalid stack trace
|
|
4
|
+
* from being created. Use this class to cast thrown errors that
|
|
5
|
+
* do not use the Error class (strings, etc) to an object.
|
|
6
|
+
*/
|
|
7
|
+
export class UncaughtError {
|
|
8
|
+
constructor(message: any, filename: any, lineno: any, colno: any);
|
|
9
|
+
name: string;
|
|
10
|
+
message: any;
|
|
11
|
+
sourceURL: any;
|
|
12
|
+
line: any;
|
|
13
|
+
column: any;
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=uncaught-error.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"uncaught-error.d.ts","sourceRoot":"","sources":["../../../../../src/features/jserrors/instrument/uncaught-error.js"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH;IACE,kEAMC;IALC,aAA2B;IAC3B,aAAsB;IACtB,eAAyB;IACzB,UAAkB;IAClB,YAAmB;CAEtB"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
export namespace endpointMap {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
2
|
+
let rum: string;
|
|
3
|
+
let events: string;
|
|
4
|
+
let ins: string;
|
|
5
|
+
let jserrors: string;
|
|
6
|
+
let resources: string;
|
|
7
7
|
}
|
|
8
8
|
//# sourceMappingURL=endpoint-map.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/features/metrics/aggregate/index.js"],"names":[],"mappings":"AAiBA;IACE,2BAAiC;IACjC,mDAsBC;IAED,wDAKC;IAED,iDAKC;IAED,qBA+BC;IAED,0BAQC;IAED,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/features/metrics/aggregate/index.js"],"names":[],"mappings":"AAiBA;IACE,2BAAiC;IACjC,mDAsBC;IAED,wDAKC;IAED,iDAKC;IAED,qBA+BC;IAED,0BAQC;IAED,eA4DC;IApDG,mCAAyB;CAqD9B;8BApJ6B,4BAA4B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"initialized-features.d.ts","sourceRoot":"","sources":["../../../../../src/features/page_view_event/aggregate/initialized-features.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"initialized-features.d.ts","sourceRoot":"","sources":["../../../../../src/features/page_view_event/aggregate/initialized-features.js"],"names":[],"mappings":"AAGA;;;;;GAKG;AACH,4DAFa,QAAQ,CAwBpB"}
|
|
@@ -30,6 +30,11 @@ export class Aggregate extends AggregateBase {
|
|
|
30
30
|
hasSnapshot: boolean;
|
|
31
31
|
/** Payload metadata -- Should indicate that the payload being sent contains an error. Used for query/filter purposes in UI */
|
|
32
32
|
hasError: boolean;
|
|
33
|
+
/** Payload metadata -- Should indicate when a replay blob started recording. Resets each time a harvest occurs. */
|
|
34
|
+
timestamp: {
|
|
35
|
+
first: undefined;
|
|
36
|
+
last: undefined;
|
|
37
|
+
};
|
|
33
38
|
/** A value which increments with every new mutation node reported. Resets after a harvest is sent */
|
|
34
39
|
payloadBytesEstimation: number;
|
|
35
40
|
/** The method to stop recording. This defaults to a noop, but is overwritten once the recording library is imported and initialized */
|
|
@@ -45,45 +50,23 @@ export class Aggregate extends AggregateBase {
|
|
|
45
50
|
initializeRecording(entitlements: boolean, errorSample: boolean, fullSample: boolean): void;
|
|
46
51
|
prepareHarvest(): {
|
|
47
52
|
qs: {
|
|
48
|
-
protocol_version: string;
|
|
49
|
-
content_encoding: string;
|
|
50
53
|
browser_monitoring_key: any;
|
|
51
|
-
};
|
|
52
|
-
body: {
|
|
53
54
|
type: string;
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
attributes: {
|
|
58
|
-
session: any;
|
|
59
|
-
hasSnapshot: boolean;
|
|
60
|
-
hasError: boolean;
|
|
61
|
-
agentVersion: any;
|
|
62
|
-
isFirstChunk: boolean;
|
|
63
|
-
'nr.rrweb.version': string;
|
|
64
|
-
};
|
|
55
|
+
app_id: any;
|
|
56
|
+
protocol_version: string;
|
|
57
|
+
attributes: string;
|
|
65
58
|
};
|
|
59
|
+
body: any[];
|
|
66
60
|
}[] | undefined;
|
|
67
61
|
getHarvestContents(): {
|
|
68
62
|
qs: {
|
|
69
|
-
protocol_version: string;
|
|
70
|
-
content_encoding: string;
|
|
71
63
|
browser_monitoring_key: any;
|
|
72
|
-
};
|
|
73
|
-
body: {
|
|
74
64
|
type: string;
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
attributes: {
|
|
79
|
-
session: any;
|
|
80
|
-
hasSnapshot: boolean;
|
|
81
|
-
hasError: boolean;
|
|
82
|
-
agentVersion: any;
|
|
83
|
-
isFirstChunk: boolean;
|
|
84
|
-
'nr.rrweb.version': string;
|
|
85
|
-
};
|
|
65
|
+
app_id: any;
|
|
66
|
+
protocol_version: string;
|
|
67
|
+
attributes: string;
|
|
86
68
|
};
|
|
69
|
+
body: any[];
|
|
87
70
|
};
|
|
88
71
|
onHarvestFinished(result: any): void;
|
|
89
72
|
/** Clears the buffer (this.events), and resets all payload metadata properties */
|
|
@@ -94,6 +77,8 @@ export class Aggregate extends AggregateBase {
|
|
|
94
77
|
store(event: any, isCheckout: any): void;
|
|
95
78
|
/** force the recording lib to take a full DOM snapshot. This needs to occur in certain cases, like visibility changes */
|
|
96
79
|
takeFullSnapshot(): void;
|
|
80
|
+
setTimestamps(rrwebEvent: any): void;
|
|
81
|
+
clearTimestamps(): void;
|
|
97
82
|
/** Estimate the payload size */
|
|
98
83
|
getPayloadSize(newBytes?: number): any;
|
|
99
84
|
/** Abort the feature, once aborted it will not resume */
|
|
@@ -103,6 +88,7 @@ export class Aggregate extends AggregateBase {
|
|
|
103
88
|
* https://staging.onenr.io/037jbJWxbjy
|
|
104
89
|
* */
|
|
105
90
|
estimateCompression(data: any): any;
|
|
91
|
+
syncWithSessionManager(state?: {}): void;
|
|
106
92
|
}
|
|
107
93
|
import { AggregateBase } from '../../utils/aggregate-base';
|
|
108
94
|
import { HarvestScheduler } from '../../../common/harvest/harvest-scheduler';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/features/session_replay/aggregate/index.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/features/session_replay/aggregate/index.js"],"names":[],"mappings":"AAwBA,4CAA4C;AAE5C,mCAAmC;AAInC,uCAAuC;AACvC,uCAAuC;AACvC,iCAAiC;AACjC,uCAAuC;AAIvC;IACE,2BAAiC;IACjC,mDA4FC;IA1FC,iHAAiH;IACjH,cAAgB;IAChB,8GAA8G;IAC9G,wBAAgH;IAChH,iFAAiF;IACjF,qBAAwB;IACxB,mEAAmE;IACnE,sBAAyB;IACzB,6GAA6G;IAC7G,aAAoB;IAGpB,iEAAiE;IACjE,mBAAsB;IACtB,gDAAgD;IAChD,wBAA0B;IAE1B,gGAAgG;IAChG,sBAAyB;IACzB;;;MAGE;IACF,qBAAwB;IACxB,+HAA+H;IAC/H,kBAAqB;IAErB,oHAAoH;IACpH;;;MAAsD;IAEtD,qGAAqG;IACrG,+BAA+B;IAO/B,uIAAuI;IACvI,0BAAyE;IAiBvE,wCAKQ;IA+BZ;;;;;;OAMG;IACH,kCALW,OAAO,eACP,OAAO,cACP,OAAO,GACL,IAAI,CAuDhB;IAED;;;;;;;;;oBAaC;IAED;;;;;;;;;MAyBC;IAED,qCAOC;IAED,kFAAkF;IAClF,oBAOC;IAED,qDAAqD;IACrD,uBAyBC;IAED,yHAAyH;IACzH,yCA8BC;IAED,0HAA0H;IAC1H,yBAGC;IAED,qCAIC;IAED,wBAEC;IAED,gCAAgC;IAChC,uCAGC;IAED,yDAAyD;IACzD,cAOC;IAED;;;SAGK;IACL,oCAGC;IAED,yCAGC;CACF;8BAvV6B,4BAA4B;iCALzB,2CAA2C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/features/session_trace/aggregate/index.js"],"names":[],"mappings":"AAkCA;IACE,2BAAiC;IAGjC,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/features/session_trace/aggregate/index.js"],"names":[],"mappings":"AAkCA;IACE,2BAAiC;IAGjC,iEAqHC;IAnHC,kBAA+C;IAK/C,sBAAiD;IACjD,yBAAc;IACd,sBAAe;IACf,8BAAkB;IAClB,iCAAqB;IACrB,wBAA0G;IAC1G,wBAA4G;IAC5G,kCAAyB;IAyG3B,sEAcC;IA4CD,oDAOC;IAGD,oCAwBC;IAGD,uEAkBC;IAED,oDAMC;IAED,wBAwBC;IAED,uCAuBC;IAGD,gDASC;IAID,qCAkBC;IAGD,qEAUC;IAGD,mEAUC;IAGD,yBAWC;IAED;;;;OAIG;IACH,2BAHW,MAAM,GACJ,MAAM,CAsBlB;IAGD;;;;;;;;;;MAwBC;IAED,mEA8BC;;CACF;8BA5d6B,4BAA4B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"instrument-base.d.ts","sourceRoot":"","sources":["../../../../src/features/utils/instrument-base.js"],"names":[],"mappings":"AAcA;;;GAGG;AACH;IACE;;;;;;;;OAQG;IACH,6BAPW,MAAM,uCAEN,MAAM,8BAuBhB;IAhBC,cAAgB;IAEhB,8IAA8I;IAC9I,cADW,WAAW,SAAS,CACd;IACjB;;;MAGE;IACF,qBAAkB;IAClB;;;MAGE;IACF,kCAAwB;IAK1B;;;;;OAKG;IACH,
|
|
1
|
+
{"version":3,"file":"instrument-base.d.ts","sourceRoot":"","sources":["../../../../src/features/utils/instrument-base.js"],"names":[],"mappings":"AAcA;;;GAGG;AACH;IACE;;;;;;;;OAQG;IACH,6BAPW,MAAM,uCAEN,MAAM,8BAuBhB;IAhBC,cAAgB;IAEhB,8IAA8I;IAC9I,cADW,WAAW,SAAS,CACd;IACjB;;;MAGE;IACF,qBAAkB;IAClB;;;MAGE;IACF,kCAAwB;IAK1B;;;;;OAKG;IACH,mEA6CC;IAED;;;;;KAKC;IACD,6BAJS,MAAM,mCAWd;CACF;4BA5G2B,gBAAgB"}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
export class AgentBase {
|
|
2
|
+
/**
|
|
3
|
+
* Reports a browser PageAction event along with a name and optional attributes.
|
|
4
|
+
* {@link https://docs.newrelic.com/docs/browser/new-relic-browser/browser-apis/addpageaction/}
|
|
5
|
+
* @param {string} name Name or category of the action. Reported as the actionName attribute.
|
|
6
|
+
* @param {object} [attributes] JSON object with one or more key/value pairs. For example: {key:"value"}. The key is reported as its own PageAction attribute with the specified values.
|
|
7
|
+
*/
|
|
8
|
+
addPageAction(name: string, attributes?: object | undefined): void;
|
|
9
|
+
/**
|
|
10
|
+
* Groups page views to help URL structure or to capture the URL's routing information.
|
|
11
|
+
* {@link https://docs.newrelic.com/docs/browser/new-relic-browser/browser-apis/setpageviewname/}
|
|
12
|
+
* @param {string} name The page name you want to use. Use alphanumeric characters.
|
|
13
|
+
* @param {string} [host] Default is http://custom.transaction. Typically set host to your site's domain URI.
|
|
14
|
+
*/
|
|
15
|
+
setPageViewName(name: string, host?: string | undefined): void;
|
|
16
|
+
/**
|
|
17
|
+
* Adds a user-defined attribute name and value to subsequent events on the page.
|
|
18
|
+
* {@link https://docs.newrelic.com/docs/browser/new-relic-browser/browser-apis/setcustomattribute/}
|
|
19
|
+
* @param {string} name Name of the attribute. Appears as column in the PageView event. It will also appear as a column in the PageAction event if you are using it.
|
|
20
|
+
* @param {string|number|null} value Value of the attribute. Appears as the value in the named attribute column in the PageView event. It will appear as a column in the PageAction event if you are using it. Custom attribute values cannot be complex objects, only simple types such as Strings and Integers.
|
|
21
|
+
* @param {boolean} [persist] Default false. f set to true, the name-value pair will also be set into the browser's storage API. Then on the following instrumented pages that load within the same session, the pair will be re-applied as a custom attribute.
|
|
22
|
+
*/
|
|
23
|
+
setCustomAttribute(name: string, value: string | number | null, persist?: boolean | undefined): void;
|
|
24
|
+
/**
|
|
25
|
+
* Identifies a browser error without disrupting your app's operations.
|
|
26
|
+
* {@link https://docs.newrelic.com/docs/browser/new-relic-browser/browser-apis/noticeerror/}
|
|
27
|
+
* @param {Error|string} error Provide a meaningful error message that you can use when analyzing data on browser's JavaScript errors page.
|
|
28
|
+
* @param {object} [customAttributes] An object containing name/value pairs representing custom attributes.
|
|
29
|
+
*/
|
|
30
|
+
noticeError(error: Error | string, customAttributes?: object | undefined): void;
|
|
31
|
+
/**
|
|
32
|
+
* Adds a user-defined identifier string to subsequent events on the page.
|
|
33
|
+
* {@link https://docs.newrelic.com/docs/browser/new-relic-browser/browser-apis/setuserid/}
|
|
34
|
+
* @param {string|null} value A string identifier for the end-user, useful for tying all browser events to specific users. The value parameter does not have to be unique. If IDs should be unique, the caller is responsible for that validation. Passing a null value unsets any existing user ID.
|
|
35
|
+
*/
|
|
36
|
+
setUserId(value: string | null): void;
|
|
37
|
+
/**
|
|
38
|
+
* Allows selective ignoring and grouping of known errors that the browser agent captures.
|
|
39
|
+
* {@link https://docs.newrelic.com/docs/browser/new-relic-browser/browser-apis/seterrorhandler/}
|
|
40
|
+
* @param {(error: Error|string) => boolean | { group: string }} callback When an error occurs, the callback is called with the error object as a parameter. The callback will be called with each error, so it is not specific to one error.
|
|
41
|
+
*/
|
|
42
|
+
setErrorHandler(callback: (error: Error | string) => boolean | {
|
|
43
|
+
group: string;
|
|
44
|
+
}): void;
|
|
45
|
+
/**
|
|
46
|
+
* Records an additional time point as "finished" in a session trace, and sends the event to New Relic.
|
|
47
|
+
* {@link https://docs.newrelic.com/docs/browser/new-relic-browser/browser-apis/finished/}
|
|
48
|
+
* @param {number} [timeStamp] Defaults to the current time of the call. If used, this marks the time that the page is "finished" according to your own criteria.
|
|
49
|
+
*/
|
|
50
|
+
finished(timeStamp?: number | undefined): void;
|
|
51
|
+
/**
|
|
52
|
+
* Adds a unique name and ID to identify releases with multiple JavaScript bundles on the same page.
|
|
53
|
+
* {@link https://docs.newrelic.com/docs/browser/new-relic-browser/browser-apis/addrelease/}
|
|
54
|
+
* @param {string} name A short description of the component; for example, the name of a project, application, file, or library.
|
|
55
|
+
* @param {string} id The ID or version of this release; for example, a version number, build number from your CI environment, GitHub SHA, GUID, or a hash of the contents.
|
|
56
|
+
*/
|
|
57
|
+
addRelease(name: string, id: string): void;
|
|
58
|
+
}
|
|
59
|
+
//# sourceMappingURL=agent-base.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agent-base.d.ts","sourceRoot":"","sources":["../../../src/loaders/agent-base.js"],"names":[],"mappings":"AAEA;IACE;;;;;OAKG;IACH,oBAHW,MAAM,yCAKhB;IAED;;;;;OAKG;IACH,sBAHW,MAAM,mCAKhB;IAED;;;;;;OAMG;IACH,yBAJW,MAAM,SACN,MAAM,GAAC,MAAM,GAAC,IAAI,uCAK5B;IAED;;;;;OAKG;IACH,mBAHW,KAAK,GAAC,MAAM,+CAKtB;IAED;;;;OAIG;IACH,iBAFW,MAAM,GAAC,IAAI,QAIrB;IAED;;;;OAIG;IACH,kCAFmB,KAAK,GAAC,MAAM,KAAK,OAAO,GAAG;QAAE,KAAK,EAAE,MAAM,CAAA;KAAE,QAI9D;IAED;;;;OAIG;IACH,+CAEC;IAED;;;;;OAKG;IACH,iBAHW,MAAM,MACN,MAAM,QAIhB;CACF"}
|
|
@@ -1,8 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @typedef {import('./api/interaction-types').InteractionInstance} InteractionInstance
|
|
3
|
+
*/
|
|
1
4
|
/**
|
|
2
5
|
* A flexible class that may be used to compose an agent from a select subset of feature modules. In applications
|
|
3
6
|
* sensitive to network load, this may result in smaller builds with slightly lower performance impact.
|
|
4
7
|
*/
|
|
5
|
-
export class Agent {
|
|
8
|
+
export class Agent extends AgentBase {
|
|
6
9
|
constructor(options: any, agentIdentifier?: string);
|
|
7
10
|
agentIdentifier: string | undefined;
|
|
8
11
|
sharedAggregator: Aggregator | undefined;
|
|
@@ -15,6 +18,37 @@ export class Agent {
|
|
|
15
18
|
runtime: any;
|
|
16
19
|
};
|
|
17
20
|
start(): false | undefined;
|
|
21
|
+
/**
|
|
22
|
+
* Adds a JavaScript object with a custom name, start time, etc. to an in-progress session trace.
|
|
23
|
+
* {@link https://docs.newrelic.com/docs/browser/new-relic-browser/browser-apis/addtotrace/}
|
|
24
|
+
* @param {{name: string, start: number, end?: number, origin?: string, type?: string}} customAttributes Supply a JavaScript object with these required and optional name/value pairs:
|
|
25
|
+
*
|
|
26
|
+
* - Required name/value pairs: name, start
|
|
27
|
+
* - Optional name/value pairs: end, origin, type
|
|
28
|
+
*
|
|
29
|
+
* If you are sending the same event object to New Relic as a PageAction, omit the TYPE attribute. (type is a string to describe what type of event you are marking inside of a session trace.) If included, it will override the event type and cause the PageAction event to be sent incorrectly. Instead, use the name attribute for event information.
|
|
30
|
+
*/
|
|
31
|
+
addToTrace(customAttributes: {
|
|
32
|
+
name: string;
|
|
33
|
+
start: number;
|
|
34
|
+
end?: number;
|
|
35
|
+
origin?: string;
|
|
36
|
+
type?: string;
|
|
37
|
+
}): void;
|
|
38
|
+
/**
|
|
39
|
+
* Gives SPA routes more accurate names than default names. Monitors specific routes rather than by default grouping.
|
|
40
|
+
* {@link https://docs.newrelic.com/docs/browser/new-relic-browser/browser-apis/setcurrentroutename/}
|
|
41
|
+
* @param {string} name Current route name for the page.
|
|
42
|
+
*/
|
|
43
|
+
setCurrentRouteName(name: string): void;
|
|
44
|
+
/**
|
|
45
|
+
* Returns a new API object that is bound to the current SPA interaction.
|
|
46
|
+
* {@link https://docs.newrelic.com/docs/browser/new-relic-browser/browser-apis/interaction/}
|
|
47
|
+
* @returns {InteractionInstance} An API object that is bound to a specific BrowserInteraction event. Each time this method is called for the same BrowserInteraction, a new object is created, but it still references the same interaction.
|
|
48
|
+
*/
|
|
49
|
+
interaction(): InteractionInstance;
|
|
18
50
|
}
|
|
51
|
+
export type InteractionInstance = import('./api/interaction-types').InteractionInstance;
|
|
52
|
+
import { AgentBase } from './agent-base';
|
|
19
53
|
import { Aggregator } from '../common/aggregate/aggregator';
|
|
20
54
|
//# sourceMappingURL=agent.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agent.d.ts","sourceRoot":"","sources":["../../../src/loaders/agent.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"agent.d.ts","sourceRoot":"","sources":["../../../src/loaders/agent.js"],"names":[],"mappings":"AAiBA;;GAEG;AAEH;;;GAGG;AACH;IACE,oDAuBC;IAbC,oCAAsC;IACtC,yCAAiF;IACjF,yBAAkB;IAElB,sCAAsD;IAWxD;;;;;MAOC;IAED,2BAgCC;IAID;;;;;;;;;OASG;IACH,6BAPW;QAAC,MAAM,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAC;QAAC,GAAG,CAAC,EAAE,MAAM,CAAC;QAAC,MAAM,CAAC,EAAE,MAAM,CAAC;QAAC,IAAI,CAAC,EAAE,MAAM,CAAA;KAAC,QASrF;IAED;;;;OAIG;IACH,0BAFW,MAAM,QAIhB;IAED;;;;OAIG;IACH,eAFa,mBAAmB,CAI/B;CACF;kCA7GY,OAAO,yBAAyB,EAAE,mBAAmB;0BAjBxC,cAAc;2BAQb,gCAAgC"}
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @typedef InteractionInstance
|
|
3
|
+
* @property {actionText} actionText
|
|
4
|
+
* @property {createTracer} createTracer
|
|
5
|
+
* @property {end} end
|
|
6
|
+
* @property {getContext} getContext
|
|
7
|
+
* @property {ignore} ignore
|
|
8
|
+
* @property {onEnd} onEnd
|
|
9
|
+
* @property {onEnd} save
|
|
10
|
+
* @property {setAttribute} setAttribute
|
|
11
|
+
* @property {setName} setName
|
|
12
|
+
*/
|
|
13
|
+
/**
|
|
14
|
+
* Sets the text value of the HTML element that was clicked to start a browser interaction.
|
|
15
|
+
* {@link https://docs.newrelic.com/docs/browser/new-relic-browser/browser-apis/actiontext/}
|
|
16
|
+
* @callback actionText
|
|
17
|
+
* @param {string} value The text value of the HTML element that represents the action that started the interaction.
|
|
18
|
+
* @returns {InteractionInstance} Returns the same interaction object allowing method chaining.
|
|
19
|
+
*/
|
|
20
|
+
/**
|
|
21
|
+
* Times sub-components of a SPA interaction separately, including wait time and JS execution time.
|
|
22
|
+
* {@link https://docs.newrelic.com/docs/browser/new-relic-browser/browser-apis/createtracer/}
|
|
23
|
+
* @callback createTracer
|
|
24
|
+
* @param {string} name This will be used as the name of the tracer.
|
|
25
|
+
* @param {string} [callback] A callback that contains the synchronous work to run at the end of the async work. To execute this callback, call the wrapper function returned using createTracer().
|
|
26
|
+
* @returns {Function} Returns a method that wraps the original callback. When this method is invoked, it calls the original callback and ends the async timing.
|
|
27
|
+
*/
|
|
28
|
+
/**
|
|
29
|
+
* Ends the SPA interaction at the current time.
|
|
30
|
+
* {@link https://docs.newrelic.com/docs/browser/new-relic-browser/browser-apis/end/}
|
|
31
|
+
* @callback end
|
|
32
|
+
* @returns {InteractionInstance} Returns the same interaction object allowing method chaining.
|
|
33
|
+
*/
|
|
34
|
+
/**
|
|
35
|
+
* Stores values for the current SPA interaction asynchronously in browser.
|
|
36
|
+
* {@link https://docs.newrelic.com/docs/browser/new-relic-browser/browser-apis/getcontext/}
|
|
37
|
+
* @callback getContext
|
|
38
|
+
* @param {(ctx: object) => void} callback This function is called when the interaction ends. It is called with one parameter, which is the interaction context.
|
|
39
|
+
* @returns {InteractionInstance} Returns the same interaction object allowing method chaining.
|
|
40
|
+
*/
|
|
41
|
+
/**
|
|
42
|
+
* Change the values associated with a SPA interaction before the interaction is saved.
|
|
43
|
+
* {@link https://docs.newrelic.com/docs/browser/new-relic-browser/browser-apis/onend/}
|
|
44
|
+
* @callback onEnd
|
|
45
|
+
* @param {(ctx: object) => void} callback This function is called when the interaction ends. It is called with one parameter, which is the interaction context.
|
|
46
|
+
* @returns {InteractionInstance} Returns the same interaction object allowing method chaining.
|
|
47
|
+
*/
|
|
48
|
+
/**
|
|
49
|
+
* Ensures a SPA browser interaction will be saved when it ends.
|
|
50
|
+
* {@link https://docs.newrelic.com/docs/browser/new-relic-browser/browser-apis/save/}
|
|
51
|
+
* @callback save
|
|
52
|
+
* @returns {InteractionInstance} Returns the same interaction object allowing method chaining.
|
|
53
|
+
*/
|
|
54
|
+
/**
|
|
55
|
+
* Adds a custom SPA attribute only to the current interaction in browser.
|
|
56
|
+
* {@link https://docs.newrelic.com/docs/browser/new-relic-browser/browser-apis/setattribute/}
|
|
57
|
+
* @callback setAttribute
|
|
58
|
+
* @param {string} key Used as the attribute name on the BrowserInteraction event.
|
|
59
|
+
* @param {any} key Used as the attribute value on the BrowserInteraction event. This can be a string, number, boolean, or object. If it is an object, New Relic serializes it to a JSON string.
|
|
60
|
+
* @returns {InteractionInstance} Returns the same interaction object allowing method chaining.
|
|
61
|
+
*/
|
|
62
|
+
/**
|
|
63
|
+
* Sets the name and trigger of a SPA's browser interaction that is not a route change or URL change.
|
|
64
|
+
* {@link https://docs.newrelic.com/docs/browser/new-relic-browser/browser-apis/setname/}
|
|
65
|
+
* @callback setName
|
|
66
|
+
* @param {string} name If null, the name will be set using the targetGroupedUrl attribute. If not null, this will set the browserInteractionName attribute in the BrowserInteraction event.
|
|
67
|
+
* @param {string} [trigger] If not null, this will set the TRIGGER attribute on the BrowserInteraction event.
|
|
68
|
+
* @returns {InteractionInstance} Returns the same interaction object allowing method chaining.
|
|
69
|
+
*/
|
|
70
|
+
export const unused: {};
|
|
71
|
+
export type InteractionInstance = {
|
|
72
|
+
actionText: actionText;
|
|
73
|
+
createTracer: createTracer;
|
|
74
|
+
end: end;
|
|
75
|
+
getContext: getContext;
|
|
76
|
+
ignore: ignore;
|
|
77
|
+
onEnd: onEnd;
|
|
78
|
+
save: onEnd;
|
|
79
|
+
setAttribute: setAttribute;
|
|
80
|
+
setName: setName;
|
|
81
|
+
};
|
|
82
|
+
/**
|
|
83
|
+
* Sets the text value of the HTML element that was clicked to start a browser interaction.
|
|
84
|
+
* {@link https://docs.newrelic.com/docs/browser/new-relic-browser/browser-apis/actiontext/}
|
|
85
|
+
*/
|
|
86
|
+
export type actionText = (value: string) => InteractionInstance;
|
|
87
|
+
/**
|
|
88
|
+
* Times sub-components of a SPA interaction separately, including wait time and JS execution time.
|
|
89
|
+
* {@link https://docs.newrelic.com/docs/browser/new-relic-browser/browser-apis/createtracer/}
|
|
90
|
+
*/
|
|
91
|
+
export type createTracer = (name: string, callback?: string | undefined) => Function;
|
|
92
|
+
/**
|
|
93
|
+
* Ends the SPA interaction at the current time.
|
|
94
|
+
* {@link https://docs.newrelic.com/docs/browser/new-relic-browser/browser-apis/end/}
|
|
95
|
+
*/
|
|
96
|
+
export type end = () => InteractionInstance;
|
|
97
|
+
/**
|
|
98
|
+
* Stores values for the current SPA interaction asynchronously in browser.
|
|
99
|
+
* {@link https://docs.newrelic.com/docs/browser/new-relic-browser/browser-apis/getcontext/}
|
|
100
|
+
*/
|
|
101
|
+
export type getContext = (callback: (ctx: object) => void) => InteractionInstance;
|
|
102
|
+
/**
|
|
103
|
+
* Change the values associated with a SPA interaction before the interaction is saved.
|
|
104
|
+
* {@link https://docs.newrelic.com/docs/browser/new-relic-browser/browser-apis/onend/}
|
|
105
|
+
*/
|
|
106
|
+
export type onEnd = (callback: (ctx: object) => void) => InteractionInstance;
|
|
107
|
+
/**
|
|
108
|
+
* Ensures a SPA browser interaction will be saved when it ends.
|
|
109
|
+
* {@link https://docs.newrelic.com/docs/browser/new-relic-browser/browser-apis/save/}
|
|
110
|
+
*/
|
|
111
|
+
export type save = () => InteractionInstance;
|
|
112
|
+
/**
|
|
113
|
+
* Adds a custom SPA attribute only to the current interaction in browser.
|
|
114
|
+
* {@link https://docs.newrelic.com/docs/browser/new-relic-browser/browser-apis/setattribute/}
|
|
115
|
+
*/
|
|
116
|
+
export type setAttribute = (key: string, key: any) => InteractionInstance;
|
|
117
|
+
/**
|
|
118
|
+
* Sets the name and trigger of a SPA's browser interaction that is not a route change or URL change.
|
|
119
|
+
* {@link https://docs.newrelic.com/docs/browser/new-relic-browser/browser-apis/setname/}
|
|
120
|
+
*/
|
|
121
|
+
export type setName = (name: string, trigger?: string | undefined) => InteractionInstance;
|
|
122
|
+
//# sourceMappingURL=interaction-types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"interaction-types.d.ts","sourceRoot":"","sources":["../../../../src/loaders/api/interaction-types.js"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH;;;;;;GAMG;AAEH;;;;;;;GAOG;AAEH;;;;;GAKG;AAEH;;;;;;GAMG;AAEH;;;;;;GAMG;AAEH;;;;;GAKG;AAEH;;;;;;;GAOG;AAEH;;;;;;;GAOG;AAGH,wBAAwB;;gBA7EV,UAAU;kBACV,YAAY;SACZ,GAAG;gBACH,UAAU;;WAEV,KAAK;UACL,KAAK;kBACL,YAAY;aACZ,OAAO;;;;;;iCAOV,MAAM,KACJ,mBAAmB;;;;;kCAOrB,MAAM;;;;;wBASJ,mBAAmB;;;;;0CAOf,MAAM,KAAK,IAAI,KACnB,mBAAmB;;;;;qCAOf,MAAM,KAAK,IAAI,KACnB,mBAAmB;;;;;yBAOnB,mBAAmB;;;;;iCAOrB,MAAM,OACN,GAAG,KACD,mBAAmB;;;;;6BAOrB,MAAM,mCAEJ,mBAAmB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"configure.d.ts","sourceRoot":"","sources":["../../../../src/loaders/configure/configure.js"],"names":[],"mappings":"AAMA;;;;;;;;
|
|
1
|
+
{"version":3,"file":"configure.d.ts","sourceRoot":"","sources":["../../../../src/loaders/configure/configure.js"],"names":[],"mappings":"AAMA;;;;;;;;EAqCC"}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
export namespace FEATURE_NAMES {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
2
|
+
let ajax: string;
|
|
3
|
+
let jserrors: string;
|
|
4
|
+
let metrics: string;
|
|
5
|
+
let pageAction: string;
|
|
6
|
+
let pageViewEvent: string;
|
|
7
|
+
let pageViewTiming: string;
|
|
8
|
+
let sessionReplay: string;
|
|
9
|
+
let sessionTrace: string;
|
|
10
|
+
let spa: string;
|
|
11
11
|
}
|
|
12
12
|
/**
|
|
13
13
|
* The order in which features will be instrumented. This is the traditional order. It's unclear if the order of
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* automatically instrument. Instead, each MicroAgent instance will lazy load the required features and can support loading multiple instances on one page.
|
|
4
4
|
* Out of the box, it can manually handle and report Page View, Page Action, and Error events.
|
|
5
5
|
*/
|
|
6
|
-
export class MicroAgent {
|
|
6
|
+
export class MicroAgent extends AgentBase {
|
|
7
7
|
/**
|
|
8
8
|
* @param {Object} options - Specifies features and runtime configuration,
|
|
9
9
|
* @param {string=} agentIdentifier - The optional unique ID of the agent.
|
|
@@ -18,7 +18,8 @@ export class MicroAgent {
|
|
|
18
18
|
loader_config: any;
|
|
19
19
|
runtime: any;
|
|
20
20
|
};
|
|
21
|
-
start(): false |
|
|
21
|
+
start(): false | this;
|
|
22
22
|
}
|
|
23
|
+
import { AgentBase } from './agent-base';
|
|
23
24
|
import { Aggregator } from '../common/aggregate/aggregator';
|
|
24
25
|
//# sourceMappingURL=micro-agent.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"micro-agent.d.ts","sourceRoot":"","sources":["../../../src/loaders/micro-agent.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"micro-agent.d.ts","sourceRoot":"","sources":["../../../src/loaders/micro-agent.js"],"names":[],"mappings":"AAoBA;;;;GAIG;AACH;IACE;;;OAGG;IACH,qBAHW,MAAM,oBACN,MAAM,cAYhB;IAPC,wBAAsC;IACtC,6BAAiF;IACjF,aAAkB;IAOpB;;;;;MAOC;IAED,sBA8BC;CACF;0BAtEyB,cAAc;2BAPb,gCAAgC"}
|
package/package.json
CHANGED
|
@@ -10,7 +10,7 @@ const model = () => {
|
|
|
10
10
|
return {
|
|
11
11
|
allow_bfcache: true, // *cli - temporary feature flag for BFCache work
|
|
12
12
|
privacy: { cookies_enabled: true }, // *cli - per discussion, default should be true
|
|
13
|
-
ajax: { deny_list: undefined, enabled: true, harvestTimeSeconds: 10 },
|
|
13
|
+
ajax: { deny_list: undefined, block_internal: true, enabled: true, harvestTimeSeconds: 10 },
|
|
14
14
|
distributed_tracing: {
|
|
15
15
|
enabled: undefined,
|
|
16
16
|
exclude_newrelic_header: undefined,
|