@sentry/vercel-edge
Advanced tools
Comparing version
@@ -9,2 +9,3 @@ Object.defineProperty(exports, '__esModule', { value: true }); | ||
const INTEGRATIONS = { | ||
// eslint-disable-next-line deprecation/deprecation | ||
...core.Integrations, | ||
@@ -32,2 +33,3 @@ WinterCGFetch: wintercgFetch.WinterCGFetch, | ||
exports.flush = core.flush; | ||
exports.functionToStringIntegration = core.functionToStringIntegration; | ||
exports.getActiveSpan = core.getActiveSpan; | ||
@@ -41,7 +43,11 @@ exports.getActiveTransaction = core.getActiveTransaction; | ||
exports.getIsolationScope = core.getIsolationScope; | ||
exports.inboundFiltersIntegration = core.inboundFiltersIntegration; | ||
exports.lastEventId = core.lastEventId; | ||
exports.linkedErrorsIntegration = core.linkedErrorsIntegration; | ||
exports.makeMain = core.makeMain; | ||
exports.metrics = core.metrics; | ||
exports.requestDataIntegration = core.requestDataIntegration; | ||
exports.runWithAsyncContext = core.runWithAsyncContext; | ||
exports.setContext = core.setContext; | ||
exports.setCurrentClient = core.setCurrentClient; | ||
exports.setExtra = core.setExtra; | ||
@@ -59,2 +65,3 @@ exports.setExtras = core.setExtras; | ||
exports.trace = core.trace; | ||
exports.withIsolationScope = core.withIsolationScope; | ||
exports.withMonitor = core.withMonitor; | ||
@@ -61,0 +68,0 @@ exports.withScope = core.withScope; |
@@ -0,1 +1,5 @@ | ||
var { | ||
_optionalChain | ||
} = require('@sentry/utils'); | ||
Object.defineProperty(exports, '__esModule', { value: true }); | ||
@@ -38,4 +42,3 @@ | ||
utils.addFetchInstrumentationHandler(handlerData => { | ||
const hub = core.getCurrentHub(); | ||
if (!hub.getIntegration(WinterCGFetch)) { | ||
if (!_optionalChain([core.getClient, 'call', _ => _(), 'optionalAccess', _2 => _2.getIntegrationByName, 'optionalCall', _3 => _3('WinterCGFetch')])) { | ||
return; | ||
@@ -101,3 +104,3 @@ } | ||
} | ||
} WinterCGFetch.__initStatic(); | ||
}WinterCGFetch.__initStatic(); | ||
@@ -104,0 +107,0 @@ function createBreadcrumb(handlerData) { |
@@ -14,5 +14,7 @@ Object.defineProperty(exports, '__esModule', { value: true }); | ||
const defaultIntegrations = [ | ||
new core.Integrations.InboundFilters(), | ||
new core.Integrations.FunctionToString(), | ||
new core.Integrations.LinkedErrors(), | ||
/* eslint-disable deprecation/deprecation */ | ||
new core.InboundFilters(), | ||
new core.FunctionToString(), | ||
new core.LinkedErrors(), | ||
/* eslint-enable deprecation/deprecation */ | ||
new wintercgFetch.WinterCGFetch(), | ||
@@ -30,2 +32,3 @@ ]; | ||
if (options.sendDefaultPii) { | ||
// eslint-disable-next-line deprecation/deprecation | ||
sdkDefaultIntegrations.push(new core.RequestData()); | ||
@@ -32,0 +35,0 @@ } |
import { Integrations, RequestData } from '@sentry/core'; | ||
export { Hub, SDK_VERSION, Scope, addBreadcrumb, addEventProcessor, addGlobalEventProcessor, addIntegration, captureCheckIn, captureEvent, captureException, captureMessage, close, configureScope, continueTrace, createTransport, extractTraceparentData, flush, getActiveSpan, getActiveTransaction, getClient, getCurrentHub, getCurrentScope, getGlobalScope, getHubFromCarrier, getIsolationScope, lastEventId, makeMain, metrics, runWithAsyncContext, setContext, setExtra, setExtras, setMeasurement, setTag, setTags, setUser, spanStatusfromHttpCode, startInactiveSpan, startSpan, startSpanManual, startTransaction, trace, withMonitor, withScope } from '@sentry/core'; | ||
export { Hub, SDK_VERSION, Scope, addBreadcrumb, addEventProcessor, addGlobalEventProcessor, addIntegration, captureCheckIn, captureEvent, captureException, captureMessage, close, configureScope, continueTrace, createTransport, extractTraceparentData, flush, functionToStringIntegration, getActiveSpan, getActiveTransaction, getClient, getCurrentHub, getCurrentScope, getGlobalScope, getHubFromCarrier, getIsolationScope, inboundFiltersIntegration, lastEventId, linkedErrorsIntegration, makeMain, metrics, requestDataIntegration, runWithAsyncContext, setContext, setCurrentClient, setExtra, setExtras, setMeasurement, setTag, setTags, setUser, spanStatusfromHttpCode, startInactiveSpan, startSpan, startSpanManual, startTransaction, trace, withIsolationScope, withMonitor, withScope } from '@sentry/core'; | ||
export { VercelEdgeClient } from './client.js'; | ||
@@ -8,2 +8,3 @@ export { defaultIntegrations, init } from './sdk.js'; | ||
const INTEGRATIONS = { | ||
// eslint-disable-next-line deprecation/deprecation | ||
...Integrations, | ||
@@ -10,0 +11,0 @@ WinterCGFetch, |
@@ -0,3 +1,4 @@ | ||
import { _optionalChain } from '@sentry/utils'; | ||
import { instrumentFetchRequest } from '@sentry-internal/tracing'; | ||
import { getCurrentHub, isSentryRequestUrl, getClient, addBreadcrumb } from '@sentry/core'; | ||
import { isSentryRequestUrl, getClient, addBreadcrumb } from '@sentry/core'; | ||
import { LRUMap, addFetchInstrumentationHandler, stringMatchesSomePattern } from '@sentry/utils'; | ||
@@ -36,4 +37,3 @@ | ||
addFetchInstrumentationHandler(handlerData => { | ||
const hub = getCurrentHub(); | ||
if (!hub.getIntegration(WinterCGFetch)) { | ||
if (!_optionalChain([getClient, 'call', _ => _(), 'optionalAccess', _2 => _2.getIntegrationByName, 'optionalCall', _3 => _3('WinterCGFetch')])) { | ||
return; | ||
@@ -99,3 +99,3 @@ } | ||
} | ||
} WinterCGFetch.__initStatic(); | ||
}WinterCGFetch.__initStatic(); | ||
@@ -102,0 +102,0 @@ function createBreadcrumb(handlerData) { |
@@ -1,2 +0,2 @@ | ||
import { Integrations, RequestData, getIntegrationsToSetup, initAndBind } from '@sentry/core'; | ||
import { InboundFilters, FunctionToString, LinkedErrors, RequestData, getIntegrationsToSetup, initAndBind } from '@sentry/core'; | ||
import { createStackParser, nodeStackLineParser, stackParserFromStackParserOptions, GLOBAL_OBJ } from '@sentry/utils'; | ||
@@ -12,5 +12,7 @@ import { setAsyncLocalStorageAsyncContextStrategy } from './async.js'; | ||
const defaultIntegrations = [ | ||
new Integrations.InboundFilters(), | ||
new Integrations.FunctionToString(), | ||
new Integrations.LinkedErrors(), | ||
/* eslint-disable deprecation/deprecation */ | ||
new InboundFilters(), | ||
new FunctionToString(), | ||
new LinkedErrors(), | ||
/* eslint-enable deprecation/deprecation */ | ||
new WinterCGFetch(), | ||
@@ -28,2 +30,3 @@ ]; | ||
if (options.sendDefaultPii) { | ||
// eslint-disable-next-line deprecation/deprecation | ||
sdkDefaultIntegrations.push(new RequestData()); | ||
@@ -30,0 +33,0 @@ } |
{ | ||
"name": "@sentry/vercel-edge", | ||
"version": "7.93.0", | ||
"version": "7.94.1", | ||
"description": "Offical Sentry SDK for the Vercel Edge Runtime", | ||
@@ -32,6 +32,6 @@ "repository": "git://github.com/getsentry/sentry-javascript.git", | ||
"dependencies": { | ||
"@sentry-internal/tracing": "7.93.0", | ||
"@sentry/core": "7.93.0", | ||
"@sentry/types": "7.93.0", | ||
"@sentry/utils": "7.93.0" | ||
"@sentry-internal/tracing": "7.94.1", | ||
"@sentry/core": "7.94.1", | ||
"@sentry/types": "7.94.1", | ||
"@sentry/utils": "7.94.1" | ||
}, | ||
@@ -38,0 +38,0 @@ "devDependencies": { |
export { Breadcrumb, BreadcrumbHint, PolymorphicRequest, Request, SdkInfo, Event, EventHint, Exception, Session, Severity, SeverityLevel, Span, StackFrame, Stacktrace, Thread, Transaction, User, } from '@sentry/types'; | ||
export { AddRequestDataToEventOptions } from '@sentry/utils'; | ||
export { VercelEdgeOptions } from './types'; | ||
export { addGlobalEventProcessor, addEventProcessor, addBreadcrumb, addIntegration, captureException, captureEvent, captureMessage, close, configureScope, createTransport, extractTraceparentData, flush, getActiveTransaction, getHubFromCarrier, getCurrentHub, getClient, getCurrentScope, getGlobalScope, getIsolationScope, Hub, lastEventId, makeMain, runWithAsyncContext, Scope, startTransaction, SDK_VERSION, setContext, setExtra, setExtras, setTag, setTags, setUser, spanStatusfromHttpCode, trace, withScope, captureCheckIn, withMonitor, setMeasurement, getActiveSpan, startSpan, startInactiveSpan, startSpanManual, continueTrace, metrics, } from '@sentry/core'; | ||
export { addGlobalEventProcessor, addEventProcessor, addBreadcrumb, addIntegration, captureException, captureEvent, captureMessage, close, configureScope, createTransport, extractTraceparentData, flush, getActiveTransaction, getHubFromCarrier, getCurrentHub, getClient, getCurrentScope, getGlobalScope, getIsolationScope, Hub, lastEventId, makeMain, setCurrentClient, runWithAsyncContext, Scope, startTransaction, SDK_VERSION, setContext, setExtra, setExtras, setTag, setTags, setUser, spanStatusfromHttpCode, trace, withScope, withIsolationScope, captureCheckIn, withMonitor, setMeasurement, getActiveSpan, startSpan, startInactiveSpan, startSpanManual, continueTrace, metrics, functionToStringIntegration, inboundFiltersIntegration, linkedErrorsIntegration, requestDataIntegration, } from '@sentry/core'; | ||
export { SpanStatusType } from '@sentry/core'; | ||
@@ -11,28 +11,42 @@ export { VercelEdgeClient } from './client'; | ||
WinterCGFetch: typeof WinterCGFetch; | ||
RequestData: import("@sentry/types").Integration & { | ||
new (...args: any[]): import("@sentry/types").Integration & import("@sentry/types").IntegrationFnResult & { | ||
setupOnce: (addGlobalEventProcessor?: ((callback: import("@sentry/types").EventProcessor) => void) | undefined, getCurrentHub?: (() => import("@sentry/types").Hub) | undefined) => void; | ||
}; | ||
id: string; | ||
}; | ||
FunctionToString: import("@sentry/types").Integration & { | ||
new (...args: any[]): import("@sentry/types").Integration & import("@sentry/types").IntegrationFnResult & { | ||
setupOnce: (addGlobalEventProcessor?: ((callback: import("@sentry/types").EventProcessor) => void) | undefined, getCurrentHub?: (() => import("@sentry/types").Hub) | undefined) => void; | ||
}; | ||
id: string; | ||
}; | ||
InboundFilters: import("@sentry/types").Integration & { | ||
new (...args: any[]): import("@sentry/types").Integration & import("@sentry/types").IntegrationFnResult & { | ||
setupOnce: (addGlobalEventProcessor?: ((callback: import("@sentry/types").EventProcessor) => void) | undefined, getCurrentHub?: (() => import("@sentry/types").Hub) | undefined) => void; | ||
}; | ||
id: string; | ||
}; | ||
LinkedErrors: import("@sentry/types").Integration & { | ||
new (...args: any[]): import("@sentry/types").Integration & import("@sentry/types").IntegrationFnResult & { | ||
setupOnce: (addGlobalEventProcessor?: ((callback: import("@sentry/types").EventProcessor) => void) | undefined, getCurrentHub?: (() => import("@sentry/types").Hub) | undefined) => void; | ||
}; | ||
id: string; | ||
}; | ||
RequestData: import("@sentry/types").IntegrationClass<import("@sentry/types").Integration & { | ||
processEvent: (event: import("@sentry/types").Event, hint: import("@sentry/types").EventHint, client: import("@sentry/types").Client<import("@sentry/types").ClientOptions<import("@sentry/types").BaseTransportOptions>>) => import("@sentry/types").Event; | ||
}> & (new (options?: { | ||
include?: { | ||
cookies?: boolean | undefined; | ||
data?: boolean | undefined; | ||
headers?: boolean | undefined; | ||
ip?: boolean | undefined; | ||
query_string?: boolean | undefined; | ||
url?: boolean | undefined; | ||
user?: boolean | { | ||
id?: boolean | undefined; | ||
username?: boolean | undefined; | ||
email?: boolean | undefined; | ||
} | undefined; | ||
} | undefined; | ||
transactionNamingScheme?: import("@sentry/utils").TransactionNamingScheme | undefined; | ||
} | undefined) => import("@sentry/types").Integration); | ||
FunctionToString: import("@sentry/types").IntegrationClass<import("@sentry/types").Integration & { | ||
setupOnce: () => void; | ||
}>; | ||
InboundFilters: import("@sentry/types").IntegrationClass<import("@sentry/types").Integration & { | ||
preprocessEvent: (event: import("@sentry/types").Event, hint: import("@sentry/types").EventHint, client: import("@sentry/types").Client<import("@sentry/types").ClientOptions<import("@sentry/types").BaseTransportOptions>>) => void; | ||
}> & (new (options?: Partial<{ | ||
allowUrls: (string | RegExp)[]; | ||
denyUrls: (string | RegExp)[]; | ||
ignoreErrors: (string | RegExp)[]; | ||
ignoreTransactions: (string | RegExp)[]; | ||
ignoreInternal: boolean; | ||
disableErrorDefaults: boolean; | ||
disableTransactionDefaults: boolean; | ||
}> | undefined) => import("@sentry/types").Integration); | ||
LinkedErrors: import("@sentry/types").IntegrationClass<import("@sentry/types").Integration & { | ||
preprocessEvent: (event: import("@sentry/types").Event, hint: import("@sentry/types").EventHint, client: import("@sentry/types").Client<import("@sentry/types").ClientOptions<import("@sentry/types").BaseTransportOptions>>) => void; | ||
}> & (new (options?: { | ||
key?: string | undefined; | ||
limit?: number | undefined; | ||
} | undefined) => import("@sentry/types").Integration); | ||
}; | ||
export { INTEGRATIONS as Integrations }; | ||
//# sourceMappingURL=index.d.ts.map |
import { Integration } from '@sentry/types'; | ||
import { WinterCGFetch } from './integrations/wintercg-fetch'; | ||
import { VercelEdgeOptions } from './types'; | ||
export declare const defaultIntegrations: (WinterCGFetch | (Integration & import("@sentry/types").IntegrationFnResult & { | ||
setupOnce: (addGlobalEventProcessor?: ((callback: import("@sentry/types").EventProcessor) => void) | undefined, getCurrentHub?: (() => import("@sentry/types").Hub) | undefined) => void; | ||
export declare const defaultIntegrations: (WinterCGFetch | (Integration & { | ||
preprocessEvent: (event: import("@sentry/types").Event, hint: import("@sentry/types").EventHint, client: import("@sentry/types").Client<import("@sentry/types").ClientOptions<import("@sentry/types").BaseTransportOptions>>) => void; | ||
}) | (Integration & { | ||
setupOnce: () => void; | ||
}))[]; | ||
@@ -7,0 +9,0 @@ /** Inits the Sentry NextJS SDK on the Edge Runtime. */ |
export type { Breadcrumb, BreadcrumbHint, PolymorphicRequest, Request, SdkInfo, Event, EventHint, Exception, Session, Severity, SeverityLevel, Span, StackFrame, Stacktrace, Thread, Transaction, User, } from '@sentry/types'; | ||
export type { AddRequestDataToEventOptions } from '@sentry/utils'; | ||
export type { VercelEdgeOptions } from './types'; | ||
export { addGlobalEventProcessor, addEventProcessor, addBreadcrumb, addIntegration, captureException, captureEvent, captureMessage, close, configureScope, createTransport, extractTraceparentData, flush, getActiveTransaction, getHubFromCarrier, getCurrentHub, getClient, getCurrentScope, getGlobalScope, getIsolationScope, Hub, lastEventId, makeMain, runWithAsyncContext, Scope, startTransaction, SDK_VERSION, setContext, setExtra, setExtras, setTag, setTags, setUser, spanStatusfromHttpCode, trace, withScope, captureCheckIn, withMonitor, setMeasurement, getActiveSpan, startSpan, startInactiveSpan, startSpanManual, continueTrace, metrics, } from '@sentry/core'; | ||
export { addGlobalEventProcessor, addEventProcessor, addBreadcrumb, addIntegration, captureException, captureEvent, captureMessage, close, configureScope, createTransport, extractTraceparentData, flush, getActiveTransaction, getHubFromCarrier, getCurrentHub, getClient, getCurrentScope, getGlobalScope, getIsolationScope, Hub, lastEventId, makeMain, setCurrentClient, runWithAsyncContext, Scope, startTransaction, SDK_VERSION, setContext, setExtra, setExtras, setTag, setTags, setUser, spanStatusfromHttpCode, trace, withScope, withIsolationScope, captureCheckIn, withMonitor, setMeasurement, getActiveSpan, startSpan, startInactiveSpan, startSpanManual, continueTrace, metrics, functionToStringIntegration, inboundFiltersIntegration, linkedErrorsIntegration, requestDataIntegration, } from '@sentry/core'; | ||
export type { SpanStatusType } from '@sentry/core'; | ||
@@ -11,28 +11,42 @@ export { VercelEdgeClient } from './client'; | ||
WinterCGFetch: typeof WinterCGFetch; | ||
RequestData: import("@sentry/types").Integration & { | ||
new (...args: any[]): import("@sentry/types").Integration & import("@sentry/types").IntegrationFnResult & { | ||
setupOnce: (addGlobalEventProcessor?: ((callback: import("@sentry/types").EventProcessor) => void) | undefined, getCurrentHub?: (() => import("@sentry/types").Hub) | undefined) => void; | ||
}; | ||
id: string; | ||
}; | ||
FunctionToString: import("@sentry/types").Integration & { | ||
new (...args: any[]): import("@sentry/types").Integration & import("@sentry/types").IntegrationFnResult & { | ||
setupOnce: (addGlobalEventProcessor?: ((callback: import("@sentry/types").EventProcessor) => void) | undefined, getCurrentHub?: (() => import("@sentry/types").Hub) | undefined) => void; | ||
}; | ||
id: string; | ||
}; | ||
InboundFilters: import("@sentry/types").Integration & { | ||
new (...args: any[]): import("@sentry/types").Integration & import("@sentry/types").IntegrationFnResult & { | ||
setupOnce: (addGlobalEventProcessor?: ((callback: import("@sentry/types").EventProcessor) => void) | undefined, getCurrentHub?: (() => import("@sentry/types").Hub) | undefined) => void; | ||
}; | ||
id: string; | ||
}; | ||
LinkedErrors: import("@sentry/types").Integration & { | ||
new (...args: any[]): import("@sentry/types").Integration & import("@sentry/types").IntegrationFnResult & { | ||
setupOnce: (addGlobalEventProcessor?: ((callback: import("@sentry/types").EventProcessor) => void) | undefined, getCurrentHub?: (() => import("@sentry/types").Hub) | undefined) => void; | ||
}; | ||
id: string; | ||
}; | ||
RequestData: import("@sentry/types").IntegrationClass<import("@sentry/types").Integration & { | ||
processEvent: (event: import("@sentry/types").Event, hint: import("@sentry/types").EventHint, client: import("@sentry/types").Client<import("@sentry/types").ClientOptions<import("@sentry/types").BaseTransportOptions>>) => import("@sentry/types").Event; | ||
}> & (new (options?: { | ||
include?: { | ||
cookies?: boolean | undefined; | ||
data?: boolean | undefined; | ||
headers?: boolean | undefined; | ||
ip?: boolean | undefined; | ||
query_string?: boolean | undefined; | ||
url?: boolean | undefined; | ||
user?: boolean | { | ||
id?: boolean | undefined; | ||
username?: boolean | undefined; | ||
email?: boolean | undefined; | ||
} | undefined; | ||
} | undefined; | ||
transactionNamingScheme?: import("@sentry/utils").TransactionNamingScheme | undefined; | ||
} | undefined) => import("@sentry/types").Integration); | ||
FunctionToString: import("@sentry/types").IntegrationClass<import("@sentry/types").Integration & { | ||
setupOnce: () => void; | ||
}>; | ||
InboundFilters: import("@sentry/types").IntegrationClass<import("@sentry/types").Integration & { | ||
preprocessEvent: (event: import("@sentry/types").Event, hint: import("@sentry/types").EventHint, client: import("@sentry/types").Client<import("@sentry/types").ClientOptions<import("@sentry/types").BaseTransportOptions>>) => void; | ||
}> & (new (options?: Partial<{ | ||
allowUrls: (string | RegExp)[]; | ||
denyUrls: (string | RegExp)[]; | ||
ignoreErrors: (string | RegExp)[]; | ||
ignoreTransactions: (string | RegExp)[]; | ||
ignoreInternal: boolean; | ||
disableErrorDefaults: boolean; | ||
disableTransactionDefaults: boolean; | ||
}> | undefined) => import("@sentry/types").Integration); | ||
LinkedErrors: import("@sentry/types").IntegrationClass<import("@sentry/types").Integration & { | ||
preprocessEvent: (event: import("@sentry/types").Event, hint: import("@sentry/types").EventHint, client: import("@sentry/types").Client<import("@sentry/types").ClientOptions<import("@sentry/types").BaseTransportOptions>>) => void; | ||
}> & (new (options?: { | ||
key?: string | undefined; | ||
limit?: number | undefined; | ||
} | undefined) => import("@sentry/types").Integration); | ||
}; | ||
export { INTEGRATIONS as Integrations }; | ||
//# sourceMappingURL=index.d.ts.map |
import type { Integration } from '@sentry/types'; | ||
import { WinterCGFetch } from './integrations/wintercg-fetch'; | ||
import type { VercelEdgeOptions } from './types'; | ||
export declare const defaultIntegrations: (WinterCGFetch | (Integration & import("@sentry/types").IntegrationFnResult & { | ||
setupOnce: (addGlobalEventProcessor?: ((callback: import("@sentry/types").EventProcessor) => void) | undefined, getCurrentHub?: (() => import("@sentry/types").Hub) | undefined) => void; | ||
export declare const defaultIntegrations: (WinterCGFetch | (Integration & { | ||
preprocessEvent: (event: import("@sentry/types").Event, hint: import("@sentry/types").EventHint, client: import("@sentry/types").Client<import("@sentry/types").ClientOptions<import("@sentry/types").BaseTransportOptions>>) => void; | ||
}) | (Integration & { | ||
setupOnce: () => void; | ||
}))[]; | ||
@@ -7,0 +9,0 @@ /** Inits the Sentry NextJS SDK on the Edge Runtime. */ |
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
152066
16.09%1385
3.59%+ Added
+ Added
+ Added
+ Added
- Removed
- Removed
- Removed
- Removed
Updated
Updated
Updated