@newrelic/browser-agent 1.292.1-rc.2 → 1.292.1-rc.3

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.
@@ -17,7 +17,7 @@ exports.VERSION = exports.RRWEB_VERSION = exports.DIST_METHOD = exports.BUILD_EN
17
17
  /**
18
18
  * Exposes the version of the agent
19
19
  */
20
- const VERSION = exports.VERSION = "1.292.1-rc.2";
20
+ const VERSION = exports.VERSION = "1.292.1-rc.3";
21
21
 
22
22
  /**
23
23
  * Exposes the build type of the agent
@@ -17,7 +17,7 @@ exports.VERSION = exports.RRWEB_VERSION = exports.DIST_METHOD = exports.BUILD_EN
17
17
  /**
18
18
  * Exposes the version of the agent
19
19
  */
20
- const VERSION = exports.VERSION = "1.292.1-rc.2";
20
+ const VERSION = exports.VERSION = "1.292.1-rc.3";
21
21
 
22
22
  /**
23
23
  * Exposes the build type of the agent
@@ -81,7 +81,7 @@ class DT {
81
81
  // return true if DT is enabled and the origin is allowed, either by being
82
82
  // same-origin, or included in the allowed list
83
83
  shouldGenerateTrace(parsedOrigin) {
84
- return this.agentRef.init?.distributed_tracing && this.isAllowedOrigin(parsedOrigin);
84
+ return this.agentRef.init?.distributed_tracing?.enabled && this.isAllowedOrigin(parsedOrigin);
85
85
  }
86
86
  isAllowedOrigin(parsedOrigin) {
87
87
  var allowed = false;
@@ -11,7 +11,7 @@
11
11
  /**
12
12
  * Exposes the version of the agent
13
13
  */
14
- export const VERSION = "1.292.1-rc.2";
14
+ export const VERSION = "1.292.1-rc.3";
15
15
 
16
16
  /**
17
17
  * Exposes the build type of the agent
@@ -11,7 +11,7 @@
11
11
  /**
12
12
  * Exposes the version of the agent
13
13
  */
14
- export const VERSION = "1.292.1-rc.2";
14
+ export const VERSION = "1.292.1-rc.3";
15
15
 
16
16
  /**
17
17
  * Exposes the build type of the agent
@@ -74,7 +74,7 @@ export class DT {
74
74
  // return true if DT is enabled and the origin is allowed, either by being
75
75
  // same-origin, or included in the allowed list
76
76
  shouldGenerateTrace(parsedOrigin) {
77
- return this.agentRef.init?.distributed_tracing && this.isAllowedOrigin(parsedOrigin);
77
+ return this.agentRef.init?.distributed_tracing?.enabled && this.isAllowedOrigin(parsedOrigin);
78
78
  }
79
79
  isAllowedOrigin(parsedOrigin) {
80
80
  var allowed = false;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@newrelic/browser-agent",
3
- "version": "1.292.1-rc.2",
3
+ "version": "1.292.1-rc.3",
4
4
  "private": false,
5
5
  "author": "New Relic Browser Agent Team <browser-agent@newrelic.com>",
6
6
  "description": "New Relic Browser Agent",
@@ -94,7 +94,7 @@ export class DT {
94
94
  // return true if DT is enabled and the origin is allowed, either by being
95
95
  // same-origin, or included in the allowed list
96
96
  shouldGenerateTrace (parsedOrigin) {
97
- return this.agentRef.init?.distributed_tracing && this.isAllowedOrigin(parsedOrigin)
97
+ return this.agentRef.init?.distributed_tracing?.enabled && this.isAllowedOrigin(parsedOrigin)
98
98
  }
99
99
 
100
100
  isAllowedOrigin (parsedOrigin) {