@sentry-internal/tracing
Advanced tools
Comparing version 7.50.0 to 7.51.0
@@ -393,9 +393,9 @@ Object.defineProperty(exports, '__esModule', { value: true }); | ||
if ('transferSize' in entry) { | ||
data['Transfer Size'] = entry.transferSize; | ||
data['http.response_transfer_size'] = entry.transferSize; | ||
} | ||
if ('encodedBodySize' in entry) { | ||
data['Encoded Body Size'] = entry.encodedBodySize; | ||
data['http.response_content_length'] = entry.encodedBodySize; | ||
} | ||
if ('decodedBodySize' in entry) { | ||
data['Decoded Body Size'] = entry.decodedBodySize; | ||
data['http.decoded_response_content_length'] = entry.decodedBodySize; | ||
} | ||
@@ -402,0 +402,0 @@ if ('renderBlockingStatus' in entry) { |
@@ -96,2 +96,5 @@ Object.defineProperty(exports, '__esModule', { value: true }); | ||
const contentLength = | ||
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access | ||
handlerData.response && handlerData.response.headers && handlerData.response.headers.get('content-length'); | ||
const currentScope = core.getCurrentHub().getScope(); | ||
@@ -102,8 +105,11 @@ const currentSpan = currentScope && currentScope.getSpan(); | ||
if (currentSpan && activeTransaction) { | ||
const { method, url } = handlerData.fetchData; | ||
const span = currentSpan.startChild({ | ||
data: { | ||
...handlerData.fetchData, | ||
url, | ||
type: 'fetch', | ||
...(contentLength ? { 'http.response_content_length': contentLength } : {}), | ||
'http.method': method, | ||
}, | ||
description: `${handlerData.fetchData.method} ${handlerData.fetchData.url}`, | ||
description: `${method} ${url}`, | ||
op: 'http.client', | ||
@@ -242,3 +248,3 @@ }); | ||
type: 'xhr', | ||
method: sentryXhrData.method, | ||
'http.method': sentryXhrData.method, | ||
url: sentryXhrData.url, | ||
@@ -245,0 +251,0 @@ }, |
@@ -391,9 +391,9 @@ import { getActiveTransaction } from '@sentry/core'; | ||
if ('transferSize' in entry) { | ||
data['Transfer Size'] = entry.transferSize; | ||
data['http.response_transfer_size'] = entry.transferSize; | ||
} | ||
if ('encodedBodySize' in entry) { | ||
data['Encoded Body Size'] = entry.encodedBodySize; | ||
data['http.response_content_length'] = entry.encodedBodySize; | ||
} | ||
if ('decodedBodySize' in entry) { | ||
data['Decoded Body Size'] = entry.decodedBodySize; | ||
data['http.decoded_response_content_length'] = entry.decodedBodySize; | ||
} | ||
@@ -400,0 +400,0 @@ if ('renderBlockingStatus' in entry) { |
@@ -94,2 +94,5 @@ import { hasTracingEnabled, getCurrentHub } from '@sentry/core'; | ||
const contentLength = | ||
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access | ||
handlerData.response && handlerData.response.headers && handlerData.response.headers.get('content-length'); | ||
const currentScope = getCurrentHub().getScope(); | ||
@@ -100,8 +103,11 @@ const currentSpan = currentScope && currentScope.getSpan(); | ||
if (currentSpan && activeTransaction) { | ||
const { method, url } = handlerData.fetchData; | ||
const span = currentSpan.startChild({ | ||
data: { | ||
...handlerData.fetchData, | ||
url, | ||
type: 'fetch', | ||
...(contentLength ? { 'http.response_content_length': contentLength } : {}), | ||
'http.method': method, | ||
}, | ||
description: `${handlerData.fetchData.method} ${handlerData.fetchData.url}`, | ||
description: `${method} ${url}`, | ||
op: 'http.client', | ||
@@ -240,3 +246,3 @@ }); | ||
type: 'xhr', | ||
method: sentryXhrData.method, | ||
'http.method': sentryXhrData.method, | ||
url: sentryXhrData.url, | ||
@@ -243,0 +249,0 @@ }, |
{ | ||
"name": "@sentry-internal/tracing", | ||
"version": "7.50.0", | ||
"version": "7.51.0", | ||
"description": "Sentry Internal Tracing Package", | ||
@@ -19,5 +19,5 @@ "repository": "git://github.com/getsentry/sentry-javascript.git", | ||
"dependencies": { | ||
"@sentry/core": "7.50.0", | ||
"@sentry/types": "7.50.0", | ||
"@sentry/utils": "7.50.0", | ||
"@sentry/core": "7.51.0", | ||
"@sentry/types": "7.51.0", | ||
"@sentry/utils": "7.51.0", | ||
"tslib": "^1.9.3" | ||
@@ -24,0 +24,0 @@ }, |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Unidentified License
License(Experimental) Something that seems like a license was found, but its contents could not be matched with a known license.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Unidentified License
License(Experimental) Something that seems like a license was found, but its contents could not be matched with a known license.
Found 1 instance in 1 package
836226
6189
+ Added@sentry/core@7.51.0(transitive)
+ Added@sentry/types@7.51.0(transitive)
+ Added@sentry/utils@7.51.0(transitive)
- Removed@sentry/core@7.50.0(transitive)
- Removed@sentry/types@7.50.0(transitive)
- Removed@sentry/utils@7.50.0(transitive)
Updated@sentry/core@7.51.0
Updated@sentry/types@7.51.0
Updated@sentry/utils@7.51.0