@cloudcare/browser-core 1.0.22 → 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 +3 -1
- package/cjs/errorCollection.js +3 -1
- package/esm/dataMap.js +3 -1
- package/esm/errorCollection.js +3 -1
- package/package.json +2 -2
- package/src/dataMap.js +4 -2
- package/src/errorCollection.js +3 -1
package/cjs/dataMap.js
CHANGED
|
@@ -88,8 +88,8 @@ var dataMap = {
|
|
|
88
88
|
resource_method: 'resource.method'
|
|
89
89
|
},
|
|
90
90
|
fields: {
|
|
91
|
-
resource_size: 'resouce.size',
|
|
92
91
|
duration: 'resource.duration',
|
|
92
|
+
resource_size: 'resource.size',
|
|
93
93
|
resource_dns: 'resource.dns',
|
|
94
94
|
resource_tcp: 'resource.tcp',
|
|
95
95
|
resource_ssl: 'resource.ssl',
|
|
@@ -101,6 +101,8 @@ var dataMap = {
|
|
|
101
101
|
error: {
|
|
102
102
|
type: _enums.RumEventType.ERROR,
|
|
103
103
|
tags: {
|
|
104
|
+
trace_id: '_dd.trace_id',
|
|
105
|
+
span_id: '_dd.span_id',
|
|
104
106
|
error_source: 'error.source',
|
|
105
107
|
error_type: 'error.type',
|
|
106
108
|
error_handling: 'error.handling',
|
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
|
@@ -79,8 +79,8 @@ export var dataMap = {
|
|
|
79
79
|
resource_method: 'resource.method'
|
|
80
80
|
},
|
|
81
81
|
fields: {
|
|
82
|
-
resource_size: 'resouce.size',
|
|
83
82
|
duration: 'resource.duration',
|
|
83
|
+
resource_size: 'resource.size',
|
|
84
84
|
resource_dns: 'resource.dns',
|
|
85
85
|
resource_tcp: 'resource.tcp',
|
|
86
86
|
resource_ssl: 'resource.ssl',
|
|
@@ -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',
|
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
|
@@ -79,8 +79,8 @@ export var dataMap = {
|
|
|
79
79
|
resource_method: 'resource.method'
|
|
80
80
|
},
|
|
81
81
|
fields: {
|
|
82
|
-
resource_size: 'resouce.size',
|
|
83
82
|
duration: 'resource.duration',
|
|
83
|
+
resource_size: 'resource.size',
|
|
84
84
|
resource_dns: 'resource.dns',
|
|
85
85
|
resource_tcp: 'resource.tcp',
|
|
86
86
|
resource_ssl: 'resource.ssl',
|
|
@@ -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:
|