@newrelic/browser-agent 1.268.0 → 1.270.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.
Files changed (173) hide show
  1. package/CHANGELOG.md +25 -0
  2. package/README.md +2 -1
  3. package/dist/cjs/common/constants/env.cdn.js +1 -1
  4. package/dist/cjs/common/constants/env.npm.js +1 -1
  5. package/dist/cjs/common/constants/runtime.js +1 -2
  6. package/dist/cjs/common/harvest/harvest-scheduler.js +3 -4
  7. package/dist/cjs/common/unload/eol.js +2 -5
  8. package/dist/cjs/common/util/submit-data.js +1 -1
  9. package/dist/cjs/features/ajax/aggregate/index.js +8 -17
  10. package/dist/cjs/features/ajax/instrument/index.js +8 -10
  11. package/dist/cjs/features/generic_events/aggregate/index.js +15 -22
  12. package/dist/cjs/features/generic_events/instrument/index.js +5 -8
  13. package/dist/cjs/features/jserrors/aggregate/index.js +38 -23
  14. package/dist/cjs/features/jserrors/aggregate/internal-errors.js +42 -0
  15. package/dist/cjs/features/jserrors/instrument/index.js +3 -3
  16. package/dist/cjs/features/logging/aggregate/index.js +21 -20
  17. package/dist/cjs/features/logging/instrument/index.js +3 -3
  18. package/dist/cjs/features/metrics/aggregate/index.js +13 -16
  19. package/dist/cjs/features/metrics/instrument/index.js +3 -3
  20. package/dist/cjs/features/page_view_event/aggregate/index.js +15 -29
  21. package/dist/cjs/features/page_view_event/instrument/index.js +3 -3
  22. package/dist/cjs/features/page_view_timing/aggregate/index.js +6 -23
  23. package/dist/cjs/features/page_view_timing/instrument/index.js +3 -3
  24. package/dist/cjs/features/session_replay/aggregate/index.js +15 -29
  25. package/dist/cjs/features/session_replay/instrument/index.js +7 -5
  26. package/dist/cjs/features/session_trace/aggregate/index.js +28 -34
  27. package/dist/cjs/features/session_trace/instrument/index.js +4 -5
  28. package/dist/cjs/features/soft_navigations/aggregate/index.js +6 -11
  29. package/dist/cjs/features/soft_navigations/instrument/index.js +3 -3
  30. package/dist/cjs/features/spa/aggregate/index.js +19 -30
  31. package/dist/cjs/features/spa/instrument/index.js +8 -4
  32. package/dist/cjs/features/utils/aggregate-base.js +11 -12
  33. package/dist/cjs/features/utils/feature-base.js +5 -3
  34. package/dist/cjs/features/utils/instrument-base.js +18 -10
  35. package/dist/cjs/loaders/agent-base.js +1 -0
  36. package/dist/cjs/loaders/agent.js +1 -5
  37. package/dist/cjs/loaders/micro-agent.js +7 -10
  38. package/dist/esm/common/constants/env.cdn.js +1 -1
  39. package/dist/esm/common/constants/env.npm.js +1 -1
  40. package/dist/esm/common/constants/runtime.js +0 -1
  41. package/dist/esm/common/harvest/harvest-scheduler.js +3 -4
  42. package/dist/esm/common/unload/eol.js +2 -5
  43. package/dist/esm/common/util/submit-data.js +2 -2
  44. package/dist/esm/features/ajax/aggregate/index.js +8 -17
  45. package/dist/esm/features/ajax/instrument/index.js +8 -10
  46. package/dist/esm/features/generic_events/aggregate/index.js +11 -18
  47. package/dist/esm/features/generic_events/instrument/index.js +5 -8
  48. package/dist/esm/features/jserrors/aggregate/index.js +36 -21
  49. package/dist/esm/features/jserrors/aggregate/internal-errors.js +36 -0
  50. package/dist/esm/features/jserrors/instrument/index.js +3 -3
  51. package/dist/esm/features/logging/aggregate/index.js +21 -20
  52. package/dist/esm/features/logging/instrument/index.js +3 -3
  53. package/dist/esm/features/metrics/aggregate/index.js +8 -11
  54. package/dist/esm/features/metrics/instrument/index.js +3 -3
  55. package/dist/esm/features/page_view_event/aggregate/index.js +16 -30
  56. package/dist/esm/features/page_view_event/instrument/index.js +3 -3
  57. package/dist/esm/features/page_view_timing/aggregate/index.js +6 -23
  58. package/dist/esm/features/page_view_timing/instrument/index.js +3 -3
  59. package/dist/esm/features/session_replay/aggregate/index.js +13 -27
  60. package/dist/esm/features/session_replay/instrument/index.js +7 -5
  61. package/dist/esm/features/session_trace/aggregate/index.js +27 -33
  62. package/dist/esm/features/session_trace/instrument/index.js +4 -5
  63. package/dist/esm/features/soft_navigations/aggregate/index.js +6 -11
  64. package/dist/esm/features/soft_navigations/instrument/index.js +3 -3
  65. package/dist/esm/features/spa/aggregate/index.js +17 -28
  66. package/dist/esm/features/spa/instrument/index.js +8 -4
  67. package/dist/esm/features/utils/aggregate-base.js +13 -14
  68. package/dist/esm/features/utils/feature-base.js +5 -3
  69. package/dist/esm/features/utils/instrument-base.js +18 -10
  70. package/dist/esm/loaders/agent-base.js +1 -0
  71. package/dist/esm/loaders/agent.js +1 -5
  72. package/dist/esm/loaders/micro-agent.js +7 -10
  73. package/dist/types/common/constants/runtime.d.ts +0 -1
  74. package/dist/types/common/constants/runtime.d.ts.map +1 -1
  75. package/dist/types/common/harvest/harvest-scheduler.d.ts.map +1 -1
  76. package/dist/types/common/unload/eol.d.ts +1 -1
  77. package/dist/types/common/unload/eol.d.ts.map +1 -1
  78. package/dist/types/features/ajax/aggregate/index.d.ts +1 -1
  79. package/dist/types/features/ajax/aggregate/index.d.ts.map +1 -1
  80. package/dist/types/features/ajax/instrument/index.d.ts +1 -1
  81. package/dist/types/features/ajax/instrument/index.d.ts.map +1 -1
  82. package/dist/types/features/generic_events/aggregate/index.d.ts +1 -2
  83. package/dist/types/features/generic_events/aggregate/index.d.ts.map +1 -1
  84. package/dist/types/features/generic_events/instrument/index.d.ts +1 -1
  85. package/dist/types/features/generic_events/instrument/index.d.ts.map +1 -1
  86. package/dist/types/features/jserrors/aggregate/index.d.ts +11 -2
  87. package/dist/types/features/jserrors/aggregate/index.d.ts.map +1 -1
  88. package/dist/types/features/jserrors/aggregate/internal-errors.d.ts +7 -0
  89. package/dist/types/features/jserrors/aggregate/internal-errors.d.ts.map +1 -0
  90. package/dist/types/features/jserrors/instrument/index.d.ts +1 -1
  91. package/dist/types/features/jserrors/instrument/index.d.ts.map +1 -1
  92. package/dist/types/features/logging/aggregate/index.d.ts +4 -2
  93. package/dist/types/features/logging/aggregate/index.d.ts.map +1 -1
  94. package/dist/types/features/logging/instrument/index.d.ts +1 -1
  95. package/dist/types/features/logging/instrument/index.d.ts.map +1 -1
  96. package/dist/types/features/metrics/aggregate/index.d.ts +1 -1
  97. package/dist/types/features/metrics/aggregate/index.d.ts.map +1 -1
  98. package/dist/types/features/metrics/instrument/index.d.ts +1 -1
  99. package/dist/types/features/metrics/instrument/index.d.ts.map +1 -1
  100. package/dist/types/features/page_action/instrument/index.d.ts +1 -0
  101. package/dist/types/features/page_action/instrument/index.d.ts.map +1 -1
  102. package/dist/types/features/page_view_event/aggregate/index.d.ts +1 -1
  103. package/dist/types/features/page_view_event/aggregate/index.d.ts.map +1 -1
  104. package/dist/types/features/page_view_event/instrument/index.d.ts +1 -1
  105. package/dist/types/features/page_view_event/instrument/index.d.ts.map +1 -1
  106. package/dist/types/features/page_view_timing/aggregate/index.d.ts +1 -5
  107. package/dist/types/features/page_view_timing/aggregate/index.d.ts.map +1 -1
  108. package/dist/types/features/page_view_timing/instrument/index.d.ts +1 -1
  109. package/dist/types/features/page_view_timing/instrument/index.d.ts.map +1 -1
  110. package/dist/types/features/session_replay/aggregate/index.d.ts +0 -1
  111. package/dist/types/features/session_replay/aggregate/index.d.ts.map +1 -1
  112. package/dist/types/features/session_replay/instrument/index.d.ts +1 -1
  113. package/dist/types/features/session_replay/instrument/index.d.ts.map +1 -1
  114. package/dist/types/features/session_trace/aggregate/index.d.ts +1 -3
  115. package/dist/types/features/session_trace/aggregate/index.d.ts.map +1 -1
  116. package/dist/types/features/session_trace/instrument/index.d.ts +1 -1
  117. package/dist/types/features/session_trace/instrument/index.d.ts.map +1 -1
  118. package/dist/types/features/soft_navigations/aggregate/index.d.ts +1 -1
  119. package/dist/types/features/soft_navigations/aggregate/index.d.ts.map +1 -1
  120. package/dist/types/features/soft_navigations/instrument/index.d.ts +1 -1
  121. package/dist/types/features/soft_navigations/instrument/index.d.ts.map +1 -1
  122. package/dist/types/features/spa/aggregate/index.d.ts +1 -1
  123. package/dist/types/features/spa/aggregate/index.d.ts.map +1 -1
  124. package/dist/types/features/spa/instrument/index.d.ts +4 -1
  125. package/dist/types/features/spa/instrument/index.d.ts.map +1 -1
  126. package/dist/types/features/utils/aggregate-base.d.ts +2 -2
  127. package/dist/types/features/utils/aggregate-base.d.ts.map +1 -1
  128. package/dist/types/features/utils/feature-base.d.ts +2 -3
  129. package/dist/types/features/utils/feature-base.d.ts.map +1 -1
  130. package/dist/types/features/utils/instrument-base.d.ts +3 -3
  131. package/dist/types/features/utils/instrument-base.d.ts.map +1 -1
  132. package/dist/types/loaders/agent-base.d.ts +1 -0
  133. package/dist/types/loaders/agent-base.d.ts.map +1 -1
  134. package/dist/types/loaders/agent.d.ts +0 -2
  135. package/dist/types/loaders/agent.d.ts.map +1 -1
  136. package/dist/types/loaders/micro-agent.d.ts +0 -2
  137. package/dist/types/loaders/micro-agent.d.ts.map +1 -1
  138. package/package.json +1 -1
  139. package/src/common/constants/__mocks__/runtime.js +0 -1
  140. package/src/common/constants/runtime.js +0 -2
  141. package/src/common/harvest/harvest-scheduler.js +3 -4
  142. package/src/common/unload/eol.js +2 -5
  143. package/src/common/util/submit-data.js +2 -2
  144. package/src/features/ajax/aggregate/index.js +8 -18
  145. package/src/features/ajax/instrument/index.js +8 -10
  146. package/src/features/generic_events/aggregate/index.js +11 -20
  147. package/src/features/generic_events/instrument/index.js +7 -10
  148. package/src/features/jserrors/aggregate/index.js +34 -21
  149. package/src/features/jserrors/aggregate/internal-errors.js +33 -0
  150. package/src/features/jserrors/instrument/index.js +3 -4
  151. package/src/features/logging/aggregate/index.js +20 -21
  152. package/src/features/logging/instrument/index.js +3 -3
  153. package/src/features/metrics/aggregate/index.js +8 -11
  154. package/src/features/metrics/instrument/index.js +3 -3
  155. package/src/features/page_view_event/aggregate/index.js +16 -22
  156. package/src/features/page_view_event/instrument/index.js +3 -3
  157. package/src/features/page_view_timing/aggregate/index.js +6 -23
  158. package/src/features/page_view_timing/instrument/index.js +3 -3
  159. package/src/features/session_replay/aggregate/index.js +13 -21
  160. package/src/features/session_replay/instrument/index.js +7 -5
  161. package/src/features/session_trace/aggregate/index.js +28 -34
  162. package/src/features/session_trace/instrument/index.js +4 -5
  163. package/src/features/soft_navigations/aggregate/index.js +6 -8
  164. package/src/features/soft_navigations/instrument/index.js +3 -3
  165. package/src/features/spa/aggregate/index.js +17 -26
  166. package/src/features/spa/instrument/index.js +7 -4
  167. package/src/features/utils/__mocks__/feature-base.js +1 -2
  168. package/src/features/utils/aggregate-base.js +13 -14
  169. package/src/features/utils/feature-base.js +6 -3
  170. package/src/features/utils/instrument-base.js +16 -10
  171. package/src/loaders/agent-base.js +1 -0
  172. package/src/loaders/agent.js +1 -3
  173. package/src/loaders/micro-agent.js +9 -10
@@ -3,7 +3,6 @@ import { Instrument as PVE } from '../features/page_view_event/instrument';
3
3
  import { getEnabledFeatures } from './features/enabled-features';
4
4
  import { configure } from './configure/configure';
5
5
  // core files
6
- import { Aggregator } from '../common/aggregate/aggregator';
7
6
  import { setNREUMInitializedAgent } from '../common/window/nreum';
8
7
  import { getInfo } from '../common/config/info';
9
8
  import { getConfiguration, getConfigurationValue } from '../common/config/init';
@@ -11,9 +10,8 @@ import { getLoaderConfig } from '../common/config/loader-config';
11
10
  import { getRuntime } from '../common/config/runtime';
12
11
  import { FEATURE_NAMES } from './features/features';
13
12
  import { warn } from '../common/util/console';
14
- import { onWindowLoad } from '../common/window/load';
15
13
  import { AgentBase } from './agent-base';
16
- const nonAutoFeatures = [FEATURE_NAMES.jserrors, FEATURE_NAMES.genericEvents, FEATURE_NAMES.metrics];
14
+ const nonAutoFeatures = [FEATURE_NAMES.jserrors, FEATURE_NAMES.genericEvents, FEATURE_NAMES.metrics, FEATURE_NAMES.logging];
17
15
 
18
16
  /**
19
17
  * A minimal agent class designed to only respond to manual user input. As such, this class does not
@@ -27,9 +25,6 @@ export class MicroAgent extends AgentBase {
27
25
  */
