Socket
Socket
Sign inDemoInstall

@sentry-internal/tracing

Package Overview
Dependencies
Maintainers
10
Versions
121
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sentry-internal/tracing - npm Package Compare versions

Comparing version 7.52.1 to 7.53.0

13

cjs/browser/request.js

@@ -85,2 +85,11 @@ Object.defineProperty(exports, '__esModule', { value: true });

span.setHttpStatus(handlerData.response.status);
const contentLength =
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
handlerData.response && handlerData.response.headers && handlerData.response.headers.get('content-length');
const contentLengthNum = parseInt(contentLength);
if (contentLengthNum > 0) {
span.setData('http.response_content_length', contentLengthNum);
}
} else if (handlerData.error) {

@@ -97,5 +106,2 @@ span.setStatus('internal_error');

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();

@@ -111,3 +117,2 @@ const currentSpan = currentScope && currentScope.getSpan();

type: 'fetch',
...(contentLength ? { 'http.response_content_length': contentLength } : {}),
'http.method': method,

@@ -114,0 +119,0 @@ },

@@ -83,2 +83,11 @@ import { hasTracingEnabled, getCurrentHub } from '@sentry/core';

span.setHttpStatus(handlerData.response.status);
const contentLength =
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
handlerData.response && handlerData.response.headers && handlerData.response.headers.get('content-length');
const contentLengthNum = parseInt(contentLength);
if (contentLengthNum > 0) {
span.setData('http.response_content_length', contentLengthNum);
}
} else if (handlerData.error) {

@@ -95,5 +104,2 @@ span.setStatus('internal_error');

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();

@@ -109,3 +115,2 @@ const currentSpan = currentScope && currentScope.getSpan();

type: 'fetch',
...(contentLength ? { 'http.response_content_length': contentLength } : {}),
'http.method': method,

@@ -112,0 +117,0 @@ },

{
"name": "@sentry-internal/tracing",
"version": "7.52.1",
"version": "7.53.0",
"description": "Sentry Internal Tracing Package",

@@ -19,5 +19,5 @@ "repository": "git://github.com/getsentry/sentry-javascript.git",

"dependencies": {
"@sentry/core": "7.52.1",
"@sentry/types": "7.52.1",
"@sentry/utils": "7.52.1",
"@sentry/core": "7.53.0",
"@sentry/types": "7.53.0",
"@sentry/utils": "7.53.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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc