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.29.2 to 5.30.0

4

dist/browser/browsertracing.d.ts
import { Hub } from '@sentry/hub';
import { EventProcessor, Integration, Transaction as TransactionType, TransactionContext } from '@sentry/types';
import { EventProcessor, Integration, Transaction, TransactionContext } from '@sentry/types';
import { RequestInstrumentationOptions } from './request';

@@ -58,3 +58,3 @@ export declare const DEFAULT_MAX_TRANSACTION_DURATION_SECONDS = 600;

*/
routingInstrumentation<T extends TransactionType>(startTransaction: (context: TransactionContext) => T | undefined, startTransactionOnPageLoad?: boolean, startTransactionOnLocationChange?: boolean): void;
routingInstrumentation<T extends Transaction>(startTransaction: (context: TransactionContext) => T | undefined, startTransactionOnPageLoad?: boolean, startTransactionOnLocationChange?: boolean): void;
}

@@ -61,0 +61,0 @@ /**

export { BrowserTracing } from './browsertracing';
export { registerRequestInstrumentation, RequestInstrumentationOptions, defaultRequestInstrumentationOptions, } from './request';
//# sourceMappingURL=index.d.ts.map
Object.defineProperty(exports, "__esModule", { value: true });
var browsertracing_1 = require("./browsertracing");
exports.BrowserTracing = browsertracing_1.BrowserTracing;
var request_1 = require("./request");
exports.registerRequestInstrumentation = request_1.registerRequestInstrumentation;
exports.defaultRequestInstrumentationOptions = request_1.defaultRequestInstrumentationOptions;
//# sourceMappingURL=index.js.map

@@ -30,3 +30,3 @@ import { SpanContext } from '@sentry/types';

}
/** Create resource related spans */
/** Create resource-related spans */
export declare function addResourceSpans(transaction: Transaction, entry: ResourceEntry, resourceName: string, startTime: number, duration: number, timeOrigin: number): number | undefined;

@@ -33,0 +33,0 @@ /**

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

}
/** Create resource related spans */
/** Create resource-related spans */
function addResourceSpans(transaction, entry, resourceName, startTime, duration, timeOrigin) {

@@ -294,6 +294,6 @@ // we already instrument based on fetch and xhr, so we don't need to

_startChild(transaction, {
op: 'browser',
description: event,
startTimestamp: timeOrigin + utils_2.msToSec(start),
endTimestamp: timeOrigin + utils_2.msToSec(end),
op: 'browser',
startTimestamp: timeOrigin + utils_2.msToSec(start),
});

@@ -304,12 +304,12 @@ }

_startChild(transaction, {
op: 'browser',
description: 'request',
startTimestamp: timeOrigin + utils_2.msToSec(entry.requestStart),
endTimestamp: timeOrigin + utils_2.msToSec(entry.responseEnd),
op: 'browser',
startTimestamp: timeOrigin + utils_2.msToSec(entry.requestStart),
});
_startChild(transaction, {
op: 'browser',
description: 'response',
startTimestamp: timeOrigin + utils_2.msToSec(entry.responseStart),
endTimestamp: timeOrigin + utils_2.msToSec(entry.responseEnd),
op: 'browser',
startTimestamp: timeOrigin + utils_2.msToSec(entry.responseStart),
});

@@ -316,0 +316,0 @@ }

@@ -1,6 +0,6 @@

import { Transaction as TransactionType, TransactionContext } from '@sentry/types';
import { Transaction, TransactionContext } from '@sentry/types';
/**
* Default function implementing pageload and navigation transactions
*/
export declare function defaultRoutingInstrumentation<T extends TransactionType>(startTransaction: (context: TransactionContext) => T | undefined, startTransactionOnPageLoad?: boolean, startTransactionOnLocationChange?: boolean): void;
export declare function defaultRoutingInstrumentation<T extends Transaction>(startTransaction: (context: TransactionContext) => T | undefined, startTransactionOnPageLoad?: boolean, startTransactionOnLocationChange?: boolean): void;
//# sourceMappingURL=router.d.ts.map

@@ -14,5 +14,8 @@ import { BrowserTracing } from './browser';

export { Transaction } from './transaction';
export { registerRequestInstrumentation, RequestInstrumentationOptions, defaultRequestInstrumentationOptions, } from './browser';
export { SpanStatus } from './spanstatus';
export { IdleTransaction } from './idletransaction';
export { startIdleTransaction } from './hubextensions';
export { addExtensionMethods };
export { extractTraceparentData, getActiveTransaction, hasTracingEnabled, stripUrlQueryAndFragment, TRACEPARENT_REGEXP, } from './utils';
//# sourceMappingURL=index.d.ts.map

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

exports.Transaction = transaction_1.Transaction;
var browser_2 = require("./browser");
exports.registerRequestInstrumentation = browser_2.registerRequestInstrumentation;
exports.defaultRequestInstrumentationOptions = browser_2.defaultRequestInstrumentationOptions;
var spanstatus_1 = require("./spanstatus");
exports.SpanStatus = spanstatus_1.SpanStatus;
var idletransaction_1 = require("./idletransaction");
exports.IdleTransaction = idletransaction_1.IdleTransaction;
var hubextensions_2 = require("./hubextensions");
exports.startIdleTransaction = hubextensions_2.startIdleTransaction;
// We are patching the global object with our hub extension methods

@@ -17,0 +24,0 @@ hubextensions_1.addExtensionMethods();

import { Hub } from '@sentry/hub';
import { EventProcessor, Integration, Transaction as TransactionType, TransactionContext } from '@sentry/types';
import { EventProcessor, Integration, Transaction, TransactionContext } from '@sentry/types';
import { RequestInstrumentationOptions } from './request';

@@ -58,3 +58,3 @@ export declare const DEFAULT_MAX_TRANSACTION_DURATION_SECONDS = 600;

*/
routingInstrumentation<T extends TransactionType>(startTransaction: (context: TransactionContext) => T | undefined, startTransactionOnPageLoad?: boolean, startTransactionOnLocationChange?: boolean): void;
routingInstrumentation<T extends Transaction>(startTransaction: (context: TransactionContext) => T | undefined, startTransactionOnPageLoad?: boolean, startTransactionOnLocationChange?: boolean): void;
}

@@ -61,0 +61,0 @@ /**

export { BrowserTracing } from './browsertracing';
export { registerRequestInstrumentation, RequestInstrumentationOptions, defaultRequestInstrumentationOptions, } from './request';
//# sourceMappingURL=index.d.ts.map
export { BrowserTracing } from './browsertracing';
export { registerRequestInstrumentation, defaultRequestInstrumentationOptions, } from './request';
//# sourceMappingURL=index.js.map

@@ -30,3 +30,3 @@ import { SpanContext } from '@sentry/types';

}
/** Create resource related spans */
/** Create resource-related spans */
export declare function addResourceSpans(transaction: Transaction, entry: ResourceEntry, resourceName: string, startTime: number, duration: number, timeOrigin: number): number | undefined;

@@ -33,0 +33,0 @@ /**

@@ -255,3 +255,3 @@ import { __assign, __rest } from "tslib";

}
/** Create resource related spans */
/** Create resource-related spans */
export function addResourceSpans(transaction, entry, resourceName, startTime, duration, timeOrigin) {

@@ -292,6 +292,6 @@ // we already instrument based on fetch and xhr, so we don't need to

_startChild(transaction, {
op: 'browser',
description: event,
startTimestamp: timeOrigin + msToSec(start),
endTimestamp: timeOrigin + msToSec(end),
op: 'browser',
startTimestamp: timeOrigin + msToSec(start),
});

@@ -302,12 +302,12 @@ }

_startChild(transaction, {
op: 'browser',
description: 'request',
startTimestamp: timeOrigin + msToSec(entry.requestStart),
endTimestamp: timeOrigin + msToSec(entry.responseEnd),
op: 'browser',
startTimestamp: timeOrigin + msToSec(entry.requestStart),
});
_startChild(transaction, {
op: 'browser',
description: 'response',
startTimestamp: timeOrigin + msToSec(entry.responseStart),
endTimestamp: timeOrigin + msToSec(entry.responseEnd),
op: 'browser',
startTimestamp: timeOrigin + msToSec(entry.responseStart),
});

@@ -314,0 +314,0 @@ }

@@ -1,6 +0,6 @@

import { Transaction as TransactionType, TransactionContext } from '@sentry/types';
import { Transaction, TransactionContext } from '@sentry/types';
/**
* Default function implementing pageload and navigation transactions
*/
export declare function defaultRoutingInstrumentation<T extends TransactionType>(startTransaction: (context: TransactionContext) => T | undefined, startTransactionOnPageLoad?: boolean, startTransactionOnLocationChange?: boolean): void;
export declare function defaultRoutingInstrumentation<T extends Transaction>(startTransaction: (context: TransactionContext) => T | undefined, startTransactionOnPageLoad?: boolean, startTransactionOnLocationChange?: boolean): void;
//# sourceMappingURL=router.d.ts.map

@@ -14,5 +14,8 @@ import { BrowserTracing } from './browser';

export { Transaction } from './transaction';
export { registerRequestInstrumentation, RequestInstrumentationOptions, defaultRequestInstrumentationOptions, } from './browser';
export { SpanStatus } from './spanstatus';
export { IdleTransaction } from './idletransaction';
export { startIdleTransaction } from './hubextensions';
export { addExtensionMethods };
export { extractTraceparentData, getActiveTransaction, hasTracingEnabled, stripUrlQueryAndFragment, TRACEPARENT_REGEXP, } from './utils';
//# sourceMappingURL=index.d.ts.map

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

export { Transaction } from './transaction';
export { registerRequestInstrumentation, defaultRequestInstrumentationOptions, } from './browser';
export { SpanStatus } from './spanstatus';
export { IdleTransaction } from './idletransaction';
export { startIdleTransaction } from './hubextensions';
// We are patching the global object with our hub extension methods

@@ -12,0 +15,0 @@ addExtensionMethods();

{
"name": "@sentry/tracing",
"version": "5.29.2",
"version": "5.30.0",
"description": "Extensions for Sentry AM",

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

"dependencies": {
"@sentry/hub": "5.29.2",
"@sentry/minimal": "5.29.2",
"@sentry/types": "5.29.2",
"@sentry/utils": "5.29.2",
"@sentry/hub": "5.30.0",
"@sentry/minimal": "5.30.0",
"@sentry/types": "5.30.0",
"@sentry/utils": "5.30.0",
"tslib": "^1.9.3"
},
"devDependencies": {
"@sentry-internal/eslint-config-sdk": "5.29.2",
"@sentry/browser": "5.29.2",
"@sentry-internal/eslint-config-sdk": "5.30.0",
"@sentry/browser": "5.30.0",
"@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

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

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