28
26
  constructor(options, agentIdentifier) {
29
27
  super(agentIdentifier);
30
- this.sharedAggregator = new Aggregator({
31
- agentIdentifier: this.agentIdentifier
32
- });
33
28
  this.features = {};
34
29
  setNREUMInitializedAgent(this.agentIdentifier, this);
35
30
  configure(this, {
@@ -71,12 +66,14 @@ export class MicroAgent extends AgentBase {
71
66
  const enabledFeatures = getEnabledFeatures(this.agentIdentifier);
72
67
  try {
73
68
  // a biproduct of doing this is that the "session manager" is automatically handled through importing this feature
74
- this.features.page_view_event = new PVE(this.agentIdentifier, this.sharedAggregator);
69
+ this.features.page_view_event = new PVE(this);
75
70
  } catch (err) {
76
71
  warn(24, err);
77
72
  }
78
- onWindowLoad(() => {
79
- // these features do not import an "instrument" file, meaning they are only hooked up to the API.
73
+ this.features.page_view_event.onAggregateImported.then(() => {
74
+ /* The following features do not import an "instrument" file, meaning they are only hooked up to the API.
75
+ Since the missing instrument-base class handles drain-gating (racing behavior) and PVE handles some setup, these are chained until after PVE has finished initializing
76
+ so as to avoid the race condition of things like session and sharedAggregator not being ready by features that uses them right away. */
80
77
  nonAutoFeatures.forEach(f => {
81
78
  if (enabledFeatures[f] && features.includes(f)) {
82
79
  import(/* webpackChunkName: "lazy-feature-loader" */'../features/utils/lazy-feature-loader').then(({
@@ -86,7 +83,7 @@ export class MicroAgent extends AgentBase {
86
83
  }).then(({
87
84
  Aggregate
88
85
  }) => {
89
- this.features[f] = new Aggregate(this.agentIdentifier, this.sharedAggregator);
86
+ this.features[f] = new Aggregate(this);
90
87
  }).catch(err => warn(25, err));
91
88
  }
92
89
  });
@@ -20,7 +20,6 @@ export const isiOS: boolean;
20
20
  */
21
21
  export const iOSBelow16: boolean;
22
22
  export const ffVersion: number;
23
- export const supportsSendBeacon: boolean;
24
23
  /**
25
24
  * Represents the absolute timestamp in milliseconds that the page was loaded
26
25
  * according to the browser's local clock.
@@ -1 +1 @@
1
- {"version":3,"file":"runtime.d.ts","sourceRoot":"","sources":["../../../../src/common/constants/runtime.js"],"names":[],"mappings":"AASA;;GAEG;AACH,qCAEqB;AAErB;;GAEG;AACH,oCAeK;AAEL,oDAUI;AAEJ,oDAA6F;AAE7F,sCAA2F;AAE3F,qCAAyD;AAEzD,4BAA8E;AAE9E;;;;;;GAMG;AACH,iCAAwE;AAExE,+BAOI;AAEJ,yCAAqE;AAErE;;;;GAIG;AACH,yBAFU,MAAM,CAE4B"}
1
+ {"version":3,"file":"runtime.d.ts","sourceRoot":"","sources":["../../../../src/common/constants/runtime.js"],"names":[],"mappings":"AASA;;GAEG;AACH,qCAEqB;AAErB;;GAEG;AACH,oCAeK;AAEL,oDAUI;AAEJ,oDAA6F;AAE7F,sCAA2F;AAE3F,qCAAyD;AAEzD,4BAA8E;AAE9E;;;;;;GAMG;AACH,iCAAwE;AAExE,+BAOI;AAEJ;;;;GAIG;AACH,yBAFU,MAAM,CAE4B"}
@@ -1 +1 @@
1
- {"version":3,"file":"harvest-scheduler.d.ts","sourceRoot":"","sources":["../../../../src/common/harvest/harvest-scheduler.js"],"names":[],"mappings":"AAWA;;GAEG;AACH;IACE;;;;;;;;;;SAUK;IACL,sBATa,MAAM,QAEd;QAAuB,UAAU;QACV,UAAU;QACZ,UAAU,EAAvB,MAAM;QACQ,GAAG,EAAjB,OAAO;QACM,SAAS,EAAtB,MAAM;KACd,UAAQ,GAAC,EAmBb;IAfC,iBAAwB;IACxB;;;oBARW,MAAM;aACN,OAAO;mBACP,MAAM;MAMK;IACtB,iBAAoB;IACpB,mBAAyB;IACzB,iBAAoB;IACpB,oBAAuB;IACvB,iBAA8C;IAWhD;;;OAGG;IACH,eAKC;IAED,mDAIC;IAHC,cAAwB;IAK1B,uCAMC;IAED,6CAUC;IAED,yCAgEC;IAED,gDAiBC;CACF;8BAhK6B,2BAA2B;wBACjC,WAAW"}
1
+ {"version":3,"file":"harvest-scheduler.d.ts","sourceRoot":"","sources":["../../../../src/common/harvest/harvest-scheduler.js"],"names":[],"mappings":"AAWA;;GAEG;AACH;IACE;;;;;;;;;;SAUK;IACL,sBATa,MAAM,QAEd;QAAuB,UAAU;QACV,UAAU;QACZ,UAAU,EAAvB,MAAM;QACQ,GAAG,EAAjB,OAAO;QACM,SAAS,EAAtB,MAAM;KACd,UAAQ,GAAC,EAoBb;IAhBC,iBAAwB;IACxB;;;oBARW,MAAM;aACN,OAAO;mBACP,MAAM;MAMK;IACtB,iBAAoB;IACpB,mBAAyB;IACzB,iBAAoB;IACpB,oBAAuB;IACvB,iBAA8C;IAYhD;;;OAGG;IACH,eAGC;IAED,mDAIC;IAHC,cAAwB;IAK1B,uCAMC;IAED,6CAUC;IAED,yCAgEC;IAED,gDAiBC;CACF;8BA/J6B,2BAA2B;wBACjC,WAAW"}
@@ -3,5 +3,5 @@
3
3
  * This is used, for example, to submit a final harvest and send all remaining data on best-effort.
4
4
  * @param {function} cb - func to run before or during the last reliable event or time of an env's life span
5
5
  */
6
- export function subscribeToEOL(cb: Function): void;
6
+ export function subscribeToEOL(cb: Function, capturePhase: any): void;
7
7
  //# sourceMappingURL=eol.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"eol.d.ts","sourceRoot":"","sources":["../../../../src/common/unload/eol.js"],"names":[],"mappings":"AAoBA;;;;GAIG;AACH,mDASC"}
1
+ {"version":3,"file":"eol.d.ts","sourceRoot":"","sources":["../../../../src/common/unload/eol.js"],"names":[],"mappings":"AAmBA;;;;GAIG;AACH,sEAOC"}
@@ -1,6 +1,6 @@
1
1
  export class Aggregate extends AggregateBase {
2
2
  static featureName: string;
3
- constructor(agentIdentifier: any, aggregator: any);
3
+ constructor(agentRef: any);
4
4
  ajaxEvents: EventBuffer;
5
5
  spaAjaxEvents: {};
6
6
  storeXhr(params: any, metrics: any, startTime: any, endTime: any, type: any, ctx: any): void;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/features/ajax/aggregate/index.js"],"names":[],"mappings":"AAqBA;IACE,2BAAiC;IAKjC,mDAuCC;IA7BC,wBAAmC;IACnC,kBAAuB;IA8BzB,6FAyEC;IAED;;;;eAaC;IAED,2CAGC;;CAgCF;8BAlL6B,4BAA4B;4BAI9B,0BAA0B"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/features/ajax/aggregate/index.js"],"names":[],"mappings":"AAkBA;IACE,2BAAiC;IAEjC,2BAmCC;IA7BC,wBAAmC;IACnC,kBAAuB;IA8BzB,6FAyEC;IAED;;;;eAaC;IAED,2CAGC;;CAgCF;8BA3K6B,4BAA4B;4BAI9B,0BAA0B"}
@@ -1,6 +1,6 @@
1
1
  export class Instrument extends InstrumentBase {
2
2
  static featureName: string;
3
- constructor(agentIdentifier: any, aggregator: any, auto?: boolean);
3
+ constructor(agentRef: any, auto?: boolean);
4
4
  dt: DT;
5
5
  handler: (type: any, args: any, ctx: any, group: any) => void;
6
6
  }
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/features/ajax/instrument/index.js"],"names":[],"mappings":"AA6BA;IACE,2BAAiC;IACjC,mEAkCC;IA/BC,OAAiC;IAEjC,8DAAkF;CA8BrF;AAmWD,qCAA8B;+BArZC,6BAA6B;mBAFzC,uBAAuB"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/features/ajax/instrument/index.js"],"names":[],"mappings":"AA4BA;IACE,2BAAiC;IACjC,2CAkCC;IA/BC,OAA0C;IAE1C,8DAAkF;CA8BrF;AAkWD,qCAA8B;+BApZC,6BAA6B;mBAFzC,uBAAuB"}
@@ -1,6 +1,6 @@
1
1
  export class Aggregate extends AggregateBase {
2
2
  static featureName: string;
3
- constructor(agentIdentifier: any, aggregator: any);
3
+ constructor(agentRef: any);
4
4
  eventsPerHarvest: number;
5
5
  harvestTimeSeconds: any;
6
6
  referrerUrl: string | undefined;
@@ -30,7 +30,6 @@ export class Aggregate extends AggregateBase {
30
30
  } | undefined;
31
31
  onHarvestFinished(result: any): void;
32
32
  checkEventLimits(): void;
33
- #private;
34
33
  }
35
34
  import { AggregateBase } from '../../utils/aggregate-base';
36
35
  import { EventBuffer } from '../../utils/event-buffer';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/features/generic_events/aggregate/index.js"],"names":[],"mappings":"AAwBA;IAEE,2BAAiC;IACjC,mDA0FC;IAtFC,yBAA4B;IAC5B,wBAAqE;IAErE,gCAAkG;IAElG,oBAA+B;IA+B3B,4CAAuD;IAEvD,mDAyBC;IAcH,mCAAuH;IAY3H;;;;;;;;;;;OAWG;IACH,eAHW,MAAM,YAAC,QAmCjB;IAED;;;;;;kBAkBC;IAED,qCAGC;IAED,yBAMC;;CACF;8BA1L6B,4BAA4B;4BAM9B,0BAA0B;sCAGhB,wCAAwC;iCAhB7C,2CAA2C"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/features/generic_events/aggregate/index.js"],"names":[],"mappings":"AAoBA;IACE,2BAAiC;IACjC,2BAsFC;IAnFC,yBAA4B;IAC5B,wBAAyE;IAEzE,gCAAkG;IAClG,oBAA+B;IA6B3B,4CAAuD;IAEvD,mDAyBC;IAcH,mCAAuH;IAY3H;;;;;;;;;;;OAWG;IACH,eAHW,MAAM,YAAC,QAmCjB;IAED;;;;;;kBAkBC;IAED,qCAGC;IAED,yBAMC;CACF;8BApL6B,4BAA4B;4BAK9B,0BAA0B;sCAGhB,wCAAwC;iCAZ7C,2CAA2C"}
@@ -1,6 +1,6 @@
1
1
  export class Instrument extends InstrumentBase {
2
2
  static featureName: string;
3
- constructor(agentIdentifier: any, aggregator: any, auto?: boolean);
3
+ constructor(agentRef: any, auto?: boolean);
4
4
  }
5
5
  export const GenericEvents: typeof Instrument;
6
6
  import { InstrumentBase } from '../../utils/instrument-base';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/features/generic_events/instrument/index.js"],"names":[],"mappings":"AAYA;IACE,2BAAiC;IACjC,mEAsBC;CACF;AAED,8CAAuC;+BA9BR,6BAA6B"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/features/generic_events/instrument/index.js"],"names":[],"mappings":"AAUA;IACE,2BAAiC;IACjC,2CAqBC;CACF;AAED,8CAAuC;+BA7BR,6BAA6B"}
@@ -3,7 +3,7 @@
3
3
  */
4
4
  export class Aggregate extends AggregateBase {
5
5
  static featureName: string;
6
- constructor(agentIdentifier: any, aggregator: any);
6
+ constructor(agentRef: any);
7
7
  stackReported: {};
8
8
  observedAt: {};
9
9
  pageviewReported: {};
@@ -25,7 +25,16 @@ export class Aggregate extends AggregateBase {
25
25
  * @returns {string} A canonical stack string built from the URLs and function names in the given `stackInfo` object.
26
26
  */
27
27
  buildCanonicalStackString(stackInfo: StackInfo): string;
28
- storeError(err: any, time: any, internal: any, customAttributes: any, hasReplay: any): void;
28
+ /**
29
+ *
30
+ * @param {Error|UncaughtError} err The error instance to be processed
31
+ * @param {number} time the relative ms (to origin) timestamp of occurence
32
+ * @param {boolean=} internal if the error was "caught" and deemed "internal" before reporting to the jserrors feature
33
+ * @param {object=} customAttributes any custom attributes to be included in the error payload
34
+ * @param {boolean=} hasReplay a flag indicating if the error occurred during a replay session
35
+ * @returns
36
+ */
37
+ storeError(err: Error | UncaughtError, time: number, internal?: boolean | undefined, customAttributes?: object | undefined, hasReplay?: boolean | undefined): void;
29
38
  onInteractionDone(interaction: any, wasSaved: any): void;
30
39
  onSoftNavNotification(interactionId: any, wasFinished: any, softNavAttrs: any): void;
31
40
  #private;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/features/jserrors/aggregate/index.js"],"names":[],"mappings":"AA2BA;;GAEG;AAEH;IACE,2BAAiC;IACjC,mDAgCC;IA7BC,kBAAuB;IACvB,eAAoB;IACpB,qBAA0B;IAC1B,2BAAgC;IAChC,uCAA4B;IAC5B,qBAAwB;IA0B1B;;;MA2BC;IAED,qCAWC;IAED,8BAEC;IAED,oEAMC;IAED;;;;;;OAMG;IACH,qCAHW,SAAS,GACP,MAAM,CAgBlB;IAED,4FA4FC;IA4BD,yDA6BC;IAED,qFAOC;;CAwBF;wBA1SY,OAAO,0BAA0B,EAAE,SAAS;8BAP3B,4BAA4B"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/features/jserrors/aggregate/index.js"],"names":[],"mappings":"AAyBA;;GAEG;AAEH;IACE,2BAAiC;IACjC,2BAgCC;IA7BC,kBAAuB;IACvB,eAAoB;IACpB,qBAA0B;IAC1B,2BAAgC;IAChC,uCAA4B;IAC5B,qBAAwB;IA0B1B;;;MA2BC;IAED,qCAWC;IAED,8BAEC;IAED,oEAMC;IAED;;;;;;OAMG;IACH,qCAHW,SAAS,GACP,MAAM,CAgBlB;IAED;;;;;;;;OAQG;IACH,gBAPW,KAAK,GAAC,aAAa,QACnB,MAAM,aACN,OAAO,YAAC,qBACR,MAAM,YAAC,cACP,OAAO,YAAC,QAqGlB;IA4BD,yDA6BC;IAED,qFAOC;;CAwBF;wBAzTY,OAAO,0BAA0B,EAAE,SAAS;8BAR3B,4BAA4B"}
@@ -0,0 +1,7 @@
1
+ /**
2
+ * This function is responsible for determining if an error should be swallowed or not.
3
+ * @param {Object} stackInfo - The error stack information.
4
+ * @returns {boolean} - Whether the error should be swallowed or not.
5
+ */
6
+ export function evaluateInternalError(stackInfo: Object, internal: any): boolean;
7
+ //# sourceMappingURL=internal-errors.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"internal-errors.d.ts","sourceRoot":"","sources":["../../../../../src/features/jserrors/aggregate/internal-errors.js"],"names":[],"mappings":"AAEA;;;;GAIG;AACH,iDAHW,MAAM,kBACJ,OAAO,CA2BnB"}
@@ -1,6 +1,6 @@
1
1
  export class Instrument extends InstrumentBase {
2
2
  static featureName: string;
3
- constructor(agentIdentifier: any, aggregator: any, auto?: boolean);
3
+ constructor(agentRef: any, auto?: boolean);
4
4
  removeOnAbort: AbortController | undefined;
5
5
  abortHandler: () => void;
6
6
  #private;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/features/jserrors/instrument/index.js"],"names":[],"mappings":"AAcA;IACE,2BAAiC;IAIjC,mEA6BC;IAxBG,2CAA0C;IAsB5C,yBAA+B;;CASlC;AAED,yCAAkC;+BAnDH,6BAA6B"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/features/jserrors/instrument/index.js"],"names":[],"mappings":"AAcA;IACE,2BAAiC;IAGjC,2CA6BC;IAxBG,2CAA0C;IAsB5C,yBAA+B;;CASlC;AAED,yCAAkC;+BAlDH,6BAA6B"}
@@ -1,6 +1,6 @@
1
1
  export class Aggregate extends AggregateBase {
2
2
  static featureName: string;
3
- constructor(agentIdentifier: any, aggregator: any);
3
+ constructor(agentRef: any);
4
4
  /** held logs before sending */
5
5
  bufferedLogs: EventBuffer;
6
6
  harvestTimeSeconds: any;
@@ -14,6 +14,9 @@ export class Aggregate extends AggregateBase {
14
14
  common: {
15
15
  /** Attributes in the `common` section are added to `all` logs generated in the payload */
16
16
  attributes: {
17
+ 'instrumentation.provider': string;
18
+ 'instrumentation.version': any;
19
+ 'instrumentation.name': any;
17
20
  'entity.guid': any;
18
21
  session: any;
19
22
  hasReplay: boolean;
@@ -29,7 +32,6 @@ export class Aggregate extends AggregateBase {
29
32
  }[];
30
33
  } | undefined;
31
34
  onHarvestFinished(result: any): void;
32
- #private;
33
35
  }
34
36
  import { AggregateBase } from '../../utils/aggregate-base';
35
37
  import { EventBuffer } from '../../utils/event-buffer';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/features/logging/aggregate/index.js"],"names":[],"mappings":"AAiBA;IACE,2BAAiC;IAGjC,mDAwBC;IArBC,+BAA+B;IAC/B,0BAAqC;IAKrC,wBAAmG;IAGjG,4BAKQ;IASZ,+EA6CC;IAED;;;;;;gBASQ,0FAA0F;;;;;;;;;;;;YAY5F,0DAA0D;;;kBAY/D;IAED,qCAGC;;CACF;8BA5H6B,4BAA4B;4BAM9B,0BAA0B;iCAVrB,2CAA2C"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/features/logging/aggregate/index.js"],"names":[],"mappings":"AAcA;IACE,2BAAiC;IACjC,2BAqBC;IAlBC,+BAA+B;IAC/B,0BAAqC;IAErC,wBAAkE;IAGhE,4BAKQ;IASZ,+EA6CC;IAED;;;;;;gBAeQ,0FAA0F;;;;;;;;;;;;;;;YAa5F,0DAA0D;;;kBAY/D;IAED,qCAGC;CACF;8BA9H6B,4BAA4B;4BAM9B,0BAA0B;iCAVrB,2CAA2C"}
@@ -1,6 +1,6 @@
1
1
  export class Instrument extends InstrumentBase {
2
2
  static featureName: string;
3
- constructor(agentIdentifier: any, aggregator: any, auto?: boolean);
3
+ constructor(agentRef: any, auto?: boolean);
4
4
  }
5
5
  export const Logging: typeof Instrument;
6
6
  import { InstrumentBase } from '../../utils/instrument-base';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/features/logging/instrument/index.js"],"names":[],"mappings":"AAIA;IACE,2BAAiC;IACjC,mEAUC;CACF;AAED,wCAAiC;+BAnBF,6BAA6B"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/features/logging/instrument/index.js"],"names":[],"mappings":"AAIA;IACE,2BAAiC;IACjC,2CAUC;CACF;AAED,wCAAiC;+BAnBF,6BAA6B"}
@@ -1,6 +1,6 @@
1
1
  export class Aggregate extends AggregateBase {
2
2
  static featureName: string;
3
- constructor(agentIdentifier: any, aggregator: any);
3
+ constructor(agentRef: any);
4
4
  storeSupportabilityMetrics(name: any, value: any): void;
5
5
  storeEventMetrics(name: any, metrics: any): void;
6
6
  singleChecks(): void;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/features/metrics/aggregate/index.js"],"names":[],"mappings":"AAgBA;IACE,2BAAiC;IACjC,mDAsBC;IAED,wDAKC;IAED,iDAKC;IAED,qBAqEC;IAED,0BAOC;IAED,eAkCC;IA/BG,mCAAyB;CAgC9B;8BAjK6B,4BAA4B"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/features/metrics/aggregate/index.js"],"names":[],"mappings":"AAaA;IACE,2BAAiC;IACjC,2BAsBC;IAED,wDAKC;IAED,iDAKC;IAED,qBAqEC;IAED,0BAOC;IAED,eAkCC;IA/BG,mCAAyB;CAgC9B;8BAhK6B,4BAA4B"}
@@ -1,6 +1,6 @@
1
1
  export class Instrument extends InstrumentBase {
2
2
  static featureName: string;
3
- constructor(agentIdentifier: any, aggregator: any, auto?: boolean);
3
+ constructor(agentRef: any, auto?: boolean);
4
4
  }
5
5
  export const Metrics: typeof Instrument;
6
6
  import { InstrumentBase } from '../../utils/instrument-base';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/features/metrics/instrument/index.js"],"names":[],"mappings":"AAKA;IACE,2BAAiC;IACjC,mEAWC;CACF;AAED,wCAAiC;+BAnBF,6BAA6B"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/features/metrics/instrument/index.js"],"names":[],"mappings":"AAKA;IACE,2BAAiC;IACjC,2CAWC;CACF;AAED,wCAAiC;+BAnBF,6BAA6B"}
@@ -2,6 +2,7 @@
2
2
  * @deprecated This feature has been replaced by Generic Events. Use/Import `GenericEvents` instead. This wrapper will be removed in a future release
3
3
  */
4
4
  export class Instrument extends GenericEvents {
5
+ constructor(agentIdentifier: any, aggregator: any, auto?: boolean);
5
6
  }
6
7
  /**
7
8
  * @deprecated This feature has been replaced by Generic Events. Use/Import `GenericEvents` instead. This wrapper will be removed in a future release
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/features/page_action/instrument/index.js"],"names":[],"mappings":"AAOA;;GAEG;AACH;CAIC;AAED;;GAEG;AACH,2CAAoC;8BAdN,sBAAsB"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/features/page_action/instrument/index.js"],"names":[],"mappings":"AAOA;;GAEG;AACH;IACE,mEAEC;CACF;AAED;;GAEG;AACH,2CAAoC;8BAdN,sBAAsB"}
@@ -1,6 +1,6 @@
1
1
  export class Aggregate extends AggregateBase {
2
2
  static featureName: string;
3
- constructor(agentIdentifier: any, aggregator: any);
3
+ constructor(agentRef: any);
4
4
  timeToFirstByte: number;
5
5
  firstByteToWindowLoad: number;
6
6
  firstByteToDomContent: number;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/features/page_view_event/aggregate/index.js"],"names":[],"mappings":"AAkBA;IACE,2BAA2C;IAC3C,mDA0BC;IAvBC,wBAAwB;IACxB,8BAA8B;IAC9B,8BAA8B;IAC9B,uBAAsD;IAsBxD,gBAiGC;CACF;8BAxI6B,4BAA4B;2BAK/B,oCAAoC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/features/page_view_event/aggregate/index.js"],"names":[],"mappings":"AAiBA;IACE,2BAA2C;IAC3C,2BA0BC;IAvBC,wBAAwB;IACxB,8BAA8B;IAC9B,8BAA8B;IAC9B,uBAA0D;IAsB5D,gBA4FC;CACF;8BAnI6B,4BAA4B;2BAK/B,oCAAoC"}
@@ -1,6 +1,6 @@
1
1
  export class Instrument extends InstrumentBase {
2
2
  static featureName: string;
3
- constructor(agentIdentifier: any, aggregator: any, auto?: boolean);
3
+ constructor(agentRef: any, auto?: boolean);
4
4
  }
5
5
  export const PageViewEvent: typeof Instrument;
6
6
  import { InstrumentBase } from '../../utils/instrument-base';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/features/page_view_event/instrument/index.js"],"names":[],"mappings":"AAGA;IACE,2BAA2C;IAC3C,mEAIC;CACF;AAED,8CAAuC;+BAZR,6BAA6B"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/features/page_view_event/instrument/index.js"],"names":[],"mappings":"AAGA;IACE,2BAA2C;IAC3C,2CAIC;CACF;AAED,8CAAuC;+BAZR,6BAA6B"}
@@ -1,6 +1,6 @@
1
1
  export class Aggregate extends AggregateBase {
2
2
  static featureName: string;
3
- constructor(agentIdentifier: any, aggregator: any);
3
+ constructor(agentRef: any);
4
4
  timings: EventBuffer;
5
5
  curSessEndRecorded: boolean;
6
6
  /**
@@ -8,10 +8,6 @@ export class Aggregate extends AggregateBase {
8
8
  * @param {number} timestamp
9
9
  */
10
10
  endCurrentSession(timestamp: number): void;
11
- /**
12
- * Add the time of _window pagehide event_ firing to the next PVT harvest == NRDB windowUnload attr.
13
- */
14
- recordPageUnload(timestamp: any): void;
15
11
  addTiming(name: any, value: any, attrs: any): void;
16
12
  onHarvestFinished(result: any): void;
17
13
  appendGlobalCustomAttributes(timing: any): void;
@@ -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,mDAuCC;IApCC,qBAAgC;IAChC,4BAA+B;IAqCjC;;;OAGG;IACH,6BAFW,MAAM,QAOhB;IAED;;OAEG;IACH,uCAUC;IAED,mDAuBC;IAED,qCAGC;IAED,gDAWC;IAGD;;;;kBAUC;IAGD,8BAuBC;;CACF;8BAvK6B,4BAA4B;4BAU9B,0BAA0B"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/features/page_view_timing/aggregate/index.js"],"names":[],"mappings":"AAuBA;IACE,2BAAiC;IAMjC,2BAwCC;IArCC,qBAAgC;IAChC,4BAA+B;IAsCjC;;;OAGG;IACH,6BAFW,MAAM,QAOhB;IAED,mDAuBC;IAED,qCAGC;IAED,gDAUC;IAGD;;;;kBAUC;IAGD,8BAuBC;;CACF;8BAxJ6B,4BAA4B;4BAU9B,0BAA0B"}
@@ -1,6 +1,6 @@
1
1
  export class Instrument extends InstrumentBase {
2
2
  static featureName: string;
3
- constructor(agentIdentifier: any, aggregator: any, auto?: boolean);
3
+ constructor(agentRef: any, auto?: boolean);
4
4
  }
5
5
  export const PageViewTiming: typeof Instrument;
6
6
  import { InstrumentBase } from '../../utils/instrument-base';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/features/page_view_timing/instrument/index.js"],"names":[],"mappings":"AAYA;IACE,2BAAiC;IACjC,mEAWC;CACF;AAED,+CAAwC;+BArBT,6BAA6B"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/features/page_view_timing/instrument/index.js"],"names":[],"mappings":"AAYA;IACE,2BAAiC;IACjC,2CAWC;CACF;AAED,+CAAwC;+BArBT,6BAA6B"}
@@ -1,6 +1,5 @@
1
1
  export class Aggregate extends AggregateBase {
2
2
  static featureName: string;
3
- constructor(agentIdentifier: any, aggregator: any, args: any);
4
3
  mode: number;
5
4
  /** The interval to harvest at. This gets overridden if the size of the payload exceeds certain thresholds */
6
5
  harvestTimeSeconds: any;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/features/session_replay/aggregate/index.js"],"names":[],"mappings":"AAgCA;IACE,2BAAiC;IAIjC,8DAsGC;IAzGD,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;IA4CV,0BAMC;IAED,qBAWC;IAED;;;;;;;OAOG;IACH,gDAHW,OAAO,GACL,IAAI,CA8DhB;IAED,2BASC;IAED;;;;;;;;;;;;oBAiDC;IAED,sCAIC;IAED;;;;;;;;;;MAwEC;IAED,qCAOC;IAED;;;;OAIG;IACH,mCAKC;IAED,yDAAyD;IACzD,+CAUC;IAED,yCAGC;CACF;8BA9Y6B,4BAA4B;iCALzB,2CAA2C"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/features/session_replay/aggregate/index.js"],"names":[],"mappings":"AA4BA;IACE,2BAAiC;IACjC,aAAe;IAKb,8GAA8G;IAC9G,wBAA+E;IAC/E,iFAAiF;IACjF,qBAAwB;IAGxB,2CAA2C;IAC3C,sDAAwB;IACxB,6CAA6C;IAC7C,gDAAmB;IAEnB,0BAA0B;IAC1B,kBAAqB;IACrB,6CAA6C;IAC7C,gBAA2B;IAE3B,cAA8B;IAC9B,kBAA+C;IAmC/C,4BAKQ;IA4CV,0BAMC;IAED,qBAWC;IAED;;;;;;;OAOG;IACH,gDAHW,OAAO,GACL,IAAI,CA8DhB;IAED,2BASC;IAED;;;;;;;;;;;;oBAgDC;IAED,sCAIC;IAED;;;;;;;;;;MAuEC;IAED,qCAOC;IAED;;;;OAIG;IACH,mCAKC;IAED,yDAAyD;IACzD,+CAUC;IAED,yCAEC;CACF;8BAzY6B,4BAA4B;iCAFzB,2CAA2C"}
