@newrelic/browser-agent 1.258.1 → 1.258.2
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 +7 -0
- package/README.md +3 -4
- package/dist/cjs/common/constants/env.cdn.js +1 -1
- package/dist/cjs/common/constants/env.npm.js +1 -1
- package/dist/cjs/features/jserrors/aggregate/index.js +2 -1
- package/dist/esm/common/constants/env.cdn.js +1 -1
- package/dist/esm/common/constants/env.npm.js +1 -1
- package/dist/esm/features/jserrors/aggregate/index.js +2 -1
- package/dist/types/features/jserrors/aggregate/index.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/features/jserrors/aggregate/index.js +2 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,13 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [1.258.2](https://github.com/newrelic/newrelic-browser-agent/compare/v1.258.1...v1.258.2) (2024-05-07)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* Prevent noticeError() API from running if not given an argument ([#1021](https://github.com/newrelic/newrelic-browser-agent/issues/1021)) ([c023a53](https://github.com/newrelic/newrelic-browser-agent/commit/c023a53c20a9f0f2472e1ba5ff78eb7210a906fa))
|
|
12
|
+
|
|
6
13
|
## [1.258.1](https://github.com/newrelic/newrelic-browser-agent/compare/v1.258.0...v1.258.1) (2024-05-07)
|
|
7
14
|
|
|
8
15
|
|
package/README.md
CHANGED
|
@@ -82,6 +82,7 @@ The following features may be disabled by adding `init` entries as shown above.
|
|
|
82
82
|
- `metrics`
|
|
83
83
|
- `page_action`
|
|
84
84
|
- `page_view_timing`
|
|
85
|
+
- `session_replay`
|
|
85
86
|
- `session_trace`
|
|
86
87
|
- `spa`
|
|
87
88
|
|
|
@@ -186,9 +187,7 @@ Please see our [official documentation](https://docs.newrelic.com/docs/browser/n
|
|
|
186
187
|
```
|
|
187
188
|
|
|
188
189
|
## Session Replay
|
|
189
|
-
The Session Replay feature is
|
|
190
|
-
|
|
191
|
-
Due to the sensitive nature of the feature, Session Replay has many configuration options, which are configurable in each browser application's *Application Settings* page on the New Relic site. These settings will only be accessible if you are participating in the limited preview. Additionally, you can control the sampling rates, obfuscation conditions and triggering rules of Session Replay.
|
|
190
|
+
The Session Replay feature is now available for limited free use by all customers. The data collected by this feature will become billable starting May 15th, 2024. Please see the [Session Replay documentation](https://docs.newrelic.com/docs/browser/browser-monitoring/browser-pro-features/session-replay/) to get started using this new feature.
|
|
192
191
|
|
|
193
192
|
## Supported browsers
|
|
194
193
|
|
|
@@ -239,7 +238,7 @@ A lot of new frameworks support the concept of server-side rendering the pages o
|
|
|
239
238
|
|
|
240
239
|
## Disclaimers
|
|
241
240
|
|
|
242
|
-
The session replay library shipping
|
|
241
|
+
The session replay library shipping as part of the browser agent is not turned on by default. For information on the use of this feature, see [Session Replay](#session-replay)
|
|
243
242
|
|
|
244
243
|
## Support
|
|
245
244
|
|
|
@@ -12,7 +12,7 @@ exports.VERSION = exports.RRWEB_VERSION = exports.DIST_METHOD = exports.BUILD_EN
|
|
|
12
12
|
/**
|
|
13
13
|
* Exposes the version of the agent
|
|
14
14
|
*/
|
|
15
|
-
const VERSION = exports.VERSION = "1.258.
|
|
15
|
+
const VERSION = exports.VERSION = "1.258.2";
|
|
16
16
|
|
|
17
17
|
/**
|
|
18
18
|
* Exposes the build type of the agent
|
|
@@ -12,7 +12,7 @@ exports.VERSION = exports.RRWEB_VERSION = exports.DIST_METHOD = exports.BUILD_EN
|
|
|
12
12
|
/**
|
|
13
13
|
* Exposes the version of the agent
|
|
14
14
|
*/
|
|
15
|
-
const VERSION = exports.VERSION = "1.258.
|
|
15
|
+
const VERSION = exports.VERSION = "1.258.2";
|
|
16
16
|
|
|
17
17
|
/**
|
|
18
18
|
* Exposes the build type of the agent
|
|
@@ -140,6 +140,7 @@ class Aggregate extends _aggregateBase.AggregateBase {
|
|
|
140
140
|
return canonicalStackString;
|
|
141
141
|
}
|
|
142
142
|
storeError(err, time, internal, customAttributes, hasReplay) {
|
|
143
|
+
if (!err) return;
|
|
143
144
|
// are we in an interaction
|
|
144
145
|
time = time || (0, _now.now)();
|
|
145
146
|
const agentRuntime = (0, _config.getRuntime)(this.agentIdentifier);
|
|
@@ -202,7 +203,7 @@ class Aggregate extends _aggregateBase.AggregateBase {
|
|
|
202
203
|
(0, _handle.handle)('trace-jserror', jsErrorEvent, undefined, _features.FEATURE_NAMES.sessionTrace, this.ee);
|
|
203
204
|
// still send EE events for other features such as above, but stop this one from aggregating internal data
|
|
204
205
|
if (this.blocked) return;
|
|
205
|
-
if (err
|
|
206
|
+
if (err?.__newrelic?.[this.agentIdentifier]) {
|
|
206
207
|
params._interactionId = err.__newrelic[this.agentIdentifier].interactionId;
|
|
207
208
|
params._interactionNodeId = err.__newrelic[this.agentIdentifier].interactionNodeId;
|
|
208
209
|
}
|
|
@@ -135,6 +135,7 @@ export class Aggregate extends AggregateBase {
|
|
|
135
135
|
return canonicalStackString;
|
|
136
136
|
}
|
|
137
137
|
storeError(err, time, internal, customAttributes, hasReplay) {
|
|
138
|
+
if (!err) return;
|
|
138
139
|
// are we in an interaction
|
|
139
140
|
time = time || now();
|
|
140
141
|
const agentRuntime = getRuntime(this.agentIdentifier);
|
|
@@ -197,7 +198,7 @@ export class Aggregate extends AggregateBase {
|
|
|
197
198
|
handle('trace-jserror', jsErrorEvent, undefined, FEATURE_NAMES.sessionTrace, this.ee);
|
|
198
199
|
// still send EE events for other features such as above, but stop this one from aggregating internal data
|
|
199
200
|
if (this.blocked) return;
|
|
200
|
-
if (err
|
|
201
|
+
if (err?.__newrelic?.[this.agentIdentifier]) {
|
|
201
202
|
params._interactionId = err.__newrelic[this.agentIdentifier].interactionId;
|
|
202
203
|
params._interactionNodeId = err.__newrelic[this.agentIdentifier].interactionNodeId;
|
|
203
204
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/features/jserrors/aggregate/index.js"],"names":[],"mappings":"AAyBA;;GAEG;AAEH;IACE,2BAAiC;IACjC,mDAgCC;IA7BC,kBAAuB;IACvB,eAAoB;IACpB,qBAA0B;IAC1B,2BAAgC;IAChC,mCAA4B;IAC5B,qBAAwB;IA0B1B;;;MAwBC;IAED,qCAWC;IAED,8BAEC;IAED,oEAMC;IAED;;;;;;OAMG;IACH,qCAHW,SAAS,GACP,MAAM,CAgBlB;IAED,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/features/jserrors/aggregate/index.js"],"names":[],"mappings":"AAyBA;;GAEG;AAEH;IACE,2BAAiC;IACjC,mDAgCC;IA7BC,kBAAuB;IACvB,eAAoB;IACpB,qBAA0B;IAC1B,2BAAgC;IAChC,mCAA4B;IAC5B,qBAAwB;IA0B1B;;;MAwBC;IAED,qCAWC;IAED,8BAEC;IAED,oEAMC;IAED;;;;;;OAMG;IACH,qCAHW,SAAS,GACP,MAAM,CAgBlB;IAED,4FA4FC;IA4BD,yDA6BC;IAED,qFAOC;;CAwBF;wBAvSY,OAAO,0BAA0B,EAAE,SAAS;8BAN3B,4BAA4B"}
|
package/package.json
CHANGED
|
@@ -138,6 +138,7 @@ export class Aggregate extends AggregateBase {
|
|
|
138
138
|
}
|
|
139
139
|
|
|
140
140
|
storeError (err, time, internal, customAttributes, hasReplay) {
|
|
141
|
+
if (!err) return
|
|
141
142
|
// are we in an interaction
|
|
142
143
|
time = time || now()
|
|
143
144
|
const agentRuntime = getRuntime(this.agentIdentifier)
|
|
@@ -206,7 +207,7 @@ export class Aggregate extends AggregateBase {
|
|
|
206
207
|
// still send EE events for other features such as above, but stop this one from aggregating internal data
|
|
207
208
|
if (this.blocked) return
|
|
208
209
|
|
|
209
|
-
if (err
|
|
210
|
+
if (err?.__newrelic?.[this.agentIdentifier]) {
|
|
210
211
|
params._interactionId = err.__newrelic[this.agentIdentifier].interactionId
|
|
211
212
|
params._interactionNodeId = err.__newrelic[this.agentIdentifier].interactionNodeId
|
|
212
213
|
}
|