Socket
Socket
Sign inDemoInstall

@sentry-internal/tracing

Package Overview
Dependencies
Maintainers
9
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 8.0.0-alpha.2 to 8.0.0-alpha.3

esm/package.json

23

package.json
{
"name": "@sentry-internal/tracing",
"version": "8.0.0-alpha.2",
"version": "8.0.0-alpha.3",
"description": "Sentry Internal Tracing Package",

@@ -10,3 +10,3 @@ "repository": "git://github.com/getsentry/sentry-javascript.git",

"engines": {
"node": ">=14.8"
"node": ">=14.18"
},

@@ -22,2 +22,15 @@ "files": [

"types": "types/index.d.ts",
"exports": {
"./package.json": "./package.json",
".": {
"import": {
"types": "./types/index.d.ts",
"default": "./esm/index.js"
},
"require": {
"types": "./types/index.d.ts",
"default": "./cjs/index.js"
}
}
},
"typesVersions": {

@@ -34,5 +47,5 @@ "<4.9": {

"dependencies": {
"@sentry/core": "8.0.0-alpha.2",
"@sentry/types": "8.0.0-alpha.2",
"@sentry/utils": "8.0.0-alpha.2"
"@sentry/core": "8.0.0-alpha.3",
"@sentry/types": "8.0.0-alpha.3",
"@sentry/utils": "8.0.0-alpha.3"
},

@@ -39,0 +52,0 @@ "devDependencies": {

@@ -11,2 +11,3 @@ <p align="center">

For v8, @sentry/tracing will be dropped and the code in this package will be split into @sentry/browser and @sentry/node.
For v8, @sentry/tracing will be dropped and the code in this package will be split into @sentry/browser and
@sentry/node.

@@ -7,28 +7,22 @@ import { Client, StartSpanOptions } from '@sentry/types';

/**
* The time to wait in ms until the transaction will be finished during an idle state. An idle state is defined
* by a moment where there are no in-progress spans.
* The time that has to pass without any span being created.
* If this time is exceeded, the idle span will finish.
*
* The transaction will use the end timestamp of the last finished span as the endtime for the transaction.
* If there are still active spans when this the `idleTimeout` is set, the `idleTimeout` will get reset.
* Time is in ms.
*
* Default: 1000
* Default: 1000 (ms)
*/
idleTimeout: number;
/**
* The max duration for a transaction. If a transaction duration hits the `finalTimeout` value, it
* will be finished.
* Time is in ms.
* The max. time an idle span may run.
* If this time is exceeded, the idle span will finish no matter what.
*
* Default: 30000
* Default: 30000 (ms)
*/
finalTimeout: number;
/**
* The heartbeat interval. If no new spans are started or open spans are finished within 3 heartbeats,
* the transaction will be finished.
* Time is in ms.
The max. time an idle span may run.
* If this time is exceeded, the idle span will finish no matter what.
*
* Default: 5000
* Default: 15000 (ms)
*/
heartbeatInterval: number;
childSpanTimeout: number;
/**

@@ -117,3 +111,3 @@ * If a span should be created on page load.

* The integration can be configured with a variety of options, and can be extended to use
* any routing library. This integration uses {@see IdleTransaction} to create transactions.
* any routing library.
*

@@ -130,4 +124,10 @@ * We explicitly export the proper type here, as this has to be extended in some cases.

* This will only do something if a browser tracing integration integration has been setup.
*
* If you provide a custom `traceOptions` object, it will be used to continue the trace
* instead of the default behavior, which is to look it up on the <meta> tags.
*/
export declare function startBrowserTracingPageLoadSpan(client: Client, spanOptions: StartSpanOptions): Span | undefined;
export declare function startBrowserTracingPageLoadSpan(client: Client, spanOptions: StartSpanOptions, traceOptions?: {
sentryTrace?: string | undefined;
baggage?: string | undefined;
}): Span | undefined;
/**

@@ -134,0 +134,0 @@ * Manually start a navigation span.

export * from '../exports';
export { RequestInstrumentationOptions } from './request';
export { BROWSER_TRACING_INTEGRATION_ID } from './browsertracing';
export { browserTracingIntegration, startBrowserTracingNavigationSpan, startBrowserTracingPageLoadSpan, } from './browserTracingIntegration';
export { BROWSER_TRACING_INTEGRATION_ID, browserTracingIntegration, startBrowserTracingNavigationSpan, startBrowserTracingPageLoadSpan, } from './browserTracingIntegration';
export { instrumentOutgoingRequests, defaultRequestInstrumentationOptions } from './request';
export { addPerformanceInstrumentationHandler, addClsInstrumentationHandler, addFidInstrumentationHandler, addLcpInstrumentationHandler, } from './instrument';
//# sourceMappingURL=index.d.ts.map

@@ -1,3 +0,2 @@

import { Transaction } from '@sentry/core';
import { Measurements } from '@sentry/types';
import { Measurements, Span } from '@sentry/types';
/**

@@ -18,6 +17,6 @@ * Start tracking web vitals.

export declare function startTrackingInteractions(): void;
/** Add performance related spans to a transaction */
export declare function addPerformanceEntries(transaction: Transaction): void;
/** Add performance related spans to a span */
export declare function addPerformanceEntries(span: Span): void;
/** Create measure related spans */
export declare function _addMeasureSpans(transaction: Transaction, entry: Record<string, any>, startTime: number, duration: number, timeOrigin: number): number;
export declare function _addMeasureSpans(span: Span, entry: Record<string, any>, startTime: number, duration: number, timeOrigin: number): number;
export interface ResourceEntry extends Record<string, unknown> {

@@ -31,3 +30,3 @@ initiatorType?: string;

/** Create resource-related spans */
export declare function _addResourceSpans(transaction: Transaction, entry: ResourceEntry, resourceUrl: string, startTime: number, duration: number, timeOrigin: number): void;
export declare function _addResourceSpans(span: Span, entry: ResourceEntry, resourceUrl: string, startTime: number, duration: number, timeOrigin: number): void;
/**

@@ -34,0 +33,0 @@ * Add ttfb information to measurements

@@ -1,3 +0,2 @@

import { Transaction } from '@sentry/core';
import { Span, SpanContext } from '@sentry/types';
import { Span, SpanTimeInput, StartSpanOptions } from '@sentry/types';
/**

@@ -15,3 +14,3 @@ * Checks if a given value is a valid measurement value.

*/
export declare function _startChild(transaction: Transaction, { startTimestamp, ...ctx }: SpanContext): Span;
export declare function startAndEndSpan(parentSpan: Span, startTimeInSeconds: number, endTime: SpanTimeInput, { ...ctx }: StartSpanOptions): Span | undefined;
//# sourceMappingURL=utils.d.ts.map

@@ -1,3 +0,3 @@

export { getActiveTransaction, hasTracingEnabled, IdleTransaction, startIdleTransaction, Transaction, } from '@sentry/core';
export { getActiveTransaction, hasTracingEnabled, Transaction, } from '@sentry/core';
export { stripUrlQueryAndFragment, TRACEPARENT_REGEXP } from '@sentry/utils';
//# sourceMappingURL=index.d.ts.map

@@ -5,4 +5,3 @@ export * from './exports';

export { browserTracingIntegration, startBrowserTracingNavigationSpan, startBrowserTracingPageLoadSpan, BROWSER_TRACING_INTEGRATION_ID, instrumentOutgoingRequests, defaultRequestInstrumentationOptions, addPerformanceInstrumentationHandler, addClsInstrumentationHandler, addFidInstrumentationHandler, addLcpInstrumentationHandler, } from './browser';
export { addTracingHeadersToFetchRequest, instrumentFetchRequest } from './common/fetch';
export { RequestInstrumentationOptions } from './browser';
//# sourceMappingURL=index.d.ts.map

@@ -1,3 +0,1 @@

import { Hub } from '@sentry/core';
import { EventProcessor } from '@sentry/types';
import { LazyLoadedIntegration } from './lazy';

@@ -48,5 +46,5 @@ interface ApolloOptions {

*/
setupOnce(_: (callback: EventProcessor) => void, getCurrentHub: () => Hub): void;
setupOnce(): void;
}
export {};
//# sourceMappingURL=apollo.d.ts.map

@@ -1,3 +0,1 @@

import { Hub } from '@sentry/core';
import { EventProcessor } from '@sentry/types';
import { LazyLoadedIntegration } from './lazy';

@@ -24,5 +22,5 @@ type GraphQLModule = {

*/
setupOnce(_: (callback: EventProcessor) => void, getCurrentHub: () => Hub): void;
setupOnce(): void;
}
export {};
//# sourceMappingURL=graphql.d.ts.map

@@ -1,2 +0,1 @@

import { Hub } from '@sentry/core';
import { EventProcessor } from '@sentry/types';

@@ -78,3 +77,3 @@ import { LazyLoadedIntegration } from './lazy';

*/
setupOnce(_: (callback: EventProcessor) => void, getCurrentHub: () => Hub): void;
setupOnce(_: (callback: EventProcessor) => void): void;
/**

@@ -81,0 +80,0 @@ * Patches original collection methods

@@ -1,3 +0,1 @@

import { Hub } from '@sentry/core';
import { EventProcessor } from '@sentry/types';
import { LazyLoadedIntegration } from './lazy';

@@ -27,5 +25,5 @@ interface MysqlConnection {

*/
setupOnce(_: (callback: EventProcessor) => void, getCurrentHub: () => Hub): void;
setupOnce(): void;
}
export {};
//# sourceMappingURL=mysql.d.ts.map

@@ -1,3 +0,1 @@

import { Hub } from '@sentry/core';
import { EventProcessor } from '@sentry/types';
import { LazyLoadedIntegration } from './lazy';

@@ -51,5 +49,5 @@ type PgClientQuery = (config: unknown, values?: unknown, callback?: (err: unknown, result: unknown) => void) => void | Promise<unknown>;

*/
setupOnce(_: (callback: EventProcessor) => void, getCurrentHub: () => Hub): void;
setupOnce(): void;
}
export {};
//# sourceMappingURL=postgres.d.ts.map

@@ -7,28 +7,22 @@ import type { Client, StartSpanOptions } from '@sentry/types';

/**
* The time to wait in ms until the transaction will be finished during an idle state. An idle state is defined
* by a moment where there are no in-progress spans.
* The time that has to pass without any span being created.
* If this time is exceeded, the idle span will finish.
*
* The transaction will use the end timestamp of the last finished span as the endtime for the transaction.
* If there are still active spans when this the `idleTimeout` is set, the `idleTimeout` will get reset.
* Time is in ms.
*
* Default: 1000
* Default: 1000 (ms)
*/
idleTimeout: number;
/**
* The max duration for a transaction. If a transaction duration hits the `finalTimeout` value, it
* will be finished.
* Time is in ms.
* The max. time an idle span may run.
* If this time is exceeded, the idle span will finish no matter what.
*
* Default: 30000
* Default: 30000 (ms)
*/
finalTimeout: number;
/**
* The heartbeat interval. If no new spans are started or open spans are finished within 3 heartbeats,
* the transaction will be finished.
* Time is in ms.
The max. time an idle span may run.
* If this time is exceeded, the idle span will finish no matter what.
*
* Default: 5000
* Default: 15000 (ms)
*/
heartbeatInterval: number;
childSpanTimeout: number;
/**

@@ -117,3 +111,3 @@ * If a span should be created on page load.

* The integration can be configured with a variety of options, and can be extended to use
* any routing library. This integration uses {@see IdleTransaction} to create transactions.
* any routing library.
*

@@ -130,4 +124,10 @@ * We explicitly export the proper type here, as this has to be extended in some cases.

* This will only do something if a browser tracing integration integration has been setup.
*
* If you provide a custom `traceOptions` object, it will be used to continue the trace
* instead of the default behavior, which is to look it up on the <meta> tags.
*/
export declare function startBrowserTracingPageLoadSpan(client: Client, spanOptions: StartSpanOptions): Span | undefined;
export declare function startBrowserTracingPageLoadSpan(client: Client, spanOptions: StartSpanOptions, traceOptions?: {
sentryTrace?: string | undefined;
baggage?: string | undefined;
}): Span | undefined;
/**

@@ -134,0 +134,0 @@ * Manually start a navigation span.

export * from '../exports';
export type { RequestInstrumentationOptions } from './request';
export { BROWSER_TRACING_INTEGRATION_ID } from './browsertracing';
export { browserTracingIntegration, startBrowserTracingNavigationSpan, startBrowserTracingPageLoadSpan, } from './browserTracingIntegration';
export { BROWSER_TRACING_INTEGRATION_ID, browserTracingIntegration, startBrowserTracingNavigationSpan, startBrowserTracingPageLoadSpan, } from './browserTracingIntegration';
export { instrumentOutgoingRequests, defaultRequestInstrumentationOptions } from './request';
export { addPerformanceInstrumentationHandler, addClsInstrumentationHandler, addFidInstrumentationHandler, addLcpInstrumentationHandler, } from './instrument';
//# sourceMappingURL=index.d.ts.map

@@ -1,3 +0,2 @@

import type { Transaction } from '@sentry/core';
import type { Measurements } from '@sentry/types';
import type { Measurements, Span } from '@sentry/types';
/**

@@ -18,6 +17,6 @@ * Start tracking web vitals.

export declare function startTrackingInteractions(): void;
/** Add performance related spans to a transaction */
export declare function addPerformanceEntries(transaction: Transaction): void;
/** Add performance related spans to a span */
export declare function addPerformanceEntries(span: Span): void;
/** Create measure related spans */
export declare function _addMeasureSpans(transaction: Transaction, entry: Record<string, any>, startTime: number, duration: number, timeOrigin: number): number;
export declare function _addMeasureSpans(span: Span, entry: Record<string, any>, startTime: number, duration: number, timeOrigin: number): number;
export interface ResourceEntry extends Record<string, unknown> {

@@ -31,3 +30,3 @@ initiatorType?: string;

/** Create resource-related spans */
export declare function _addResourceSpans(transaction: Transaction, entry: ResourceEntry, resourceUrl: string, startTime: number, duration: number, timeOrigin: number): void;
export declare function _addResourceSpans(span: Span, entry: ResourceEntry, resourceUrl: string, startTime: number, duration: number, timeOrigin: number): void;
/**

@@ -34,0 +33,0 @@ * Add ttfb information to measurements

@@ -1,3 +0,2 @@

import type { Transaction } from '@sentry/core';
import type { Span, SpanContext } from '@sentry/types';
import type { Span, SpanTimeInput, StartSpanOptions } from '@sentry/types';
/**

@@ -15,3 +14,3 @@ * Checks if a given value is a valid measurement value.

*/
export declare function _startChild(transaction: Transaction, { startTimestamp, ...ctx }: SpanContext): Span;
export declare function startAndEndSpan(parentSpan: Span, startTimeInSeconds: number, endTime: SpanTimeInput, { ...ctx }: StartSpanOptions): Span | undefined;
//# sourceMappingURL=utils.d.ts.map

@@ -1,3 +0,3 @@

export { getActiveTransaction, hasTracingEnabled, IdleTransaction, startIdleTransaction, Transaction, } from '@sentry/core';
export { getActiveTransaction, hasTracingEnabled, Transaction, } from '@sentry/core';
export { stripUrlQueryAndFragment, TRACEPARENT_REGEXP } from '@sentry/utils';
//# sourceMappingURL=index.d.ts.map

@@ -5,4 +5,3 @@ export * from './exports';

export { browserTracingIntegration, startBrowserTracingNavigationSpan, startBrowserTracingPageLoadSpan, BROWSER_TRACING_INTEGRATION_ID, instrumentOutgoingRequests, defaultRequestInstrumentationOptions, addPerformanceInstrumentationHandler, addClsInstrumentationHandler, addFidInstrumentationHandler, addLcpInstrumentationHandler, } from './browser';
export { addTracingHeadersToFetchRequest, instrumentFetchRequest } from './common/fetch';
export type { RequestInstrumentationOptions } from './browser';
//# sourceMappingURL=index.d.ts.map

@@ -1,3 +0,1 @@

import type { Hub } from '@sentry/core';
import type { EventProcessor } from '@sentry/types';
import type { LazyLoadedIntegration } from './lazy';

@@ -48,5 +46,5 @@ interface ApolloOptions {

*/
setupOnce(_: (callback: EventProcessor) => void, getCurrentHub: () => Hub): void;
setupOnce(): void;
}
export {};
//# sourceMappingURL=apollo.d.ts.map

@@ -1,3 +0,1 @@

import type { Hub } from '@sentry/core';
import type { EventProcessor } from '@sentry/types';
import type { LazyLoadedIntegration } from './lazy';

@@ -24,5 +22,5 @@ type GraphQLModule = {

*/
setupOnce(_: (callback: EventProcessor) => void, getCurrentHub: () => Hub): void;
setupOnce(): void;
}
export {};
//# sourceMappingURL=graphql.d.ts.map

@@ -1,2 +0,1 @@

import type { Hub } from '@sentry/core';
import type { EventProcessor } from '@sentry/types';

@@ -45,3 +44,3 @@ import type { LazyLoadedIntegration } from './lazy';

*/
setupOnce(_: (callback: EventProcessor) => void, getCurrentHub: () => Hub): void;
setupOnce(_: (callback: EventProcessor) => void): void;
/**

@@ -48,0 +47,0 @@ * Patches original collection methods

@@ -1,3 +0,1 @@

import type { Hub } from '@sentry/core';
import type { EventProcessor } from '@sentry/types';
import type { LazyLoadedIntegration } from './lazy';

@@ -27,5 +25,5 @@ interface MysqlConnection {

*/
setupOnce(_: (callback: EventProcessor) => void, getCurrentHub: () => Hub): void;
setupOnce(): void;
}
export {};
//# sourceMappingURL=mysql.d.ts.map

@@ -1,3 +0,1 @@

import type { Hub } from '@sentry/core';
import type { EventProcessor } from '@sentry/types';
import type { LazyLoadedIntegration } from './lazy';

@@ -51,5 +49,5 @@ type PgClientQuery = (config: unknown, values?: unknown, callback?: (err: unknown, result: unknown) => void) => void | Promise<unknown>;

*/
setupOnce(_: (callback: EventProcessor) => void, getCurrentHub: () => Hub): void;
setupOnce(): void;
}
export {};
//# sourceMappingURL=postgres.d.ts.map

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

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