@@ -1,6 +1,6 @@
1
1
  export class Instrument extends InstrumentBase {
2
2
  static featureName: string;
3
- constructor(agentIdentifier: any, aggregator: any, auto?: boolean);
3
+ constructor(agentRef: any, auto?: boolean);
4
4
  replayRunning: boolean;
5
5
  errorNoticed: boolean;
6
6
  #private;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/features/session_replay/instrument/index.js"],"names":[],"mappings":"AAcA;IACE,2BAAiC;IAGjC,mEA+BC;IA5BC,uBAA0B;IAmBtB,sBAAwB;;CAgE/B;AAED,8CAAuC;+BAhGR,6BAA6B"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/features/session_replay/instrument/index.js"],"names":[],"mappings":"AAcA;IACE,2BAAiC;IAIjC,2CAgCC;IA7BC,uBAA0B;IAoBtB,sBAAwB;;CAgE/B;AAED,8CAAuC;+BAlGR,6BAA6B"}
@@ -1,8 +1,6 @@
1
1
  export class Aggregate extends AggregateBase {
2
2
  static featureName: string;
3
- constructor(agentIdentifier: any, aggregator: any);
4
- agentRuntime: any;
5
- agentInfo: any;
3
+ constructor(agentRef: any);
6
4
  /** A buffer to hold on to harvested traces in the case that a retry must be made later */
7
5
  sentTrace: any[] | null;
8
6
  harvestTimeSeconds: any;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/features/session_trace/aggregate/index.js"],"names":[],"mappings":"AAkBA;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;;;;;;;;;;MA6DC;IAED;;OAEG;IACH,qCAKC;IAED,8DAA8D;IAC9D,qBAUC;IAED,2DAA2D;IAC3D,yBAKC;CACF;8BAhN6B,4BAA4B;6BAC7B,iBAAiB;iCANb,2CAA2C"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/features/session_trace/aggregate/index.js"],"names":[],"mappings":"AAcA;IACE,2BAAiC;IAEjC,2BAiBC;IAdC,0FAA0F;IAC1F,wBAAqB;IACrB,wBAA8E;IAC9E,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,UAAsC;IACtC,eAA2D;IAyBD,UAAgE;IAS5H,wCAKQ;IAuBV,kJAAkJ;IAClJ,wBAIC;IAED,iJAAiJ;IACjJ;;;;;;;;;;MA6DC;IAED;;OAEG;IACH,qCAKC;IAED,8DAA8D;IAC9D,qBAUC;IAED,2DAA2D;IAC3D,yBAKC;CACF;8BA7M6B,4BAA4B;6BAC7B,iBAAiB;iCAHb,2CAA2C"}
