@cloudcare/browser-core 1.0.24 → 1.0.25
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/cjs/dataMap.js +2 -0
- package/cjs/errorCollection.js +3 -1
- package/esm/dataMap.js +2 -0
- package/esm/errorCollection.js +3 -1
- package/package.json +2 -2
- package/src/dataMap.js +3 -1
- package/src/errorCollection.js +3 -1
package/cjs/dataMap.js
CHANGED
package/cjs/errorCollection.js
CHANGED
|
@@ -123,7 +123,9 @@ function trackNetworkError(configuration, errorObservable) {
|
|
|
123
123
|
resource: {
|
|
124
124
|
method: request.method,
|
|
125
125
|
statusCode: request.status,
|
|
126
|
-
url: request.url
|
|
126
|
+
url: request.url,
|
|
127
|
+
traceId: request.traceId,
|
|
128
|
+
spanId: request.spanId
|
|
127
129
|
},
|
|
128
130
|
source: _errorTools.ErrorSource.NETWORK,
|
|
129
131
|
stack: truncateResponse(request.response, configuration) || 'Failed to load',
|
package/esm/dataMap.js
CHANGED
package/esm/errorCollection.js
CHANGED
|
@@ -97,7 +97,9 @@ export function trackNetworkError(configuration, errorObservable) {
|
|
|
97
97
|
resource: {
|
|
98
98
|
method: request.method,
|
|
99
99
|
statusCode: request.status,
|
|
100
|
-
url: request.url
|
|
100
|
+
url: request.url,
|
|
101
|
+
traceId: request.traceId,
|
|
102
|
+
spanId: request.spanId
|
|
101
103
|
},
|
|
102
104
|
source: ErrorSource.NETWORK,
|
|
103
105
|
stack: truncateResponse(request.response, configuration) || 'Failed to load',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cloudcare/browser-core",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.25",
|
|
4
4
|
"main": "cjs/index.js",
|
|
5
5
|
"module": "esm/index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
"author": "dataflux",
|
|
21
21
|
"license": "MIT",
|
|
22
22
|
"description": "DataFlux RUM Web 端数据指标监控",
|
|
23
|
-
"gitHead": "
|
|
23
|
+
"gitHead": "71b933526e868e57c1ebf943f337bda9a19fe7ed"
|
|
24
24
|
}
|
package/src/dataMap.js
CHANGED
|
@@ -92,6 +92,8 @@ export var dataMap = {
|
|
|
92
92
|
error: {
|
|
93
93
|
type: RumEventType.ERROR,
|
|
94
94
|
tags: {
|
|
95
|
+
trace_id: '_dd.trace_id',
|
|
96
|
+
span_id: '_dd.span_id',
|
|
95
97
|
error_source: 'error.source',
|
|
96
98
|
error_type: 'error.type',
|
|
97
99
|
error_handling: 'error.handling',
|
|
@@ -101,7 +103,7 @@ export var dataMap = {
|
|
|
101
103
|
resource_url_path_group: 'error.resource.url_path_group',
|
|
102
104
|
resource_status: 'error.resource.status',
|
|
103
105
|
resource_status_group: 'error.resource.status_group',
|
|
104
|
-
resource_method: 'error.resource.method'
|
|
106
|
+
resource_method: 'error.resource.method',
|
|
105
107
|
},
|
|
106
108
|
fields: {
|
|
107
109
|
error_message: ['string', 'error.message'],
|
package/src/errorCollection.js
CHANGED
|
@@ -121,7 +121,9 @@ export function trackNetworkError(configuration, errorObservable) {
|
|
|
121
121
|
resource: {
|
|
122
122
|
method: request.method,
|
|
123
123
|
statusCode: request.status,
|
|
124
|
-
url: request.url
|
|
124
|
+
url: request.url,
|
|
125
|
+
traceId: request.traceId,
|
|
126
|
+
spanId: request.spanId,
|
|
125
127
|
},
|
|
126
128
|
source: ErrorSource.NETWORK,
|
|
127
129
|
stack:
|