Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@sentry/tracing

Package Overview
Dependencies
Maintainers
13
Versions
317
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sentry/tracing - npm Package Compare versions

Comparing version 5.27.4 to 5.27.5

6

dist/browser/browsertracing.js

@@ -13,3 +13,3 @@ Object.defineProperty(exports, "__esModule", { value: true });

exports.DEFAULT_MAX_TRANSACTION_DURATION_SECONDS = 600;
var DEFAULT_BROWSER_TRACING_OPTIONS = tslib_1.__assign({ idleTimeout: idletransaction_1.DEFAULT_IDLE_TIMEOUT, markBackgroundTransactions: true, maxTransactionDuration: exports.DEFAULT_MAX_TRANSACTION_DURATION_SECONDS, routingInstrumentation: router_1.defaultRoutingInstrumentation, startTransactionOnLocationChange: true, startTransactionOnPageLoad: true }, request_1.defaultRequestInstrumentionOptions);
var DEFAULT_BROWSER_TRACING_OPTIONS = tslib_1.__assign({ idleTimeout: idletransaction_1.DEFAULT_IDLE_TIMEOUT, markBackgroundTransactions: true, maxTransactionDuration: exports.DEFAULT_MAX_TRANSACTION_DURATION_SECONDS, routingInstrumentation: router_1.defaultRoutingInstrumentation, startTransactionOnLocationChange: true, startTransactionOnPageLoad: true }, request_1.defaultRequestInstrumentationOptions);
/**

@@ -30,3 +30,3 @@ * The Browser Tracing integration automatically instruments browser pageload/navigation

this._emitOptionsWarning = false;
var tracingOrigins = request_1.defaultRequestInstrumentionOptions.tracingOrigins;
var tracingOrigins = request_1.defaultRequestInstrumentationOptions.tracingOrigins;
// NOTE: Logger doesn't work in constructors, as it's initialized after integrations instances

@@ -52,3 +52,3 @@ if (_options &&

utils_1.logger.warn('[Tracing] You need to define `tracingOrigins` in the options. Set an array of urls or patterns to trace.');
utils_1.logger.warn("[Tracing] We added a reasonable default for you: " + request_1.defaultRequestInstrumentionOptions.tracingOrigins);
utils_1.logger.warn("[Tracing] We added a reasonable default for you: " + request_1.defaultRequestInstrumentationOptions.tracingOrigins);
}

@@ -55,0 +55,0 @@ // eslint-disable-next-line @typescript-eslint/unbound-method

@@ -60,3 +60,3 @@ import { Span } from '../span';

}
export declare const defaultRequestInstrumentionOptions: RequestInstrumentationOptions;
export declare const defaultRequestInstrumentationOptions: RequestInstrumentationOptions;
/** Registers span creators for xhr and fetch requests */

@@ -63,0 +63,0 @@ export declare function registerRequestInstrumentation(_options?: Partial<RequestInstrumentationOptions>): void;

@@ -7,3 +7,3 @@ Object.defineProperty(exports, "__esModule", { value: true });

