@newrelic/browser-agent 1.300.0-rc.1 → 1.300.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/dist/cjs/common/constants/env.cdn.js +1 -1
- package/dist/cjs/common/constants/env.npm.js +1 -1
- package/dist/cjs/features/logging/aggregate/index.js +3 -3
- package/dist/esm/common/constants/env.cdn.js +1 -1
- package/dist/esm/common/constants/env.npm.js +1 -1
- package/dist/esm/features/logging/aggregate/index.js +3 -3
- package/dist/types/features/logging/aggregate/index.d.ts.map +1 -1
- package/package.json +2 -2
- package/src/features/logging/aggregate/index.js +3 -2
|
@@ -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
|
|
20
|
+
const VERSION = exports.VERSION = "1.300.0";
|
|
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
|
|
20
|
+
const VERSION = exports.VERSION = "1.300.0";
|
|
21
21
|
|
|
22
22
|
/**
|
|
23
23
|
* Exposes the build type of the agent
|
|
@@ -99,8 +99,6 @@ 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
|
|
104
102
|
'entity.guid': target.entityGuid,
|
|
105
103
|
// browser entity guid as provided API target OR the default from RUM response if not supplied
|
|
106
104
|
...(sessionEntity && {
|
|
@@ -121,7 +119,9 @@ class Aggregate extends _aggregateBase.AggregateBase {
|
|
|
121
119
|
// The following 3 attributes are evaluated and dropped at ingest processing time and do not get stored on NRDB:
|
|
122
120
|
'instrumentation.provider': 'browser',
|
|
123
121
|
'instrumentation.version': this.agentRef.runtime.version,
|
|
124
|
-
'instrumentation.name': this.agentRef.runtime.loaderType
|
|
122
|
+
'instrumentation.name': this.agentRef.runtime.loaderType,
|
|
123
|
+
// Custom attributes
|
|
124
|
+
...this.agentRef.info.jsAttributes
|
|
125
125
|
}
|
|
126
126
|
},
|
|
127
127
|
/** logs section contains individual unique log entries */
|
|
@@ -92,8 +92,6 @@ 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
|
|
97
95
|
'entity.guid': target.entityGuid,
|
|
98
96
|
// browser entity guid as provided API target OR the default from RUM response if not supplied
|
|
99
97
|
...(sessionEntity && {
|
|
@@ -114,7 +112,9 @@ export class Aggregate extends AggregateBase {
|
|
|
114
112
|
// The following 3 attributes are evaluated and dropped at ingest processing time and do not get stored on NRDB:
|
|
115
113
|
'instrumentation.provider': 'browser',
|
|
116
114
|
'instrumentation.version': this.agentRef.runtime.version,
|
|
117
|
-
'instrumentation.name': this.agentRef.runtime.loaderType
|
|
115
|
+
'instrumentation.name': this.agentRef.runtime.loaderType,
|
|
116
|
+
// Custom attributes
|
|
117
|
+
...this.agentRef.info.jsAttributes
|
|
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;;;
|
|
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"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@newrelic/browser-agent",
|
|
3
|
-
"version": "1.300.0
|
|
3
|
+
"version": "1.300.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"author": "New Relic Browser Agent Team <browser-agent@newrelic.com>",
|
|
6
6
|
"description": "New Relic Browser Agent",
|
|
@@ -291,4 +291,4 @@
|
|
|
291
291
|
"README.md",
|
|
292
292
|
"CHANGELOG.md"
|
|
293
293
|
]
|
|
294
|
-
}
|
|
294
|
+
}
|
|
@@ -110,7 +110,6 @@ 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
|
|
114
113
|
'entity.guid': target.entityGuid, // browser entity guid as provided API target OR the default from RUM response if not supplied
|
|
115
114
|
...(sessionEntity && {
|
|
116
115
|
session: sessionEntity.state.value || '0', // The session ID that we generate and keep across page loads
|
|
@@ -124,7 +123,9 @@ export class Aggregate extends AggregateBase {
|
|
|
124
123
|
// The following 3 attributes are evaluated and dropped at ingest processing time and do not get stored on NRDB:
|
|
125
124
|
'instrumentation.provider': 'browser',
|
|
126
125
|
'instrumentation.version': this.agentRef.runtime.version,
|
|
127
|
-
'instrumentation.name': this.agentRef.runtime.loaderType
|
|
126
|
+
'instrumentation.name': this.agentRef.runtime.loaderType,
|
|
127
|
+
// Custom attributes
|
|
128
|
+
...this.agentRef.info.jsAttributes
|
|
128
129
|
}
|
|
129
130
|
},
|
|
130
131
|
/** logs section contains individual unique log entries */
|