@@ -1,6 +1,6 @@
1
1
  export class Instrument extends InstrumentBase {
2
2
  static featureName: string;
3
- constructor(agentIdentifier: any, aggregator: any, auto?: boolean);
3
+ constructor(agentRef: any, auto?: boolean);
4
4
  eventsEE: Object | undefined;
5
5
  }
6
6
  export const SessionTrace: typeof Instrument;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/features/session_trace/instrument/index.js"],"names":[],"mappings":"AAkBA;IACE,2BAAiC;IACjC,mEA0CC;IAhCC,6BAA4C;CAiC/C;AAED,6CAAsC;+BA1DP,6BAA6B"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/features/session_trace/instrument/index.js"],"names":[],"mappings":"AAiBA;IACE,2BAAiC;IACjC,2CA0CC;IAhCC,6BAA4C;CAiC/C;AAED,6CAAsC;+BAzDP,6BAA6B"}
@@ -1,6 +1,6 @@
1
1
  export class Aggregate extends AggregateBase {
2
2
  static featureName: string;
3
- constructor(agentIdentifier: any, aggregator: any, { domObserver }: {
3
+ constructor(agentRef: any, { domObserver }: {
4
4
  domObserver: any;
5
5
  });
6
6
  interactionsToHarvest: EventBuffer;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/features/soft_navigations/aggregate/index.js"],"names":[],"mappings":"AAgBA;IACE,2BAAiC;IACjC;;OAkDC;IA9CC,mCAA8C;IAC9C,iBAA8B;IAE9B,uDAAiF;IAWjF,yBAA+B;IAC/B,0CAAiC;IAiCnC;;;;kBAgBC;IAED,qCAGC;IAED,0EAeC;IAED,2BAiBC;IAED;;;;;;;OAOG;IACH,6BAHW,mBAAmB,sBAoB7B;;CA2FF;8BA5O6B,4BAA4B;4BAC9B,0BAA0B;2CAGX,iCAAiC;4BAChD,eAAe"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/features/soft_navigations/aggregate/index.js"],"names":[],"mappings":"AAcA;IACE,2BAAiC;IACjC;;OAkDC;IA9CC,mCAA8C;IAC9C,iBAA8B;IAE9B,uDAA0F;IAW1F,yBAA+B;IAC/B,0CAAiC;IAiCnC;;;;kBAgBC;IAED,qCAGC;IAED,0EAeC;IAED,2BAiBC;IAED;;;;;;;OAOG;IACH,6BAHW,mBAAmB,sBAoB7B;;CA2FF;8BA5O6B,4BAA4B;4BAC9B,0BAA0B;2CAGX,iCAAiC;4BAChD,eAAe"}
@@ -1,6 +1,6 @@
1
1
  export class Instrument extends InstrumentBase {
2
2
  static featureName: string;
3
- constructor(agentIdentifier: any, aggregator: any, auto?: boolean);
3
+ constructor(agentRef: any, auto?: boolean);
4
4
  removeOnAbort: AbortController | undefined;
5
5
  }
6
6
  export const SoftNav: typeof Instrument;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/features/soft_navigations/instrument/index.js"],"names":[],"mappings":"AAkBA;IACE,2BAAiC;IACjC,mEA+CC;IAnCG,2CAA0C;CAoC/C;AAED,wCAAiC;+BA/DF,6BAA6B"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/features/soft_navigations/instrument/index.js"],"names":[],"mappings":"AAkBA;IACE,2BAAiC;IACjC,2CA+CC;IAnCG,2CAA0C;CAoC/C;AAED,wCAAiC;+BA/DF,6BAA6B"}