exports.DEFAULT_TRACING_ORIGINS = ['localhost', /^\//];
exports.defaultRequestInstrumentionOptions = {
exports.defaultRequestInstrumentationOptions = {
traceFetch: true,

@@ -16,3 +16,3 @@ traceXHR: true,

// eslint-disable-next-line @typescript-eslint/unbound-method
var _a = tslib_1.__assign(tslib_1.__assign({}, exports.defaultRequestInstrumentionOptions), _options), traceFetch = _a.traceFetch, traceXHR = _a.traceXHR, tracingOrigins = _a.tracingOrigins, shouldCreateSpanForRequest = _a.shouldCreateSpanForRequest;
var _a = tslib_1.__assign(tslib_1.__assign({}, exports.defaultRequestInstrumentationOptions), _options), traceFetch = _a.traceFetch, traceXHR = _a.traceXHR, tracingOrigins = _a.tracingOrigins, shouldCreateSpanForRequest = _a.shouldCreateSpanForRequest;
// We should cache url -> decision so that we don't have to compute

@@ -19,0 +19,0 @@ // regexp everytime we create a request.

@@ -9,6 +9,6 @@ import { __assign } from "tslib";

import { MetricsInstrumentation } from './metrics';
import { defaultRequestInstrumentionOptions, registerRequestInstrumentation, } from './request';
import { defaultRequestInstrumentationOptions, registerRequestInstrumentation, } from './request';
import { defaultRoutingInstrumentation } from './router';
export var DEFAULT_MAX_TRANSACTION_DURATION_SECONDS = 600;
var DEFAULT_BROWSER_TRACING_OPTIONS = __assign({ idleTimeout: DEFAULT_IDLE_TIMEOUT, markBackgroundTransactions: true, maxTransactionDuration: DEFAULT_MAX_TRANSACTION_DURATION_SECONDS, routingInstrumentation: defaultRoutingInstrumentation, startTransactionOnLocationChange: true, startTransactionOnPageLoad: true }, defaultRequestInstrumentionOptions);
var DEFAULT_BROWSER_TRACING_OPTIONS = __assign({ idleTimeout: DEFAULT_IDLE_TIMEOUT, markBackgroundTransactions: true, maxTransactionDuration: DEFAULT_MAX_TRANSACTION_DURATION_SECONDS, routingInstrumentation: defaultRoutingInstrumentation, startTransactionOnLocationChange: true, startTransactionOnPageLoad: true }, defaultRequestInstrumentationOptions);
/**

@@ -29,3 +29,3 @@ * The Browser Tracing integration automatically instruments browser pageload/navigation

this._emitOptionsWarning = false;
var tracingOrigins = defaultRequestInstrumentionOptions.tracingOrigins;
var tracingOrigins = defaultRequestInstrumentationOptions.tracingOrigins;
// NOTE: Logger doesn't work in constructors, as it's initialized after integrations instances

@@ -51,3 +51,3 @@ if (_options &&

logger.warn('[Tracing] You need to define `tracingOrigins` in the options. Set an array of urls or patterns to trace.');
logger.warn("[Tracing] We added a reasonable default for you: " + defaultRequestInstrumentionOptions.tracingOrigins);
logger.warn("[Tracing] We added a reasonable default for you: " + defaultRequestInstrumentationOptions.tracingOrigins);
}

@@ -54,0 +54,0 @@ // eslint-disable-next-line @typescript-eslint/unbound-method

@@ -60,3 +60,3 @@ import { Span } from '../span';

}
export declare const defaultRequestInstrumentionOptions: RequestInstrumentationOptions;
export declare const defaultRequestInstrumentationOptions: RequestInstrumentationOptions;
/** Registers span creators for xhr and fetch requests */

@@ -63,0 +63,0 @@ export declare function registerRequestInstrumentation(_options?: Partial<RequestInstrumentationOptions>): void;

@@ -6,3 +6,3 @@ import { __assign, __read, __spread } from "tslib";

export var DEFAULT_TRACING_ORIGINS = ['localhost', /^\//];
export var defaultRequestInstrumentionOptions = {
export var defaultRequestInstrumentationOptions = {
traceFetch: true,

@@ -15,3 +15,3 @@ traceXHR: true,

// eslint-disable-next-line @typescript-eslint/unbound-method
var _a = __assign(__assign({}, defaultRequestInstrumentionOptions), _options), traceFetch = _a.traceFetch, traceXHR = _a.traceXHR, tracingOrigins = _a.tracingOrigins, shouldCreateSpanForRequest = _a.shouldCreateSpanForRequest;
var _a = __assign(__assign({}, defaultRequestInstrumentationOptions), _options), traceFetch = _a.traceFetch, traceXHR = _a.traceXHR, tracingOrigins = _a.tracingOrigins, shouldCreateSpanForRequest = _a.shouldCreateSpanForRequest;
// We should cache url -> decision so that we don't have to compute

@@ -18,0 +18,0 @@ // regexp everytime we create a request.

{
"name": "@sentry/tracing",
"version": "5.27.4",
"version": "5.27.5",
"description": "Extensions for Sentry AM",

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

"dependencies": {
"@sentry/hub": "5.27.4",
"@sentry/minimal": "5.27.4",
"@sentry/types": "5.27.4",
"@sentry/utils": "5.27.4",
"@sentry/hub": "5.27.5",
"@sentry/minimal": "5.27.5",
"@sentry/types": "5.27.5",
"@sentry/utils": "5.27.5",
"tslib": "^1.9.3"
},
"devDependencies": {
"@sentry-internal/eslint-config-sdk": "5.27.4",
"@sentry/browser": "5.27.4",
"@sentry-internal/eslint-config-sdk": "5.27.5",
"@sentry/browser": "5.27.5",
"@types/express": "^4.17.1",

@@ -30,0 +30,0 @@ "@types/jsdom": "^16.2.3",

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

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

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

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc