@newrelic/browser-agent 1.300.0-rc.0 → 1.300.0-rc.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -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.300.0-rc.0";
20
+ const VERSION = exports.VERSION = "1.300.0-rc.1";
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.300.0-rc.0";
20
+ const VERSION = exports.VERSION = "1.300.0-rc.1";
21
21
 
22
22
  /**
23
23
  * Exposes the build type of the agent
@@ -99,6 +99,8 @@ class Aggregate extends _aggregateBase.AggregateBase {
99
99
  common: {
100
100
  /** Attributes in the `common` section are added to `all` logs generated in the payload */
101
101
  attributes: {
102
+ ...this.agentRef.info.jsAttributes,
103
+ // user-provided custom attributes
102
104
  'entity.guid': target.entityGuid,
103
105
  // browser entity guid as provided API target OR the default from RUM response if not supplied
104
106
  ...(sessionEntity && {
@@ -119,9 +121,7 @@ class Aggregate extends _aggregateBase.AggregateBase {
119
121
  // The following 3 attributes are evaluated and dropped at ingest processing time and do not get stored on NRDB:
120
122
  'instrumentation.provider': 'browser',
121
123
  'instrumentation.version': this.agentRef.runtime.version,
122
- 'instrumentation.name': this.agentRef.runtime.loaderType,
123
- // Custom attributes
124
- ...this.agentRef.info.jsAttributes
124
+ 'instrumentation.name': this.agentRef.runtime.loaderType
125
125
  }
126
126
  },
127
127
  /** logs section contains individual unique log entries */
@@ -11,7 +11,7 @@
11
11
  /**
12
12
  * Exposes the version of the agent
13
13
  */
14
- export const VERSION = "1.300.0-rc.0";
14
+ export const VERSION = "1.300.0-rc.1";
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.300.0-rc.0";
14
+ export const VERSION = "1.300.0-rc.1";
15
15
 
16
16
  /**
17
17
  * Exposes the build type of the agent
@@ -92,6 +92,8 @@ export class Aggregate extends AggregateBase {
92
92
  common: {
93
93
  /** Attributes in the `common` section are added to `all` logs generated in the payload */
94
94
  attributes: {
95
+ ...this.agentRef.info.jsAttributes,
96
+ // user-provided custom attributes
95
97
  'entity.guid': target.entityGuid,
96
98
  // browser entity guid as provided API target OR the default from RUM response if not supplied
97
99
  ...(sessionEntity && {
@@ -112,9 +114,7 @@ export class Aggregate extends AggregateBase {
112
114
  // The following 3 attributes are evaluated and dropped at ingest processing time and do not get stored on NRDB:
113
115
  'instrumentation.provider': 'browser',
114
116
  'instrumentation.version': this.agentRef.runtime.version,
115
- 'instrumentation.name': this.agentRef.runtime.loaderType,
116
- // Custom attributes
117
- ...this.agentRef.info.jsAttributes
117
+ 'instrumentation.name': this.agentRef.runtime.loaderType
118
118
  }
119
119
  },
120
120
  /** logs section contains individual unique log entries */
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/features/logging/aggregate/index.js"],"names":[],"mappings":"AAiBA;IACE,2BAAiC;IACjC,2BAqCC;IAnCC,8BAAmG;IAY5F,iBAAmC;IAyB5C,0CAKC;IAED,4HAsCC;IAED;;YAKM,0FAA0F;;;QAoB5F,0DAA0D;;QAM7D;IAED;;MAGC;IAED,yDAAyD;IACzD,yBASC;IAED,yCAIC;CACF;8BAzJ6B,4BAA4B"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/features/logging/aggregate/index.js"],"names":[],"mappings":"AAiBA;IACE,2BAAiC;IACjC,2BAqCC;IAnCC,8BAAmG;IAY5F,iBAAmC;IAyB5C,0CAKC;IAED,4HAsCC;IAED;;YAKM,0FAA0F;;;QAmB5F,0DAA0D;;QAM7D;IAED;;MAGC;IAED,yDAAyD;IACzD,yBASC;IAED,yCAIC;CACF;8BAxJ6B,4BAA4B"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@newrelic/browser-agent",
3
- "version": "1.300.0-rc.0",
3
+ "version": "1.300.0-rc.1",
4
4
  "private": false,
5
5
  "author": "New Relic Browser Agent Team <browser-agent@newrelic.com>",
6
6
  "description": "New Relic Browser Agent",
@@ -110,6 +110,7 @@ export class Aggregate extends AggregateBase {
110
110
  common: {
111
111
  /** Attributes in the `common` section are added to `all` logs generated in the payload */
112
112
  attributes: {
113
+ ...this.agentRef.info.jsAttributes, // user-provided custom attributes
113
114
  'entity.guid': target.entityGuid, // browser entity guid as provided API target OR the default from RUM response if not supplied
114
115
  ...(sessionEntity && {
115
116
  session: sessionEntity.state.value || '0', // The session ID that we generate and keep across page loads
@@ -123,9 +124,7 @@ export class Aggregate extends AggregateBase {
123
124
  // The following 3 attributes are evaluated and dropped at ingest processing time and do not get stored on NRDB:
124
125
  'instrumentation.provider': 'browser',
125
126
  'instrumentation.version': this.agentRef.runtime.version,
126
- 'instrumentation.name': this.agentRef.runtime.loaderType,
127
- // Custom attributes
128
- ...this.agentRef.info.jsAttributes
127
+ 'instrumentation.name': this.agentRef.runtime.loaderType
129
128
  }
130
129
  },
131
130
  /** logs section contains individual unique log entries */