@@ -1,6 +1,6 @@
1
1
  export class Aggregate extends AggregateBase {
2
2
  static featureName: string;
3
- constructor(agentIdentifier: any, aggregator: any);
3
+ constructor(agentRef: any);
4
4
  state: {
5
5
  initialPageURL: any;
6
6
  lastSeenUrl: any;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/features/spa/aggregate/index.js"],"names":[],"mappings":"AAkCA;IACE,2BAAiC;IACjC,mDAktBC;IA9sBC;;;;;;;;;;;;;;;;MAiBC;IAGD,uBAAsC;CA2rBzC;8BApuB6B,4BAA4B;4BAS9B,0BAA0B;2BAb3B,cAAc"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/features/spa/aggregate/index.js"],"names":[],"mappings":"AA+BA;IACE,2BAAiC;IACjC,2BA4sBC;IAzsBC;;;;;;;;;;;;;;;;MAiBC;IAGD,uBAAsC;CAsrBzC;8BA7tB6B,4BAA4B;4BAQ9B,0BAA0B;2BAZ3B,cAAc"}
@@ -1,6 +1,9 @@
1
+ /**
2
+ * @deprecated This feature has been deprecated, in favor of `soft_navigations`, which is in limited preview. Consider using/importing `SoftNavigations` instead. To gain access to the limited preview, please see https://docs.newrelic.com/docs/browser/single-page-app-monitoring/get-started/browser-spa-v2/ for more information. This feature will be removed in a future release.
3
+ */
1
4
  export class Instrument extends InstrumentBase {
2
5
  static featureName: string;
3
- constructor(agentIdentifier: any, aggregator: any, auto?: boolean);
6
+ constructor(agentRef: any, auto?: boolean);
4
7
  removeOnAbort: AbortController | undefined;
5
8
  #private;
6
9
  }
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/features/spa/instrument/index.js"],"names":[],"mappings":"AAsBA;IACE,2BAAiC;IACjC,mEAsFC;IAjFG,2CAA0C;;CAwF/C;AAED,oCAA6B;+BAlHE,6BAA6B"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/features/spa/instrument/index.js"],"names":[],"mappings":"AAsBA;;GAEG;AACH;IACE,2BAAiC;IACjC,2CAsFC;IAjFG,2CAA0C;;CAwF/C;AAED,oCAA6B;+BArHE,6BAA6B"}
@@ -1,5 +1,5 @@
1
1
  export class AggregateBase extends FeatureBase {
2
- constructor(...args: any[]);
2
+ agentRef: any;
3
3
  obfuscator: any;
4
4
  /**
5
5
  * New handler for waiting for multiple flags. Useful when expecting multiple flags simultaneously (ex. stn vs sr)
@@ -13,7 +13,7 @@ export class AggregateBase extends FeatureBase {
13
13
  * Checks for additional `jsAttributes` items to support backward compatibility with implementations of the agent where
14
14
  * loader configurations may appear after the loader code is executed.
15
15
  */
16
- checkConfiguration(): void;
16
+ checkConfiguration(existingAgent: any): void;
17
17
  }
