@newrelic/browser-agent 1.260.1 → 1.261.0
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/CHANGELOG.md +19 -0
- package/dist/cjs/cdn/experimental.js +2 -1
- package/dist/cjs/cdn/polyfills/pro.js +2 -1
- package/dist/cjs/cdn/polyfills/spa.js +2 -1
- package/dist/cjs/cdn/pro.js +2 -1
- package/dist/cjs/cdn/spa.js +2 -1
- package/dist/cjs/common/config/state/init.js +31 -24
- package/dist/cjs/common/constants/env.cdn.js +1 -1
- package/dist/cjs/common/constants/env.js +1 -1
- package/dist/cjs/common/constants/env.npm.js +1 -1
- package/dist/cjs/common/deny-list/deny-list.js +1 -1
- package/dist/cjs/common/harvest/harvest-scheduler.js +1 -1
- package/dist/cjs/common/harvest/harvest.js +1 -1
- package/dist/cjs/common/session/session-entity.js +7 -1
- package/dist/cjs/common/wrap/wrap-logger.js +54 -0
- package/dist/cjs/features/ajax/aggregate/index.js +1 -1
- package/dist/cjs/features/logging/aggregate/index.js +102 -0
- package/dist/cjs/features/logging/constants.js +20 -0
- package/dist/cjs/features/logging/index.js +12 -0
- package/dist/cjs/features/logging/instrument/index.js +28 -0
- package/dist/cjs/features/logging/shared/log.js +39 -0
- package/dist/cjs/features/logging/shared/utils.js +50 -0
- package/dist/cjs/features/page_view_event/aggregate/index.js +1 -1
- package/dist/cjs/features/page_view_event/instrument/index.js +1 -1
- package/dist/cjs/features/page_view_timing/aggregate/index.js +1 -2
- package/dist/cjs/features/session_replay/aggregate/index.js +4 -3
- package/dist/cjs/features/session_replay/instrument/index.js +1 -1
- package/dist/cjs/features/session_trace/aggregate/index.js +15 -8
- package/dist/cjs/features/session_trace/instrument/index.js +1 -1
- package/dist/cjs/features/spa/aggregate/index.js +2 -2
- package/dist/cjs/features/spa/instrument/index.js +1 -1
- package/dist/cjs/features/utils/instrument-base.js +1 -1
- package/dist/cjs/features/utils/lazy-feature-loader.js +3 -1
- package/dist/cjs/loaders/agent-base.js +23 -2
- package/dist/cjs/loaders/api/api-methods.js +1 -1
- package/dist/cjs/loaders/api/api.js +29 -2
- package/dist/cjs/loaders/features/features.js +7 -5
- package/dist/cjs/loaders/micro-agent.js +1 -1
- package/dist/esm/cdn/experimental.js +2 -1
- package/dist/esm/cdn/polyfills/pro.js +2 -1
- package/dist/esm/cdn/polyfills/spa.js +2 -1
- package/dist/esm/cdn/pro.js +2 -1
- package/dist/esm/cdn/spa.js +2 -1
- package/dist/esm/common/config/state/init.js +30 -23
- 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 +1 -1
- package/dist/esm/common/session/session-entity.js +8 -2
- package/dist/esm/common/wrap/wrap-logger.js +48 -0
- package/dist/esm/features/logging/aggregate/index.js +95 -0
- package/dist/esm/features/logging/constants.js +14 -0
- package/dist/esm/features/logging/index.js +1 -0
- package/dist/esm/features/logging/instrument/index.js +21 -0
- package/dist/esm/features/logging/shared/log.js +32 -0
- package/dist/esm/features/logging/shared/utils.js +44 -0
- package/dist/esm/features/page_view_timing/aggregate/index.js +1 -2
- package/dist/esm/features/session_replay/aggregate/index.js +3 -2
- package/dist/esm/features/session_trace/aggregate/index.js +15 -8
- package/dist/esm/features/spa/aggregate/index.js +1 -1
- package/dist/esm/features/utils/lazy-feature-loader.js +2 -0
- package/dist/esm/loaders/agent-base.js +23 -2
- package/dist/esm/loaders/api/api-methods.js +1 -1
- package/dist/esm/loaders/api/api.js +28 -1
- package/dist/esm/loaders/features/features.js +7 -5
- package/dist/types/common/config/state/init.d.ts.map +1 -1
- package/dist/types/common/drain/drain.d.ts.map +1 -1
- package/dist/types/common/harvest/harvest-scheduler.d.ts.map +1 -1
- package/dist/types/common/harvest/harvest.d.ts +5 -5
- package/dist/types/common/harvest/types.d.ts +2 -2
- package/dist/types/common/harvest/types.d.ts.map +1 -1
- package/dist/types/common/ids/id.d.ts.map +1 -1
- package/dist/types/common/ids/unique-id.d.ts.map +1 -1
- package/dist/types/common/session/session-entity.d.ts.map +1 -1
- package/dist/types/common/util/console.d.ts.map +1 -1
- package/dist/types/common/util/data-size.d.ts.map +1 -1
- package/dist/types/common/util/feature-flags.d.ts.map +1 -1
- package/dist/types/common/util/get-or-set.d.ts.map +1 -1
- package/dist/types/common/util/invoke.d.ts.map +1 -1
- package/dist/types/common/util/stringify.d.ts.map +1 -1
- package/dist/types/common/util/submit-data.d.ts.map +1 -1
- package/dist/types/common/util/type-check.d.ts.map +1 -1
- package/dist/types/common/wrap/wrap-logger.d.ts +17 -0
- package/dist/types/common/wrap/wrap-logger.d.ts.map +1 -0
- package/dist/types/features/jserrors/aggregate/compute-stack-trace.d.ts.map +1 -1
- package/dist/types/features/jserrors/aggregate/index.d.ts +1 -1
- package/dist/types/features/logging/aggregate/index.d.ts +40 -0
- package/dist/types/features/logging/aggregate/index.d.ts.map +1 -0
- package/dist/types/features/logging/constants.d.ts +14 -0
- package/dist/types/features/logging/constants.d.ts.map +1 -0
- package/dist/types/features/logging/index.d.ts +2 -0
- package/dist/types/features/logging/index.d.ts.map +1 -0
- package/dist/types/features/logging/instrument/index.d.ts +6 -0
- package/dist/types/features/logging/instrument/index.d.ts.map +1 -0
- package/dist/types/features/logging/shared/log.d.ts +18 -0
- package/dist/types/features/logging/shared/log.d.ts.map +1 -0
- package/dist/types/features/logging/shared/utils.d.ts +16 -0
- package/dist/types/features/logging/shared/utils.d.ts.map +1 -0
- package/dist/types/features/page_view_timing/aggregate/index.d.ts.map +1 -1
- package/dist/types/features/session_replay/aggregate/index.d.ts +1 -1
- package/dist/types/features/session_replay/aggregate/index.d.ts.map +1 -1
- package/dist/types/features/session_replay/shared/recorder.d.ts.map +1 -1
- package/dist/types/features/session_trace/aggregate/index.d.ts +7 -4
- package/dist/types/features/session_trace/aggregate/index.d.ts.map +1 -1
- package/dist/types/features/utils/feature-base.d.ts +1 -1
- package/dist/types/features/utils/feature-base.d.ts.map +1 -1
- package/dist/types/features/utils/instrument-base.d.ts +2 -2
- package/dist/types/features/utils/lazy-feature-loader.d.ts.map +1 -1
- package/dist/types/loaders/agent-base.d.ts +25 -4
- package/dist/types/loaders/agent-base.d.ts.map +1 -1
- package/dist/types/loaders/api/api.d.ts +8 -0
- package/dist/types/loaders/api/api.d.ts.map +1 -1
- package/dist/types/loaders/api/interaction-types.d.ts.map +1 -1
- package/dist/types/loaders/features/features.d.ts +1 -0
- package/dist/types/loaders/features/features.d.ts.map +1 -1
- package/dist/types/loaders/micro-agent.d.ts.map +1 -1
- package/package.json +15 -28
- package/src/cdn/experimental.js +2 -0
- package/src/cdn/polyfills/pro.js +3 -1
- package/src/cdn/polyfills/spa.js +2 -0
- package/src/cdn/pro.js +3 -1
- package/src/cdn/spa.js +2 -0
- package/src/common/config/state/init.js +17 -15
- package/src/common/deny-list/deny-list.js +1 -1
- package/src/common/session/session-entity.js +7 -2
- package/src/common/wrap/wrap-logger.js +49 -0
- package/src/features/logging/aggregate/index.js +101 -0
- package/src/features/logging/constants.js +19 -0
- package/src/features/logging/index.js +1 -0
- package/src/features/logging/instrument/index.js +18 -0
- package/src/features/logging/shared/log.js +28 -0
- package/src/features/logging/shared/utils.js +43 -0
- package/src/features/page_view_timing/aggregate/index.js +1 -2
- package/src/features/session_replay/aggregate/index.js +3 -3
- package/src/features/session_trace/aggregate/index.js +14 -8
- package/src/features/spa/aggregate/index.js +1 -1
- package/src/features/utils/lazy-feature-loader.js +2 -0
- package/src/loaders/agent-base.js +23 -2
- package/src/loaders/api/api-methods.js +1 -1
- package/src/loaders/api/api.js +19 -1
- package/src/loaders/features/features.js +7 -5
|
@@ -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;
|
|
1
|
+
{"version":3,"file":"submit-data.d.ts","sourceRoot":"","sources":["../../../../src/common/util/submit-data.js"],"names":[],"mappings":"AAQA;;GAEG;AAEH;;;;;GAKG;AACH,qDAHG;IAAsB,cAAc,EAA5B,OAAO;CAEjB,8BAQA;AAED;;;;;;;;;GASG;AACH,0DAPG;IAAqB,GAAG,EAAhB,MAAM;IACQ,IAAI,GAAlB,MAAM,YAAC;IACQ,IAAI,GAAnB,OAAO,YAAC;IACO,MAAM,GAArB,MAAM,YAAC;IAC+B,OAAO;aAAvC,MAAM;eAAS,MAAM;;CACnC,GAAU,cAAc,CAmB1B;AAED;;;;;;GAMG;AACH,sCAJG;IAAqB,GAAG,EAAhB,MAAM;IACQ,IAAI,GAAlB,MAAM,YAAC;CACf,GAAU,OAAO,CAanB;6BAjEY,0BAAU"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"type-check.d.ts","sourceRoot":"","sources":["../../../../src/common/util/type-check.js"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,
|
|
1
|
+
{"version":3,"file":"type-check.d.ts","sourceRoot":"","sources":["../../../../src/common/util/type-check.js"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,kCAFW,GAAC,WAIX"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Wraps a supplied function and adds emitter events under the `-wrap-logger-` prefix
|
|
3
|
+
* @param {Object} sharedEE - The shared event emitter on which a new scoped event emitter will be based.
|
|
4
|
+
* @param {Object} parent - The parent object housing the logger function
|
|
5
|
+
* @param {string} loggerFn - The name of the function in the parent object to wrap
|
|
6
|
+
* @returns {Object} Scoped event emitter with a debug ID of `logger`.
|
|
7
|
+
*/
|
|
8
|
+
export function wrapLogger(sharedEE: Object, parent: Object, loggerFn: string, context: any): Object;
|
|
9
|
+
/**
|
|
10
|
+
* Returns an event emitter scoped specifically for the `logger` context. This scoping is a remnant from when all the
|
|
11
|
+
* features shared the same group in the event, to isolate events between features. It will likely be revisited.
|
|
12
|
+
* @param {Object} sharedEE - Optional event emitter on which to base the scoped emitter.
|
|
13
|
+
* Uses `ee` on the global scope if undefined).
|
|
14
|
+
* @returns {Object} Scoped event emitter with a debug ID of 'logger'.
|
|
15
|
+
*/
|
|
16
|
+
export function scopedEE(sharedEE: Object): Object;
|
|
17
|
+
//# sourceMappingURL=wrap-logger.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"wrap-logger.d.ts","sourceRoot":"","sources":["../../../../src/common/wrap/wrap-logger.js"],"names":[],"mappings":"AAaA;;;;;;GAMG;AAEH,qCANW,MAAM,UACN,MAAM,YACN,MAAM,iBACJ,MAAM,CAmBlB;AAED;;;;;;GAMG;AACH,mCAJW,MAAM,GAEJ,MAAM,CAIlB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"compute-stack-trace.d.ts","sourceRoot":"","sources":["../../../../../src/features/jserrors/aggregate/compute-stack-trace.js"],"names":[],"mappings":"AAqEA;;;;;;;;;;GAUG;AAEH;;;;GAIG;AACH,sCAHW,KAAK,GACH,SAAS,CA2CrB;;;;;;;;UAvDa,MAAM;;;;aACN,MAAM;;;;iBACN,MAAM;;;;YACN,
|
|
1
|
+
{"version":3,"file":"compute-stack-trace.d.ts","sourceRoot":"","sources":["../../../../../src/features/jserrors/aggregate/compute-stack-trace.js"],"names":[],"mappings":"AAqEA;;;;;;;;;;GAUG;AAEH;;;;GAIG;AACH,sCAHW,KAAK,GACH,SAAS,CA2CrB;;;;;;;;UAvDa,MAAM;;;;aACN,MAAM;;;;iBACN,MAAM;;;;YACN,KAAK,CAAC,MAAM,CAAC;;;;SACb,MAAM;;;;UACN,MAAM;;;;UACN,MAAM"}
|
|
@@ -30,6 +30,6 @@ export class Aggregate extends AggregateBase {
|
|
|
30
30
|
onSoftNavNotification(interactionId: any, wasFinished: any, softNavAttrs: any): void;
|
|
31
31
|
#private;
|
|
32
32
|
}
|
|
33
|
-
export type StackInfo = import(
|
|
33
|
+
export type StackInfo = import("./compute-stack-trace.js").StackInfo;
|
|
34
34
|
import { AggregateBase } from '../../utils/aggregate-base';
|
|
35
35
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
export class Aggregate extends AggregateBase {
|
|
2
|
+
static featureName: string;
|
|
3
|
+
constructor(agentIdentifier: any, aggregator: any);
|
|
4
|
+
/** held logs before sending */
|
|
5
|
+
bufferedLogs: any[];
|
|
6
|
+
/** held logs during sending, for retries */
|
|
7
|
+
outgoingLogs: any[];
|
|
8
|
+
/** the estimated bytes of log data waiting to be sent -- triggers a harvest if adding a new log will exceed limit */
|
|
9
|
+
estimatedBytes: number;
|
|
10
|
+
harvestTimeSeconds: any;
|
|
11
|
+
scheduler: HarvestScheduler;
|
|
12
|
+
handleLog(timestamp: any, message: any, attributes: any, level: any): void;
|
|
13
|
+
prepareHarvest(): {
|
|
14
|
+
qs: {
|
|
15
|
+
browser_monitoring_key: any;
|
|
16
|
+
};
|
|
17
|
+
body: {
|
|
18
|
+
common: {
|
|
19
|
+
/** Attributes in the `common` section are added to `all` logs generated in the payload */
|
|
20
|
+
attributes: {
|
|
21
|
+
'entity.guid': any;
|
|
22
|
+
session: any;
|
|
23
|
+
hasReplay: boolean;
|
|
24
|
+
hasTrace: boolean;
|
|
25
|
+
ptid: any;
|
|
26
|
+
appId: any;
|
|
27
|
+
standalone: boolean;
|
|
28
|
+
agentVersion: any;
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
/** logs section contains individual unique log entries */
|
|
32
|
+
logs: any[];
|
|
33
|
+
}[];
|
|
34
|
+
} | undefined;
|
|
35
|
+
onHarvestFinished(result: any): void;
|
|
36
|
+
#private;
|
|
37
|
+
}
|
|
38
|
+
import { AggregateBase } from '../../utils/aggregate-base';
|
|
39
|
+
import { HarvestScheduler } from '../../../common/harvest/harvest-scheduler';
|
|
40
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/features/logging/aggregate/index.js"],"names":[],"mappings":"AAWA;IACE,2BAAiC;IAGjC,mDA4BC;IAzBC,+BAA+B;IAC/B,oBAAsB;IACtB,4CAA4C;IAC5C,oBAAsB;IACtB,sHAAsH;IACtH,uBAAuB;IAKvB,wBAAmG;IAGjG,4BAKQ;IASZ,2EAoBC;IAED;;;;;;gBAYQ,0FAA0F;;;;;;;;;;;;YAY5F,0DAA0D;;;kBAI/D;IAED,qCAEC;;CACF;8BA7F6B,4BAA4B;iCAJzB,2CAA2C"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export namespace LOG_LEVELS {
|
|
2
|
+
let ERROR: string;
|
|
3
|
+
let WARN: string;
|
|
4
|
+
let INFO: string;
|
|
5
|
+
let DEBUG: string;
|
|
6
|
+
let TRACE: string;
|
|
7
|
+
}
|
|
8
|
+
export const LOGGING_EVENT_EMITTER_CHANNEL: "log";
|
|
9
|
+
export const FEATURE_NAME: string;
|
|
10
|
+
export const MAX_PAYLOAD_SIZE: 1000000;
|
|
11
|
+
export const LOGGING_FAILURE_MESSAGE: "failed to wrap logger: ";
|
|
12
|
+
export const LOGGING_LEVEL_FAILURE_MESSAGE: "invalid log level: ";
|
|
13
|
+
export const LOGGING_IGNORED: "ignored log: ";
|
|
14
|
+
//# sourceMappingURL=constants.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../src/features/logging/constants.js"],"names":[],"mappings":";;;;;;;AAUA,kDAAkD;AAElD,kCAAiD;AAEjD,uCAAuC;AAEvC,gEAAgE;AAChE,kEAAkE;AAClE,8CAA8C"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/features/logging/index.js"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/features/logging/instrument/index.js"],"names":[],"mappings":"AAIA;IACE,2BAAiC;IACjC,mEAUC;CACF;+BAjB8B,6BAA6B"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export class Log {
|
|
2
|
+
/**
|
|
3
|
+
* @param {number} timestamp - Unix timestamp
|
|
4
|
+
* @param {string} message - message string
|
|
5
|
+
* @param {object} attributes - other log event attributes
|
|
6
|
+
* @param {enum} level - Log level
|
|
7
|
+
*/
|
|
8
|
+
constructor(timestamp: number, message: string, attributes?: object, level?: enum);
|
|
9
|
+
/** @type {long} the unix timestamp of the log event */
|
|
10
|
+
timestamp: long;
|
|
11
|
+
/** @type {string} the log message */
|
|
12
|
+
message: string;
|
|
13
|
+
/** @type {object} the object of attributes to be parsed by logging ingest into top-level properties */
|
|
14
|
+
attributes: object;
|
|
15
|
+
/** @type {'ERROR'|'TRACE'|'DEBUG'|'INFO'|'WARN'} the log type of the log */
|
|
16
|
+
level: "ERROR" | "TRACE" | "DEBUG" | "INFO" | "WARN";
|
|
17
|
+
}
|
|
18
|
+
//# sourceMappingURL=log.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"log.d.ts","sourceRoot":"","sources":["../../../../../src/features/logging/shared/log.js"],"names":[],"mappings":"AAIA;IAUE;;;;;OAKG;IACH,uBALW,MAAM,WACN,MAAM,eACN,MAAM,UACN,IAAI,EAQd;IArBD,uDAAuD;IACvD,WADW,IAAI,CACN;IACT,qCAAqC;IACrC,SADW,MAAM,CACV;IACP,uGAAuG;IACvG,YADW,MAAM,CACP;IACV,4EAA4E;IAC5E,OADW,OAAO,GAAC,OAAO,GAAC,OAAO,GAAC,MAAM,GAAC,MAAM,CAC3C;CAeN"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @param {ContextualEE} ee - The contextual ee tied to the instance
|
|
3
|
+
* @param {string} message - the log message string
|
|
4
|
+
* @param {{[key: string]: *}} customAttributes - The log's custom attributes if any
|
|
5
|
+
* @param {enum} level - the log level enum
|
|
6
|
+
*/
|
|
7
|
+
export function bufferLog(ee: ContextualEE, message: string, customAttributes?: {
|
|
8
|
+
[key: string]: any;
|
|
9
|
+
}, level?: enum): void;
|
|
10
|
+
/**
|
|
11
|
+
* Checks if a supplied log level is acceptable for use in generating a log event
|
|
12
|
+
* @param {string} level
|
|
13
|
+
* @returns {boolean}
|
|
14
|
+
*/
|
|
15
|
+
export function isValidLogLevel(level: string): boolean;
|
|
16
|
+
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../../src/features/logging/shared/utils.js"],"names":[],"mappings":"AAQA;;;;;KAKK;AACL,8BALa,YAAY,WACZ,MAAM,qBACN;IAAC,CAAC,GAAG,EAAE,MAAM,GAAG,GAAC,CAAA;CAAC,UAClB,IAAI,QAoBhB;AAED;;;;GAIG;AACH,uCAHW,MAAM,GACJ,OAAO,CAKnB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/features/page_view_timing/aggregate/index.js"],"names":[],"mappings":"AAyBA;IACE,2BAAiC;IAMjC,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/features/page_view_timing/aggregate/index.js"],"names":[],"mappings":"AAyBA;IACE,2BAAiC;IAMjC,mDA0CC;IAvCC,eAAiB;IACjB,mBAAqB;IACrB,4BAA+B;IAuCjC;;;OAGG;IACH,6BAFW,MAAM,QAOhB;IAED;;OAEG;IACH,uCAUC;IAED,mDAuBC;IAED,qCAKC;IAED,gDAWC;IAGD;;;;kBAWC;IAGD,8BAuBC;;CACF;8BA7K6B,4BAA4B"}
|
|
@@ -62,7 +62,7 @@ export class Aggregate extends AggregateBase {
|
|
|
62
62
|
*/
|
|
63
63
|
forceStop(forceHarvest: any): void;
|
|
64
64
|
/** Abort the feature, once aborted it will not resume */
|
|
65
|
-
abort(reason
|
|
65
|
+
abort(reason: {} | undefined, data: any): void;
|
|
66
66
|
syncWithSessionManager(state?: {}): void;
|
|
67
67
|
}
|
|
68
68
|
import { AggregateBase } from '../../utils/aggregate-base';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/features/session_replay/aggregate/index.js"],"names":[],"mappings":"AAgCA;IACE,2BAAiC;IAIjC,8DAuGC;IA1GD,aAAe;IAKb,8GAA8G;IAC9G,wBAAgH;IAChH,iFAAiF;IACjF,qBAAwB;IAGxB,2CAA2C;IAC3C,sDAAwB;IACxB,6CAA6C;IAC7C,gDAAmB;IAEnB,0BAA0B;IAC1B,kBAAqB;IACrB,6CAA6C;IAC7C,gBAA2B;IAE3B,cAA8B;IAC9B,kBAA+C;IAoC/C,4BAKQ;IA6CV,0BAMC;IAED,qBAWC;IAED;;;;;;;OAOG;IACH,gDAHW,OAAO,GACL,IAAI,CA8DhB;IAED,2BASC;IAED;;;;;;;;;;;;oBAiDC;IAED,sCAIC;IAED;;;;;;;;;;MAsEC;IAED,qCAOC;IAED;;;;OAIG;IACH,mCAKC;IAED,yDAAyD;IACzD
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/features/session_replay/aggregate/index.js"],"names":[],"mappings":"AAgCA;IACE,2BAAiC;IAIjC,8DAuGC;IA1GD,aAAe;IAKb,8GAA8G;IAC9G,wBAAgH;IAChH,iFAAiF;IACjF,qBAAwB;IAGxB,2CAA2C;IAC3C,sDAAwB;IACxB,6CAA6C;IAC7C,gDAAmB;IAEnB,0BAA0B;IAC1B,kBAAqB;IACrB,6CAA6C;IAC7C,gBAA2B;IAE3B,cAA8B;IAC9B,kBAA+C;IAoC/C,4BAKQ;IA6CV,0BAMC;IAED,qBAWC;IAED;;;;;;;OAOG;IACH,gDAHW,OAAO,GACL,IAAI,CA8DhB;IAED,2BASC;IAED;;;;;;;;;;;;oBAiDC;IAED,sCAIC;IAED;;;;;;;;;;MAsEC;IAED,qCAOC;IAED;;;;OAIG;IACH,mCAKC;IAED,yDAAyD;IACzD,+CAUC;IAED,yCAGC;CACF;8BA3Y6B,4BAA4B;iCAHzB,2CAA2C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"recorder.d.ts","sourceRoot":"","sources":["../../../../../src/features/session_replay/shared/recorder.js"],"names":[],"mappings":"AAYA;IAUE,yBAkBC;IAdC,iEAAiE;IACjE,mBAAsB;IACtB,6DAA6D;IAC7D,oCAAuC;IACvC,kIAAkI;IAClI,kBAAqB;IACrB,sDAAsD;IACtD,YAAoB;IACpB,oEAAoE;IACpE,6BAAqH;IACrH,0FAA0F;IAC1F,eAA6C;IAC7C,uIAAuI;IACvI,0BAAyE;IAG3E;;;;;;;;;MAYC;IAED,mFAAmF;IACnF,oBAKC;IAED,qDAAqD;IACrD,uBAsCC;IAED;;;;;OAKG;IACH,
|
|
1
|
+
{"version":3,"file":"recorder.d.ts","sourceRoot":"","sources":["../../../../../src/features/session_replay/shared/recorder.js"],"names":[],"mappings":"AAYA;IAUE,yBAkBC;IAdC,iEAAiE;IACjE,mBAAsB;IACtB,6DAA6D;IAC7D,oCAAuC;IACvC,kIAAkI;IAClI,kBAAqB;IACrB,sDAAsD;IACtD,YAAoB;IACpB,oEAAoE;IACpE,6BAAqH;IACrH,0FAA0F;IAC1F,eAA6C;IAC7C,uIAAuI;IACvI,0BAAyE;IAG3E;;;;;;;;;MAYC;IAED,mFAAmF;IACnF,oBAKC;IAED,qDAAqD;IACrD,uBAsCC;IAED;;;;;OAKG;IACH,aAHW,GAAC,cACD,GAAC,QA4BX;IAED,0HAA0H;IAC1H,yCAqDC;IA3CG,8BAAoB;IA6CxB,0HAA0H;IAC1H,yBAOC;IAED,wBAEC;IAED,gCAAgC;IAChC,uCAGC;IAED;;;SAGK;IACL,oCAGC;;CACF;+BA3N8B,mBAAmB"}
|
|
@@ -16,13 +16,16 @@ export class Aggregate extends AggregateBase {
|
|
|
16
16
|
traceStorage: TraceStorage;
|
|
17
17
|
/** Sets up event listeners, and initializes this module to run in the correct "mode". Can be triggered from a few places, but makes an effort to only set up listeners once */
|
|
18
18
|
initialize(stMode: any, stEntitled: any, ignoreSession: any): void;
|
|
19
|
-
mode: any;
|
|
20
19
|
initialized: boolean | undefined;
|
|
20
|
+
/** Store session identifiers at initialization time to be cross-checked later at harvest time for session changes that are subject to race conditions */
|
|
21
|
+
ptid: any;
|
|
22
|
+
sessionId: any;
|
|
23
|
+
mode: any;
|
|
21
24
|
scheduler: HarvestScheduler | undefined;
|
|
22
25
|
/** This module does not auto harvest by default -- it needs to be kicked off. Once this method is called, it will then harvest on an interval */
|
|
23
26
|
startHarvesting(): void;
|
|
24
27
|
/** Called by the harvest scheduler at harvest time to retrieve the payload. This will only actually return a payload if running in full mode */
|
|
25
|
-
prepareHarvest(options?: {}): {
|
|
28
|
+
prepareHarvest(options?: {}): void | {
|
|
26
29
|
qs: {
|
|
27
30
|
browser_monitoring_key: any;
|
|
28
31
|
type: string;
|
|
@@ -32,7 +35,7 @@ export class Aggregate extends AggregateBase {
|
|
|
32
35
|
attributes: string;
|
|
33
36
|
};
|
|
34
37
|
body: any[];
|
|
35
|
-
}
|
|
38
|
+
};
|
|
36
39
|
/** When the harvest scheduler finishes, this callback is executed. It's main purpose is to determine if the payload needs to be retried
|
|
37
40
|
* and if so, it will take all data from the temporary buffer and place it back into the traceStorage module
|
|
38
41
|
*/
|
|
@@ -40,7 +43,7 @@ export class Aggregate extends AggregateBase {
|
|
|
40
43
|
/** Switch from "off" or "error" to full mode (if entitled) */
|
|
41
44
|
switchToFull(): void;
|
|
42
45
|
/** Stop running for the remainder of the page lifecycle */
|
|
43
|
-
abort(): void;
|
|
46
|
+
abort(reason: any): void;
|
|
44
47
|
}
|
|
45
48
|
import { AggregateBase } from '../../utils/aggregate-base';
|
|
46
49
|
import { TraceStorage } from './trace/storage';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/features/session_trace/aggregate/index.js"],"names":[],"mappings":"AAcA;IACE,2BAAiC;IAEjC,mDAmBC;IAjBC,kBAA+C;IAC/C,eAAyC;IAEzC,0FAA0F;IAC1F,wBAAqB;IACrB,wBAA0G;IAC1G,0GAA0G;IAC1G,cAAyB;IACzB,mIAAmI;IACnI,uBAA0B;IAC1B,0CAA0C;IAC1C,oBAAuB;IACvB,wIAAwI;IACxI,2BAA0C;IAM5C,gLAAgL;IAChL,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/features/session_trace/aggregate/index.js"],"names":[],"mappings":"AAcA;IACE,2BAAiC;IAEjC,mDAmBC;IAjBC,kBAA+C;IAC/C,eAAyC;IAEzC,0FAA0F;IAC1F,wBAAqB;IACrB,wBAA0G;IAC1G,0GAA0G;IAC1G,cAAyB;IACzB,mIAAmI;IACnI,uBAA0B;IAC1B,0CAA0C;IAC1C,oBAAuB;IACvB,wIAAwI;IACxI,2BAA0C;IAM5C,gLAAgL;IAChL,mEAoEC;IA/DG,iCAAuB;IACvB,yJAAyJ;IACzJ,UAAkC;IAClC,eAAuD;IAmBD,UAA4D;IASpH,wCAKQ;IA6BV,kJAAkJ;IAClJ,wBAIC;IAED,iJAAiJ;IACjJ;;;;;;;;;;MA4DC;IAED;;OAEG;IACH,qCAKC;IAED,8DAA8D;IAC9D,qBAUC;IAED,2DAA2D;IAC3D,yBAKC;CACF;8BA7M6B,4BAA4B;6BAC7B,iBAAiB;iCAJb,2CAA2C"}
|
|
@@ -3,7 +3,7 @@ export class FeatureBase {
|
|
|
3
3
|
/** @type {string} */
|
|
4
4
|
agentIdentifier: string;
|
|
5
5
|
/** @type {import('../../common/aggregate/aggregator').Aggregator} */
|
|
6
|
-
aggregator: import(
|
|
6
|
+
aggregator: import("../../common/aggregate/aggregator").Aggregator;
|
|
7
7
|
/** @type {import('../../common/event-emitter/contextual-ee').ee} */
|
|
8
8
|
ee: any;
|
|
9
9
|
/** @type {string} */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"feature-base.d.ts","sourceRoot":"","sources":["../../../../src/features/utils/feature-base.js"],"names":[],"mappings":"AAEA;IACE,qEAeC;IAdC,qBAAqB;IACrB,iBADW,MAAM,CACqB;IACtC,qEAAqE;IACrE,YADW,OAAO,mCAAmC,EAAE,UAAU,CACrC;IAC5B,oEAAoE;IACpE,
|
|
1
|
+
{"version":3,"file":"feature-base.d.ts","sourceRoot":"","sources":["../../../../src/features/utils/feature-base.js"],"names":[],"mappings":"AAEA;IACE,qEAeC;IAdC,qBAAqB;IACrB,iBADW,MAAM,CACqB;IACtC,qEAAqE;IACrE,YADW,OAAO,mCAAmC,EAAE,UAAU,CACrC;IAC5B,oEAAoE;IACpE,IADW,GAAqD,CAC/B;IACjC,qBAAqB;IACrB,aADW,MAAM,CACa;IAC9B;;;;OAIG;IACH,SAFU,OAAO,CAEG;CAEvB"}
|
|
@@ -12,7 +12,7 @@ export class InstrumentBase extends FeatureBase {
|
|
|
12
12
|
* of its pooled instrumentation data handled by the agent's centralized drain functionality, rather than draining
|
|
13
13
|
* immediately. Primarily useful for fine-grained control in tests.
|
|
14
14
|
*/
|
|
15
|
-
constructor(agentIdentifier: string, aggregator: import(
|
|
15
|
+
constructor(agentIdentifier: string, aggregator: import("../../common/aggregate/aggregator").Aggregator, featureName: string, auto?: boolean | undefined);
|
|
16
16
|
auto: boolean;
|
|
17
17
|
/** @type {Function | undefined} This should be set by any derived Instrument class if it has things to do when feature fails or is killed. */
|
|
18
18
|
abortHandler: Function | undefined;
|
|
@@ -20,7 +20,7 @@ export class InstrumentBase extends FeatureBase {
|
|
|
20
20
|
* @type {import('./aggregate-base').AggregateBase} Holds the reference to the feature's aggregate module counterpart, if and after it has been initialized. This may not be assigned until after page loads!
|
|
21
21
|
* The only purpose of this for now is to expose it to the NREUM interface, as the feature's instrument instance is already exposed.
|
|
22
22
|
*/
|
|
23
|
-
featAggregate: import(
|
|
23
|
+
featAggregate: import("./aggregate-base").AggregateBase;
|
|
24
24
|
/**
|
|
25
25
|
* @type {Promise} Assigned immediately after @see importAggregator runs. Serves as a signal for when the inner async fn finishes execution. Useful for features to await
|
|
26
26
|
* one another if there are inter-features dependencies.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lazy-feature-loader.d.ts","sourceRoot":"","sources":["../../../../src/features/utils/lazy-feature-loader.js"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AACH,uEAFa,
|
|
1
|
+
{"version":3,"file":"lazy-feature-loader.d.ts","sourceRoot":"","sources":["../../../../src/features/utils/lazy-feature-loader.js"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AACH,uEAFa,OAAO,CAAC,cAAc,GAAC,WAAW,GAAC,IAAI,CAAC,CA+BpD"}
|
|
@@ -23,10 +23,10 @@ export class AgentBase {
|
|
|
23
23
|
* Adds a user-defined attribute name and value to subsequent events on the page.
|
|
24
24
|
* {@link https://docs.newrelic.com/docs/browser/new-relic-browser/browser-apis/setcustomattribute/}
|
|
25
25
|
* @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.
|
|
26
|
-
* @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
|
|
27
|
-
* @param {boolean} [persist] Default false.
|
|
26
|
+
* @param {string|number|boolean|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, Integers and Booleans. Passing a null value unsets any existing attribute of the same name.
|
|
27
|
+
* @param {boolean} [persist] Default false. If 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.
|
|
28
28
|
*/
|
|
29
|
-
setCustomAttribute(name: string, value: string | number | null, persist?: boolean | undefined): any;
|
|
29
|
+
setCustomAttribute(name: string, value: string | number | boolean | null, persist?: boolean | undefined): any;
|
|
30
30
|
/**
|
|
31
31
|
* Identifies a browser error without disrupting your app's operations.
|
|
32
32
|
* {@link https://docs.newrelic.com/docs/browser/new-relic-browser/browser-apis/noticeerror/}
|
|
@@ -121,7 +121,28 @@ export class AgentBase {
|
|
|
121
121
|
* - Note: Does not apply to MicroAgent
|
|
122
122
|
*/
|
|
123
123
|
interaction(): InteractionInstance;
|
|
124
|
+
/**
|
|
125
|
+
* Capture a single log.
|
|
126
|
+
* {@link https://docs.newrelic.com/docs/browser/new-relic-browser/browser-apis/loginfo/}
|
|
127
|
+
* @param {string} message String to be captured as log message
|
|
128
|
+
* @param {{customAttributes?: object, level?: 'ERROR'|'TRACE'|'DEBUG'|'INFO'|'WARN'}} [options] customAttributes defaults to `{}` if not assigned, level defaults to `info` if not assigned.
|
|
129
|
+
*/
|
|
130
|
+
log(message: string, options?: {
|
|
131
|
+
customAttributes?: object;
|
|
132
|
+
level?: "ERROR" | "TRACE" | "DEBUG" | "INFO" | "WARN";
|
|
133
|
+
} | undefined): any;
|
|
134
|
+
/**
|
|
135
|
+
* Wrap a logger function to capture a log each time the function is invoked with the message and arguments passed
|
|
136
|
+
* {@link https://docs.newrelic.com/docs/browser/new-relic-browser/browser-apis/wraplogger/}
|
|
137
|
+
* @param {object} parent The parent object containing the logger method
|
|
138
|
+
* @param {string} functionName The property name of the function in the parent object to be wrapped
|
|
139
|
+
* @param {{customAttributes?: object, level?: 'ERROR'|'TRACE'|'DEBUG'|'INFO'|'WARN'}} [options] customAttributes defaults to `{}` if not assigned, level defaults to `info` if not assigned.
|
|
140
|
+
*/
|
|
141
|
+
wrapLogger(parent: object, functionName: string, options?: {
|
|
142
|
+
customAttributes?: object;
|
|
143
|
+
level?: "ERROR" | "TRACE" | "DEBUG" | "INFO" | "WARN";
|
|
144
|
+
} | undefined): any;
|
|
124
145
|
#private;
|
|
125
146
|
}
|
|
126
|
-
export type InteractionInstance = import(
|
|
147
|
+
export type InteractionInstance = import("./api/interaction-types").InteractionInstance;
|
|
127
148
|
//# sourceMappingURL=agent-base.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agent-base.d.ts","sourceRoot":"","sources":["../../../src/loaders/agent-base.js"],"names":[],"mappings":"AAOA;;GAEG;AAEH;IAGE,sCAKC;IAPD,wBAAe;IAMb,QAAiC;IAanC;;;;;OAKG;IACH,oBAHW,MAAM,wCAKhB;IAED;;;;;OAKG;IACH,sBAHW,MAAM,kCAKhB;IAED;;;;;;OAMG;IACH,yBAJW,MAAM,SACN,MAAM,GAAC,MAAM,GAAC,IAAI,
|
|
1
|
+
{"version":3,"file":"agent-base.d.ts","sourceRoot":"","sources":["../../../src/loaders/agent-base.js"],"names":[],"mappings":"AAOA;;GAEG;AAEH;IAGE,sCAKC;IAPD,wBAAe;IAMb,QAAiC;IAanC;;;;;OAKG;IACH,oBAHW,MAAM,wCAKhB;IAED;;;;;OAKG;IACH,sBAHW,MAAM,kCAKhB;IAED;;;;;;OAMG;IACH,yBAJW,MAAM,SACN,MAAM,GAAC,MAAM,GAAC,OAAO,GAAC,IAAI,sCAKpC;IAED;;;;;OAKG;IACH,mBAHW,KAAK,GAAC,MAAM,8CAKtB;IAED;;;;OAIG;IACH,iBAFW,MAAM,GAAC,IAAI,OAIrB;IAED;;;;;;;OAOG;IACH,6BAJW,MAAM,GAAC,IAAI,OAMrB;IAED;;;;OAIG;IACH,0BAFW,CAAC,KAAK,EAAE,KAAK,GAAC,MAAM,KAAK,OAAO,GAAG;QAAE,KAAK,EAAE,MAAM,CAAA;KAAE,OAI9D;IAED;;;;OAIG;IACH,8CAEC;IAED;;;;;OAKG;IACH,iBAHW,MAAM,MACN,MAAM,OAIhB;IAED;;;;OAIG;IACH,yDAEC;IAED;;;;OAIG;IACH,oBAEC;IAED;;;;;OAKG;IACH,mBAEC;IAED;;;;;;;;;;OAUG;IACH,6BARW;QAAC,IAAI,EAAE,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,OAUrF;IAED;;;;;OAKG;IACH,0BAHW,MAAM,OAKhB;IAED;;;;;MAKE;IACF,eAHa,mBAAmB,CAK/B;IAED;;;;;MAKE;IACF,aAHW,MAAM;2BACc,MAAM;gBAAU,OAAO,GAAC,OAAO,GAAC,OAAO,GAAC,MAAM,GAAC,MAAM;wBAInF;IAED;;;;;;MAME;IACF,mBAJW,MAAM,gBACN,MAAM;2BACc,MAAM;gBAAU,OAAO,GAAC,OAAO,GAAC,OAAO,GAAC,MAAM,GAAC,MAAM;wBAInF;;CACF;kCApMY,OAAO,yBAAyB,EAAE,mBAAmB"}
|
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
export function setTopLevelCallers(): void;
|
|
2
2
|
export function setAPI(agentIdentifier: any, forceDrain: any, runSoftNavOverSpa?: boolean): {
|
|
3
|
+
log(message: any, { customAttributes, level }?: {
|
|
4
|
+
customAttributes?: {} | undefined;
|
|
5
|
+
level?: string | undefined;
|
|
6
|
+
}): void;
|
|
7
|
+
wrapLogger(parent: any, functionName: any, { customAttributes, level }?: {
|
|
8
|
+
customAttributes?: {} | undefined;
|
|
9
|
+
level?: string | undefined;
|
|
10
|
+
}): void;
|
|
3
11
|
addPageAction: (...args: any[]) => any;
|
|
4
12
|
setPageViewName(name: any, host: any): any;
|
|
5
13
|
setCustomAttribute(name: any, value: any, persistAttribute?: boolean): any;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../../../../src/loaders/api/api.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../../../../src/loaders/api/api.js"],"names":[],"mappings":"AAsBA,2CAeC;AAID;;;;;;;;;;;;IAsEE;;;;OAIG;qBAFQ,MAAM;IAWjB;;;;OAIG;iCAFQ,MAAM,GAAC,IAAI;;;;;EAiGvB"}
|
|
@@ -1 +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;;;;;GAKG;AAEH;;;;;;GAMG;AAEH;;;;;GAKG;AAEH;;;;;;;GAOG;AAEH;;;;;;;GAOG;AAGH,wBAAwB;;gBApFV,UAAU;kBACV,YAAY;SACZ,GAAG;gBACH,UAAU;YACV,MAAM;WACN,KAAK;UACL,IAAI;kBACJ,YAAY;aACZ,OAAO;;;;;;iCAOV,MAAM,KACJ,mBAAmB;;;;;kCAOrB,MAAM,wBACI,GAAG,EAAE,KAAK,GAAG,
|
|
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;;;;;GAKG;AAEH;;;;;;GAMG;AAEH;;;;;GAKG;AAEH;;;;;;;GAOG;AAEH;;;;;;;GAOG;AAGH,wBAAwB;;gBApFV,UAAU;kBACV,YAAY;SACZ,GAAG;gBACH,UAAU;YACV,MAAM;WACN,KAAK;UACL,IAAI;kBACJ,YAAY;aACZ,OAAO;;;;;;iCAOV,MAAM,KACJ,mBAAmB;;;;;kCAOrB,MAAM,wBACI,GAAG,EAAE,KAAK,GAAG,kBACrB,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG;;;;;wBAOvB,mBAAmB;;;;;oCAOrB,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,KACnB,mBAAmB;;;;;2BAOnB,mBAAmB;;;;;+BAOrB,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,KACnB,mBAAmB;;;;;yBAOnB,mBAAmB;;;;;iCAOrB,MAAM,SACN,GAAG,KACD,mBAAmB;;;;;6BAOrB,MAAM,mCAEJ,mBAAmB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"features.d.ts","sourceRoot":"","sources":["../../../../src/loaders/features/features.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"features.d.ts","sourceRoot":"","sources":["../../../../src/loaders/features/features.js"],"names":[],"mappings":";;;;;;;;;;;;;AAcA;;;GAGG;AACH;;EAYC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"micro-agent.d.ts","sourceRoot":"","sources":["../../../src/loaders/micro-agent.js"],"names":[],"mappings":"AAmBA;;;;GAIG;AACH;IACE;;;OAGG;IACH,qBAHW,MAAM,oBACN,MAAM,
|
|
1
|
+
{"version":3,"file":"micro-agent.d.ts","sourceRoot":"","sources":["../../../src/loaders/micro-agent.js"],"names":[],"mappings":"AAmBA;;;;GAIG;AACH;IACE;;;OAGG;IACH,qBAHW,MAAM,oBACN,MAAM,YAAC,EAmBjB;IAdC,6BAAiF;IACjF,aAAkB;IAMlB;;;;OAIG;IACH,yCAA2C;IAI7C;;;;;MAOC;IAED,mCAyCC;CACF;0BAxFyB,cAAc;2BANb,gCAAgC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@newrelic/browser-agent",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.261.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"author": "New Relic Browser Agent Team <browser-agent@newrelic.com>",
|
|
6
6
|
"description": "New Relic Browser Agent",
|
|
@@ -35,6 +35,9 @@
|
|
|
35
35
|
"features/jserrors": [
|
|
36
36
|
"dist/types/features/jserrors/index.d.ts"
|
|
37
37
|
],
|
|
38
|
+
"features/logging": [
|
|
39
|
+
"dist/types/features/logging/index.d.ts"
|
|
40
|
+
],
|
|
38
41
|
"features/metrics": [
|
|
39
42
|
"dist/types/features/metrics/index.d.ts"
|
|
40
43
|
],
|
|
@@ -91,6 +94,11 @@
|
|
|
91
94
|
"require": "./dist/cjs/features/jserrors/index.js",
|
|
92
95
|
"default": "./dist/esm/features/jserrors/index.js"
|
|
93
96
|
},
|
|
97
|
+
"./features/logging": {
|
|
98
|
+
"types": "./dist/types/features/logging/index.d.ts",
|
|
99
|
+
"require": "./dist/cjs/features/logging/index.js",
|
|
100
|
+
"default": "./dist/esm/features/logging/index.js"
|
|
101
|
+
},
|
|
94
102
|
"./features/metrics": {
|
|
95
103
|
"types": "./dist/types/features/metrics/index.d.ts",
|
|
96
104
|
"require": "./dist/cjs/features/metrics/index.js",
|
|
@@ -134,11 +142,8 @@
|
|
|
134
142
|
"test:component": "jest --selectProjects component",
|
|
135
143
|
"test:types": "tsd -f ./tests/dts/**/*.ts",
|
|
136
144
|
"wdio": "node --max-old-space-size=8192 tools/wdio/bin/cli.js",
|
|
137
|
-
"jil": "tools/jil/bin/cli.js",
|
|
138
145
|
"build:all": "npm run cdn:build:local && npm run build:npm && npm run tools:test-builds",
|
|
139
146
|
"build:npm": "npm run npm:build:esm && npm run npm:build:cjs && npm run npm:build:types && npm run npm:pack",
|
|
140
|
-
"build:browser-tests": "npm --prefix ./tools/test-builds/browser-tests run build",
|
|
141
|
-
"watch:browser-tests": "jung -r ./src -F '.*\\.test\\.js' --run -- npm run build:browser-tests",
|
|
142
147
|
"cdn:build": "npm run cdn:build:prod",
|
|
143
148
|
"cdn:build:local": "npm run cdn:webpack",
|
|
144
149
|
"cdn:build:prod": "npm run cdn:webpack -- --env mode=prod",
|
|
@@ -146,17 +151,16 @@
|
|
|
146
151
|
"cdn:build:experiment": "npm run cdn:webpack -- --env mode=experiment",
|
|
147
152
|
"cdn:webpack": "npx webpack --progress --config ./tools/webpack/index.mjs",
|
|
148
153
|
"cdn:watch": "jung -r ./src -F '.*\\.test\\.js' --run -- npm run cdn:build:local",
|
|
149
|
-
"cdn:cleanup": "node ./tools/webpack/scripts/cleanup.mjs",
|
|
150
154
|
"test-server": "node ./tools/wdio/bin/server",
|
|
151
|
-
"
|
|
152
|
-
"sauce:get-browsers": "node ./tools/browsers-lists/sauce-browsers.mjs",
|
|
155
|
+
"lt:update-browsers": "node ./tools/browsers-lists/lt-update-supported.mjs",
|
|
153
156
|
"tools:test-builds": "npm --prefix ./tools/test-builds run build-all",
|
|
154
157
|
"third-party-updates": "oss third-party manifest --includeOptDeps && oss third-party notices --includeOptDeps",
|
|
155
158
|
"prepare": "husky install",
|
|
156
159
|
"npm:build:esm": "npx babel --env-name npm-esm --out-dir dist/esm --out-file-extension .js ./src",
|
|
157
160
|
"npm:build:cjs": "npx babel --env-name npm-cjs --out-dir dist/cjs --out-file-extension .js ./src",
|
|
158
161
|
"npm:build:types": "npx tsc -b",
|
|
159
|
-
"npm:pack": "mkdir -p temp && export PKG_NAME=$(npm pack --pack-destination temp) && echo ./temp/$PKG_NAME"
|
|
162
|
+
"npm:pack": "mkdir -p temp && export PKG_NAME=$(npm pack --pack-destination temp) && echo ./temp/$PKG_NAME",
|
|
163
|
+
"publish:nrdb:stage": "npm --prefix .github/actions install && node .github/actions/nr-upload/index.js --environment=stage --loader-version=$npm_package_version --stage-api-key=$STAGE_API_KEY && node .github/actions/nr-verify/index.js --loader-version=$npm_package_version"
|
|
160
164
|
},
|
|
161
165
|
"config": {
|
|
162
166
|
"unsafe-perm": true
|
|
@@ -194,17 +198,11 @@
|
|
|
194
198
|
"@wdio/local-runner": "^8.27.0",
|
|
195
199
|
"@wdio/logger": "^8.24.12",
|
|
196
200
|
"@wdio/mocha-framework": "^8.27.0",
|
|
197
|
-
"@wdio/sauce-service": "^8.27.0",
|
|
198
201
|
"@wdio/spec-reporter": "^8.27.0",
|
|
199
202
|
"babel-jest": "^29.7.0",
|
|
200
203
|
"babel-loader": "^9.1.3",
|
|
201
204
|
"babel-plugin-transform-inline-environment-variables": "^0.4.4",
|
|
202
|
-
"babelify": "^10.0.0",
|
|
203
|
-
"browserify": "^13.3.0",
|
|
204
|
-
"charm": "^1.0.2",
|
|
205
|
-
"concat-stream": "^1.5.1",
|
|
206
205
|
"deepmerge-ts": "^5.1.0",
|
|
207
|
-
"defined": "^1.0.0",
|
|
208
206
|
"dotenv-webpack": "^8.0.1",
|
|
209
207
|
"eslint": "^8.56.0",
|
|
210
208
|
"eslint-config-standard": "^17.1.0",
|
|
@@ -216,8 +214,7 @@
|
|
|
216
214
|
"fastify-plugin": "^4.5.1",
|
|
217
215
|
"form-data": "^4.0.0",
|
|
218
216
|
"fs-extra": "^11.2.0",
|
|
219
|
-
"
|
|
220
|
-
"glob": "^10.2.5",
|
|
217
|
+
"glob": "^10.4.2",
|
|
221
218
|
"html-webpack-plugin": "^5.6.0",
|
|
222
219
|
"husky": "^8.0.3",
|
|
223
220
|
"istanbul-lib-coverage": "^3.2.2",
|
|
@@ -228,30 +225,20 @@
|
|
|
228
225
|
"jest-environment-jsdom": "29.7.0",
|
|
229
226
|
"jest-extended": "^4.0.2",
|
|
230
227
|
"jung": "^2.1.0",
|
|
231
|
-
"just-debounce": "^1.0.0",
|
|
232
228
|
"node-fetch": "^3.3.2",
|
|
233
229
|
"npm-run-all": "^4.1.5",
|
|
234
|
-
"object-inspect": "^1.5.0",
|
|
235
|
-
"path-browserify": "^1.0.1",
|
|
236
|
-
"preprocessify": "0.0.6",
|
|
237
|
-
"process": "^0.11.10",
|
|
238
|
-
"saucelabs": "^7.5.0",
|
|
239
230
|
"semver": "^7.5.4",
|
|
240
231
|
"serialize-anything": "^1.2.3",
|
|
241
|
-
"
|
|
242
|
-
"tap-parser": "^1.2.2",
|
|
243
|
-
"tape": "^4.8.0",
|
|
244
|
-
"through": "^2.3.8",
|
|
232
|
+
"terser-webpack-plugin": "^5.3.10",
|
|
245
233
|
"tsd": "^0.30.0",
|
|
246
234
|
"typescript": "^5.3.3",
|
|
247
235
|
"util": "^0.12.5",
|
|
248
236
|
"uuid": "^9.0.1",
|
|
249
237
|
"wait-on": "^7.2.0",
|
|
250
|
-
"
|
|
238
|
+
"wdio-lambdatest-service": "^2.1.3",
|
|
251
239
|
"webpack": "^5.89.0",
|
|
252
240
|
"webpack-bundle-analyzer": "^4.10.1",
|
|
253
241
|
"webpack-cli": "^5.1.4",
|
|
254
|
-
"webpack-stream": "^7.0.0",
|
|
255
242
|
"yargs": "^17.7.2"
|
|
256
243
|
},
|
|
257
244
|
"files": [
|
package/src/cdn/experimental.js
CHANGED
|
@@ -20,6 +20,7 @@ import { Instrument as InstrumentSessionReplay } from '../features/session_repla
|
|
|
20
20
|
// import { Instrument as InstrumentSpa } from '../features/spa/instrument'
|
|
21
21
|
import { Instrument as InstrumentSoftNav } from '../features/soft_navigations/instrument'
|
|
22
22
|
import { Instrument as InstrumentPageAction } from '../features/page_action/instrument'
|
|
23
|
+
import { Instrument as InstrumentLogs } from '../features/logging/instrument'
|
|
23
24
|
|
|
24
25
|
new Agent({
|
|
25
26
|
features: [
|
|
@@ -31,6 +32,7 @@ new Agent({
|
|
|
31
32
|
InstrumentMetrics,
|
|
32
33
|
InstrumentPageAction,
|
|
33
34
|
InstrumentErrors,
|
|
35
|
+
InstrumentLogs,
|
|
34
36
|
// InstrumentSpa,
|
|
35
37
|
InstrumentSoftNav
|
|
36
38
|
],
|
package/src/cdn/polyfills/pro.js
CHANGED
|
@@ -13,6 +13,7 @@ import { Instrument as InstrumentErrors } from '../../features/jserrors/instrume
|
|
|
13
13
|
import { Instrument as InstrumentXhr } from '../../features/ajax/instrument'
|
|
14
14
|
import { Instrument as InstrumentSessionTrace } from '../../features/session_trace/instrument'
|
|
15
15
|
import { Instrument as InstrumentPageAction } from '../../features/page_action/instrument'
|
|
16
|
+
import { Instrument as InstrumentLogs } from '../../features/logging/instrument'
|
|
16
17
|
|
|
17
18
|
new Agent({
|
|
18
19
|
features: [
|
|
@@ -22,7 +23,8 @@ new Agent({
|
|
|
22
23
|
InstrumentXhr,
|
|
23
24
|
InstrumentMetrics,
|
|
24
25
|
InstrumentPageAction,
|
|
25
|
-
InstrumentErrors
|
|
26
|
+
InstrumentErrors,
|
|
27
|
+
InstrumentLogs
|
|
26
28
|
],
|
|
27
29
|
loaderType: 'pro-polyfills'
|
|
28
30
|
})
|
package/src/cdn/polyfills/spa.js
CHANGED
|
@@ -14,6 +14,7 @@ import { Instrument as InstrumentXhr } from '../../features/ajax/instrument'
|
|
|
14
14
|
import { Instrument as InstrumentSessionTrace } from '../../features/session_trace/instrument'
|
|
15
15
|
import { Instrument as InstrumentSpa } from '../../features/spa/instrument'
|
|
16
16
|
import { Instrument as InstrumentPageAction } from '../../features/page_action/instrument'
|
|
17
|
+
import { Instrument as InstrumentLogs } from '../../features/logging/instrument'
|
|
17
18
|
|
|
18
19
|
new Agent({
|
|
19
20
|
features: [
|
|
@@ -24,6 +25,7 @@ new Agent({
|
|
|
24
25
|
InstrumentMetrics,
|
|
25
26
|
InstrumentPageAction,
|
|
26
27
|
InstrumentErrors,
|
|
28
|
+
InstrumentLogs,
|
|
27
29
|
InstrumentSpa
|
|
28
30
|
],
|
|
29
31
|
loaderType: 'spa-polyfills'
|
package/src/cdn/pro.js
CHANGED
|
@@ -13,6 +13,7 @@ import { Instrument as InstrumentXhr } from '../features/ajax/instrument'
|
|
|
13
13
|
import { Instrument as InstrumentSessionTrace } from '../features/session_trace/instrument'
|
|
14
14
|
import { Instrument as InstrumentSessionReplay } from '../features/session_replay/instrument'
|
|
15
15
|
import { Instrument as InstrumentPageAction } from '../features/page_action/instrument'
|
|
16
|
+
import { Instrument as InstrumentLogs } from '../features/logging/instrument'
|
|
16
17
|
|
|
17
18
|
new Agent({
|
|
18
19
|
features: [
|
|
@@ -23,7 +24,8 @@ new Agent({
|
|
|
23
24
|
InstrumentXhr,
|
|
24
25
|
InstrumentMetrics,
|
|
25
26
|
InstrumentPageAction,
|
|
26
|
-
InstrumentErrors
|
|
27
|
+
InstrumentErrors,
|
|
28
|
+
InstrumentLogs
|
|
27
29
|
],
|
|
28
30
|
loaderType: 'pro'
|
|
29
31
|
})
|
package/src/cdn/spa.js
CHANGED
|
@@ -14,6 +14,7 @@ import { Instrument as InstrumentSessionReplay } from '../features/session_repla
|
|
|
14
14
|
import { Instrument as InstrumentSoftNav } from '../features/soft_navigations/instrument'
|
|
15
15
|
import { Instrument as InstrumentSpa } from '../features/spa/instrument'
|
|
16
16
|
import { Instrument as InstrumentPageAction } from '../features/page_action/instrument'
|
|
17
|
+
import { Instrument as InstrumentLogs } from '../features/logging/instrument'
|
|
17
18
|
|
|
18
19
|
new Agent({
|
|
19
20
|
features: [
|
|
@@ -25,6 +26,7 @@ new Agent({
|
|
|
25
26
|
InstrumentMetrics,
|
|
26
27
|
InstrumentPageAction,
|
|
27
28
|
InstrumentErrors,
|
|
29
|
+
InstrumentLogs,
|
|
28
30
|
InstrumentSoftNav,
|
|
29
31
|
InstrumentSpa // either the softnav or the old spa will be used (not both), but we still need to pack both to avoid dynamic import for instrument files
|
|
30
32
|
],
|