18
18
  import { FeatureBase } from './feature-base';
19
19
  //# sourceMappingURL=aggregate-base.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"aggregate-base.d.ts","sourceRoot":"","sources":["../../../../src/features/utils/aggregate-base.js"],"names":[],"mappings":"AASA;IACE,4BAIC;IADC,gBAA6D;IAG/D;;;;OAIG;IACH,yBAHW,MAAM,EAAE,gBAwBlB;IAED,cAGC;IADC,6BAAmB;IAGrB;;;OAGG;IACH,2BA2BC;CACF;4BAjF2B,gBAAgB"}
1
+ {"version":3,"file":"aggregate-base.d.ts","sourceRoot":"","sources":["../../../../src/features/utils/aggregate-base.js"],"names":[],"mappings":"AAQA;IAGI,cAAwB;IAExB,gBAA6C;IAG/C;;;;OAIG;IACH,yBAHW,MAAM,EAAE,gBAwBlB;IAED,cAGC;IADC,6BAAmB;IAGrB;;;OAGG;IACH,6CA0BC;CACF;4BAhF2B,gBAAgB"}
@@ -1,9 +1,7 @@
1
1
  export class FeatureBase {
2
- constructor(agentIdentifier: any, aggregator: any, featureName: any);
2
+ constructor(agentIdentifier: any, featureName: any);
3
3
  /** @type {string} */
4
4
  agentIdentifier: string;
5
- /** @type {import('../../common/aggregate/aggregator').Aggregator} */
6
- aggregator: import("../../common/aggregate/aggregator").Aggregator;
7
5
  /** @type {import('../../common/event-emitter/contextual-ee').ee} */
8
6
  ee: any;
9
7
  /** @type {string} */
@@ -14,5 +12,6 @@ export class FeatureBase {
14
12
  * @type {boolean}
15
13
  */
16
14
  blocked: boolean;
15
+ deregisterDrain(): void;
17
16
  }
18
17
  //# sourceMappingURL=feature-base.d.ts.map
@@ -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,IADW,GAAqD,CAC/B;IACjC,qBAAqB;IACrB,aADW,MAAM,CACa;IAC9B;;;;OAIG;IACH,SAFU,OAAO,CAEG;CAEvB"}
1
+ {"version":3,"file":"feature-base.d.ts","sourceRoot":"","sources":["../../../../src/features/utils/feature-base.js"],"names":[],"mappings":"AAGA;IACE,oDAaC;IAZC,qBAAqB;IACrB,iBADW,MAAM,CACqB;IACtC,oEAAoE;IACpE,IADW,GAAqD,CAC/B;IACjC,qBAAqB;IACrB,aADW,MAAM,CACa;IAC9B;;;;OAIG;IACH,SAFU,OAAO,CAEG;IAGtB,wBAEC;CACF"}
@@ -6,13 +6,12 @@ export class InstrumentBase extends FeatureBase {
6
6
  /**
7
7
  * Instantiate InstrumentBase.
8
8
  * @param {string} agentIdentifier - The unique ID of the instantiated agent (relative to global scope).
9
- * @param {import('../../common/aggregate/aggregator').Aggregator} aggregator - The shared Aggregator that will handle batching and reporting of data.
10
9
  * @param {string} featureName - The name of the feature module (used to construct file path).
11
10
  * @param {boolean} [auto=true] - Determines whether the feature should automatically register to have the draining
12
11
  * of its pooled instrumentation data handled by the agent's centralized drain functionality, rather than draining
13
12
  * immediately. Primarily useful for fine-grained control in tests.
14
13
  */
15
- constructor(agentIdentifier: string, aggregator: import("../../common/aggregate/aggregator").Aggregator, featureName: string, auto?: boolean | undefined);
14
+ constructor(agentRef: any, featureName: string, auto?: boolean | undefined);
16
15
  auto: boolean;
17
16
  /** @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
17
  abortHandler: Function | undefined;
@@ -30,10 +29,11 @@ export class InstrumentBase extends FeatureBase {
30
29
  /**
31
30
  * Lazy-load the latter part of the feature: its aggregator. This method is called by the first part of the feature
32
31
  * (the instrumentation) when instrumentation is complete.
32
+ * @param agentRef - reference to the base agent ancestor that this feature belongs to
33
33
  * @param {Object} [argsObjFromInstrument] - any values or references to pass down to aggregate
34
34
  * @returns void
35
35
  */
36
- importAggregator(argsObjFromInstrument?: Object | undefined): void;
36
+ importAggregator(agentRef: any, argsObjFromInstrument?: Object | undefined): void;
37
37
  #private;
38
38
  }
39
39
  import { FeatureBase } from './feature-base';
@@ -1 +1 @@
1
- {"version":3,"file":"instrument-base.d.ts","sourceRoot":"","sources":["../../../../src/features/utils/instrument-base.js"],"names":[],"mappings":"AAiBA;;;GAGG;AACH;IACE;;;;;;;;OAQG;IACH,6BAPW,MAAM,cACN,OAAO,mCAAmC,EAAE,UAAU,eACtD,MAAM,8BAsChB;IA/BC,cAAgB;IAEhB,8IAA8I;IAC9I,cADW,WAAW,SAAS,CACF;IAE7B;;;MAGE;IACF,eAHU,OAAO,kBAAkB,EAAE,aAAa,CAGpB;IAE9B;;;;MAIE;IACF,kCAAoC;IAiBtC;;;;;OAKG;IACH,mEAiDC;;CAkBF;4BApI2B,gBAAgB"}
1
+ {"version":3,"file":"instrument-base.d.ts","sourceRoot":"","sources":["../../../../src/features/utils/instrument-base.js"],"names":[],"mappings":"AAgBA;;;GAGG;AACH;IACE;;;;;;;OAOG;IACH,wCALW,MAAM,8BAsChB;IA/BC,cAAgB;IAEhB,8IAA8I;IAC9I,cADW,WAAW,SAAS,CACF;IAE7B;;;MAGE;IACF,eAHU,OAAO,kBAAkB,EAAE,aAAa,CAGpB;IAE9B;;;;MAIE;IACF,kCAAoC;IAiBtC;;;;;;OAMG;IACH,kFAwDC;;CAkBF;4BA1I2B,gBAAgB"}
@@ -118,6 +118,7 @@ export class AgentBase {
118
118
  * {@link https://docs.newrelic.com/docs/browser/new-relic-browser/browser-apis/interaction/}
119
119
  * @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.
120
120
  * - Note: Does not apply to MicroAgent
121
+ * - Deprecation Notice: interaction.createTracer is deprecated. See https://docs.newrelic.com/eol/2024/04/eol-04-24-24-createtracer/ for more information.
121
122
  */
122
123
  interaction(): InteractionInstance;
123
124
  /**