@sentry/node
Advanced tools
Comparing version 7.98.0 to 7.99.0
@@ -84,3 +84,3 @@ var { | ||
utils.addRequestDataToTransaction(transaction, req); | ||
transaction.setHttpStatus(res.statusCode); | ||
core.setHttpStatus(transaction, res.statusCode); | ||
transaction.end(); | ||
@@ -87,0 +87,0 @@ }); |
@@ -67,2 +67,3 @@ Object.defineProperty(exports, '__esModule', { value: true }); | ||
exports.getIsolationScope = core.getIsolationScope; | ||
exports.getSpanStatusFromHttpCode = core.getSpanStatusFromHttpCode; | ||
exports.inboundFiltersIntegration = core.inboundFiltersIntegration; | ||
@@ -69,0 +70,0 @@ exports.isInitialized = core.isInitialized; |
@@ -109,7 +109,7 @@ Object.defineProperty(exports, '__esModule', { value: true }); | ||
if (request.response && isResponseObject(request.response) && transaction) { | ||
transaction.setHttpStatus(request.response.statusCode); | ||
} | ||
if (transaction) { | ||
if (request.response && isResponseObject(request.response)) { | ||
core.setHttpStatus(transaction, request.response.statusCode); | ||
} | ||
if (transaction) { | ||
transaction.end(); | ||
@@ -116,0 +116,0 @@ } |
@@ -181,5 +181,6 @@ var { | ||
const requestUrl = http.extractUrl(requestOptions); | ||
const client = core.getClient(); | ||
// we don't want to record requests to Sentry as either breadcrumbs or spans, so just use the original method | ||
if (core.isSentryRequestUrl(requestUrl, core.getClient())) { | ||
if (core.isSentryRequestUrl(requestUrl, client)) { | ||
return originalRequestMethod.apply(httpModule, requestArgs); | ||
@@ -189,2 +190,3 @@ } | ||
const scope = core.getCurrentScope(); | ||
const isolationScope = core.getIsolationScope(); | ||
const parentSpan = core.getActiveSpan(); | ||
@@ -204,15 +206,20 @@ | ||
if (shouldAttachTraceData(rawRequestUrl)) { | ||
if (requestSpan) { | ||
const sentryTraceHeader = core.spanToTraceHeader(requestSpan); | ||
const dynamicSamplingContext = core.getDynamicSamplingContextFromSpan(requestSpan); | ||
addHeadersToRequestOptions(requestOptions, requestUrl, sentryTraceHeader, dynamicSamplingContext); | ||
} else { | ||
const client = core.getClient(); | ||
const { traceId, sampled, dsc } = scope.getPropagationContext(); | ||
const sentryTraceHeader = utils.generateSentryTraceHeader(traceId, undefined, sampled); | ||
const dynamicSamplingContext = | ||
dsc || (client ? core.getDynamicSamplingContextFromClient(traceId, client, scope) : undefined); | ||
addHeadersToRequestOptions(requestOptions, requestUrl, sentryTraceHeader, dynamicSamplingContext); | ||
} | ||
if (client && shouldAttachTraceData(rawRequestUrl)) { | ||
const { traceId, spanId, sampled, dsc } = { | ||
...isolationScope.getPropagationContext(), | ||
...scope.getPropagationContext(), | ||
}; | ||
const sentryTraceHeader = requestSpan | ||
? core.spanToTraceHeader(requestSpan) | ||
: utils.generateSentryTraceHeader(traceId, spanId, sampled); | ||
const sentryBaggageHeader = utils.dynamicSamplingContextToSentryBaggageHeader( | ||
dsc || | ||
(requestSpan | ||
? core.getDynamicSamplingContextFromSpan(requestSpan) | ||
: core.getDynamicSamplingContextFromClient(traceId, client, scope)), | ||
); | ||
addHeadersToRequestOptions(requestOptions, requestUrl, sentryTraceHeader, sentryBaggageHeader); | ||
} else { | ||
@@ -236,3 +243,3 @@ debugBuild.DEBUG_BUILD && | ||
if (res.statusCode) { | ||
requestSpan.setHttpStatus(res.statusCode); | ||
core.setHttpStatus(requestSpan, res.statusCode); | ||
} | ||
@@ -253,3 +260,3 @@ requestSpan.updateName( | ||
if (requestSpan) { | ||
requestSpan.setHttpStatus(500); | ||
core.setHttpStatus(requestSpan, 500); | ||
requestSpan.updateName( | ||
@@ -269,3 +276,3 @@ http.cleanSpanDescription(core.spanToJSON(requestSpan).description || '', requestOptions, req) || '', | ||
sentryTraceHeader, | ||
dynamicSamplingContext, | ||
sentryBaggageHeader, | ||
) { | ||
@@ -280,5 +287,2 @@ // Don't overwrite sentry-trace and baggage header if it's already set. | ||
utils.logger.log(`[Tracing] Adding sentry-trace header ${sentryTraceHeader} to outgoing request to "${requestUrl}": `); | ||
const sentryBaggage = utils.dynamicSamplingContextToSentryBaggageHeader(dynamicSamplingContext); | ||
const sentryBaggageHeader = | ||
sentryBaggage && sentryBaggage.length > 0 ? normalizeBaggageHeader(requestOptions, sentryBaggage) : undefined; | ||
@@ -289,3 +293,4 @@ requestOptions.headers = { | ||
// Setting a header to `undefined` will crash in node so we only set the baggage header when it's defined | ||
...(sentryBaggageHeader && { baggage: sentryBaggageHeader }), | ||
...(sentryBaggageHeader && | ||
sentryBaggageHeader.length > 0 && { baggage: normalizeBaggageHeader(requestOptions, sentryBaggageHeader) }), | ||
}; | ||
@@ -292,0 +297,0 @@ } |
@@ -61,3 +61,4 @@ Object.defineProperty(exports, '__esModule', { value: true }); | ||
const req = http.request( | ||
const request = getNativeHttpRequest(); | ||
const req = request( | ||
{ | ||
@@ -102,3 +103,20 @@ method: 'POST', | ||
/** | ||
* We want to get an unpatched http request implementation to avoid capturing our own calls. | ||
*/ | ||
function getNativeHttpRequest() { | ||
const { request } = http; | ||
if (isWrapped(request)) { | ||
return request.__sentry_original__; | ||
} | ||
return request; | ||
} | ||
function isWrapped(impl) { | ||
return '__sentry_original__' in impl; | ||
} | ||
exports.Spotlight = Spotlight; | ||
exports.getNativeHttpRequest = getNativeHttpRequest; | ||
//# sourceMappingURL=spotlight.js.map |
@@ -124,2 +124,3 @@ var { | ||
const scope = core.getCurrentScope(); | ||
const isolationScope = core.getIsolationScope(); | ||
const parentSpan = core.getActiveSpan(); | ||
@@ -148,14 +149,17 @@ | ||
if (shouldAttachTraceData(stringUrl)) { | ||
if (span) { | ||
const dynamicSamplingContext = core.getDynamicSamplingContextFromSpan(span); | ||
const sentryBaggageHeader = utils.dynamicSamplingContextToSentryBaggageHeader(dynamicSamplingContext); | ||
const { traceId, spanId, sampled, dsc } = { | ||
...isolationScope.getPropagationContext(), | ||
...scope.getPropagationContext(), | ||
}; | ||
setHeadersOnRequest(request, core.spanToTraceHeader(span), sentryBaggageHeader); | ||
} else { | ||
const { traceId, sampled, dsc } = scope.getPropagationContext(); | ||
const sentryTrace = utils.generateSentryTraceHeader(traceId, undefined, sampled); | ||
const dynamicSamplingContext = dsc || core.getDynamicSamplingContextFromClient(traceId, client, scope); | ||
const sentryBaggageHeader = utils.dynamicSamplingContextToSentryBaggageHeader(dynamicSamplingContext); | ||
setHeadersOnRequest(request, sentryTrace, sentryBaggageHeader); | ||
} | ||
const sentryTraceHeader = span ? core.spanToTraceHeader(span) : utils.generateSentryTraceHeader(traceId, spanId, sampled); | ||
const sentryBaggageHeader = utils.dynamicSamplingContextToSentryBaggageHeader( | ||
dsc || | ||
(span | ||
? core.getDynamicSamplingContextFromSpan(span) | ||
: core.getDynamicSamplingContextFromClient(traceId, client, scope)), | ||
); | ||
setHeadersOnRequest(request, sentryTraceHeader, sentryBaggageHeader); | ||
} | ||
@@ -180,3 +184,3 @@ };} | ||
if (span) { | ||
span.setHttpStatus(response.statusCode); | ||
core.setHttpStatus(span, response.statusCode); | ||
span.end(); | ||
@@ -183,0 +187,0 @@ } |
import { _optionalChain } from '@sentry/utils'; | ||
import { hasTracingEnabled, continueTrace, startTransaction, SEMANTIC_ATTRIBUTE_SENTRY_SOURCE, getCurrentScope, getClient, flush, runWithAsyncContext, withScope, getActiveSpan, captureException } from '@sentry/core'; | ||
import { hasTracingEnabled, continueTrace, startTransaction, SEMANTIC_ATTRIBUTE_SENTRY_SOURCE, getCurrentScope, setHttpStatus, getClient, flush, runWithAsyncContext, withScope, getActiveSpan, captureException } from '@sentry/core'; | ||
import { isString, extractPathForTransaction, extractRequestData, addRequestDataToTransaction, logger, normalize, isThenable, dropUndefinedKeys } from '@sentry/utils'; | ||
@@ -79,3 +79,3 @@ import { DEBUG_BUILD } from './debug-build.js'; | ||
addRequestDataToTransaction(transaction, req); | ||
transaction.setHttpStatus(res.statusCode); | ||
setHttpStatus(transaction, res.statusCode); | ||
transaction.end(); | ||
@@ -82,0 +82,0 @@ }); |
import { Integrations } 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, isInitialized, lastEventId, linkedErrorsIntegration, makeMain, metrics, parameterize, requestDataIntegration, runWithAsyncContext, setContext, setCurrentClient, setExtra, setExtras, setMeasurement, setTag, setTags, setUser, spanStatusfromHttpCode, startActiveSpan, startInactiveSpan, startSpan, startSpanManual, startTransaction, trace, withIsolationScope, 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, getSpanStatusFromHttpCode, inboundFiltersIntegration, isInitialized, lastEventId, linkedErrorsIntegration, makeMain, metrics, parameterize, requestDataIntegration, runWithAsyncContext, setContext, setCurrentClient, setExtra, setExtras, setMeasurement, setTag, setTags, setUser, spanStatusfromHttpCode, startActiveSpan, startInactiveSpan, startSpan, startSpanManual, startTransaction, trace, withIsolationScope, withMonitor, withScope } from '@sentry/core'; | ||
export { autoDiscoverNodePerformanceMonitoringIntegrations } from './tracing/index.js'; | ||
@@ -4,0 +4,0 @@ export { NodeClient } from './client.js'; |
@@ -1,2 +0,2 @@ | ||
import { convertIntegrationFnToClass, SDK_VERSION, getActiveTransaction, captureException, continueTrace, startTransaction, getCurrentScope, spanToTraceHeader, getDynamicSamplingContextFromSpan } from '@sentry/core'; | ||
import { convertIntegrationFnToClass, SDK_VERSION, getActiveTransaction, captureException, continueTrace, startTransaction, getCurrentScope, spanToTraceHeader, getDynamicSamplingContextFromSpan, setHttpStatus } from '@sentry/core'; | ||
import { fill, dynamicSamplingContextToSentryBaggageHeader } from '@sentry/utils'; | ||
@@ -107,7 +107,7 @@ | ||
if (request.response && isResponseObject(request.response) && transaction) { | ||
transaction.setHttpStatus(request.response.statusCode); | ||
} | ||
if (transaction) { | ||
if (request.response && isResponseObject(request.response)) { | ||
setHttpStatus(transaction, request.response.statusCode); | ||
} | ||
if (transaction) { | ||
transaction.end(); | ||
@@ -114,0 +114,0 @@ } |
import { _optionalChain } from '@sentry/utils'; | ||
import { isSentryRequestUrl, getClient, getCurrentScope, getActiveSpan, spanToTraceHeader, getDynamicSamplingContextFromSpan, getDynamicSamplingContextFromClient, spanToJSON, getCurrentHub, addBreadcrumb } from '@sentry/core'; | ||
import { getClient, isSentryRequestUrl, getCurrentScope, getIsolationScope, getActiveSpan, spanToTraceHeader, getDynamicSamplingContextFromSpan, getDynamicSamplingContextFromClient, setHttpStatus, spanToJSON, getCurrentHub, addBreadcrumb } from '@sentry/core'; | ||
import { logger, fill, LRUMap, generateSentryTraceHeader, dynamicSamplingContextToSentryBaggageHeader, stringMatchesSomePattern } from '@sentry/utils'; | ||
@@ -176,5 +176,6 @@ import { DEBUG_BUILD } from '../debug-build.js'; | ||
const requestUrl = extractUrl(requestOptions); | ||
const client = getClient(); | ||
// we don't want to record requests to Sentry as either breadcrumbs or spans, so just use the original method | ||
if (isSentryRequestUrl(requestUrl, getClient())) { | ||
if (isSentryRequestUrl(requestUrl, client)) { | ||
return originalRequestMethod.apply(httpModule, requestArgs); | ||
@@ -184,2 +185,3 @@ } | ||
const scope = getCurrentScope(); | ||
const isolationScope = getIsolationScope(); | ||
const parentSpan = getActiveSpan(); | ||
@@ -199,15 +201,20 @@ | ||
if (shouldAttachTraceData(rawRequestUrl)) { | ||
if (requestSpan) { | ||
const sentryTraceHeader = spanToTraceHeader(requestSpan); | ||
const dynamicSamplingContext = getDynamicSamplingContextFromSpan(requestSpan); | ||
addHeadersToRequestOptions(requestOptions, requestUrl, sentryTraceHeader, dynamicSamplingContext); | ||
} else { | ||
const client = getClient(); | ||
const { traceId, sampled, dsc } = scope.getPropagationContext(); | ||
const sentryTraceHeader = generateSentryTraceHeader(traceId, undefined, sampled); | ||
const dynamicSamplingContext = | ||
dsc || (client ? getDynamicSamplingContextFromClient(traceId, client, scope) : undefined); | ||
addHeadersToRequestOptions(requestOptions, requestUrl, sentryTraceHeader, dynamicSamplingContext); | ||
} | ||
if (client && shouldAttachTraceData(rawRequestUrl)) { | ||
const { traceId, spanId, sampled, dsc } = { | ||
...isolationScope.getPropagationContext(), | ||
...scope.getPropagationContext(), | ||
}; | ||
const sentryTraceHeader = requestSpan | ||
? spanToTraceHeader(requestSpan) | ||
: generateSentryTraceHeader(traceId, spanId, sampled); | ||
const sentryBaggageHeader = dynamicSamplingContextToSentryBaggageHeader( | ||
dsc || | ||
(requestSpan | ||
? getDynamicSamplingContextFromSpan(requestSpan) | ||
: getDynamicSamplingContextFromClient(traceId, client, scope)), | ||
); | ||
addHeadersToRequestOptions(requestOptions, requestUrl, sentryTraceHeader, sentryBaggageHeader); | ||
} else { | ||
@@ -231,3 +238,3 @@ DEBUG_BUILD && | ||
if (res.statusCode) { | ||
requestSpan.setHttpStatus(res.statusCode); | ||
setHttpStatus(requestSpan, res.statusCode); | ||
} | ||
@@ -248,3 +255,3 @@ requestSpan.updateName( | ||
if (requestSpan) { | ||
requestSpan.setHttpStatus(500); | ||
setHttpStatus(requestSpan, 500); | ||
requestSpan.updateName( | ||
@@ -264,3 +271,3 @@ cleanSpanDescription(spanToJSON(requestSpan).description || '', requestOptions, req) || '', | ||
sentryTraceHeader, | ||
dynamicSamplingContext, | ||
sentryBaggageHeader, | ||
) { | ||
@@ -275,5 +282,2 @@ // Don't overwrite sentry-trace and baggage header if it's already set. | ||
logger.log(`[Tracing] Adding sentry-trace header ${sentryTraceHeader} to outgoing request to "${requestUrl}": `); | ||
const sentryBaggage = dynamicSamplingContextToSentryBaggageHeader(dynamicSamplingContext); | ||
const sentryBaggageHeader = | ||
sentryBaggage && sentryBaggage.length > 0 ? normalizeBaggageHeader(requestOptions, sentryBaggage) : undefined; | ||
@@ -284,3 +288,4 @@ requestOptions.headers = { | ||
// Setting a header to `undefined` will crash in node so we only set the baggage header when it's defined | ||
...(sentryBaggageHeader && { baggage: sentryBaggageHeader }), | ||
...(sentryBaggageHeader && | ||
sentryBaggageHeader.length > 0 && { baggage: normalizeBaggageHeader(requestOptions, sentryBaggageHeader) }), | ||
}; | ||
@@ -287,0 +292,0 @@ } |
@@ -59,3 +59,4 @@ import * as http from 'http'; | ||
const req = http.request( | ||
const request = getNativeHttpRequest(); | ||
const req = request( | ||
{ | ||
@@ -100,3 +101,19 @@ method: 'POST', | ||
export { Spotlight }; | ||
/** | ||
* We want to get an unpatched http request implementation to avoid capturing our own calls. | ||
*/ | ||
function getNativeHttpRequest() { | ||
const { request } = http; | ||
if (isWrapped(request)) { | ||
return request.__sentry_original__; | ||
} | ||
return request; | ||
} | ||
function isWrapped(impl) { | ||
return '__sentry_original__' in impl; | ||
} | ||
export { Spotlight, getNativeHttpRequest }; | ||
//# sourceMappingURL=spotlight.js.map |
import { _optionalChain } from '@sentry/utils'; | ||
import { getClient, isSentryRequestUrl, getCurrentScope, getActiveSpan, getDynamicSamplingContextFromSpan, spanToTraceHeader, getDynamicSamplingContextFromClient, addBreadcrumb } from '@sentry/core'; | ||
import { LRUMap, dynamicRequire, dynamicSamplingContextToSentryBaggageHeader, generateSentryTraceHeader, parseUrl, stringMatchesSomePattern, getSanitizedUrlString } from '@sentry/utils'; | ||
import { getClient, isSentryRequestUrl, getCurrentScope, getIsolationScope, getActiveSpan, spanToTraceHeader, getDynamicSamplingContextFromSpan, getDynamicSamplingContextFromClient, setHttpStatus, addBreadcrumb } from '@sentry/core'; | ||
import { LRUMap, dynamicRequire, generateSentryTraceHeader, dynamicSamplingContextToSentryBaggageHeader, parseUrl, stringMatchesSomePattern, getSanitizedUrlString } from '@sentry/utils'; | ||
import { NODE_VERSION } from '../../nodeVersion.js'; | ||
@@ -119,2 +119,3 @@ | ||
const scope = getCurrentScope(); | ||
const isolationScope = getIsolationScope(); | ||
const parentSpan = getActiveSpan(); | ||
@@ -143,14 +144,17 @@ | ||
if (shouldAttachTraceData(stringUrl)) { | ||
if (span) { | ||
const dynamicSamplingContext = getDynamicSamplingContextFromSpan(span); | ||
const sentryBaggageHeader = dynamicSamplingContextToSentryBaggageHeader(dynamicSamplingContext); | ||
const { traceId, spanId, sampled, dsc } = { | ||
...isolationScope.getPropagationContext(), | ||
...scope.getPropagationContext(), | ||
}; | ||
setHeadersOnRequest(request, spanToTraceHeader(span), sentryBaggageHeader); | ||
} else { | ||
const { traceId, sampled, dsc } = scope.getPropagationContext(); | ||
const sentryTrace = generateSentryTraceHeader(traceId, undefined, sampled); | ||
const dynamicSamplingContext = dsc || getDynamicSamplingContextFromClient(traceId, client, scope); | ||
const sentryBaggageHeader = dynamicSamplingContextToSentryBaggageHeader(dynamicSamplingContext); | ||
setHeadersOnRequest(request, sentryTrace, sentryBaggageHeader); | ||
} | ||
const sentryTraceHeader = span ? spanToTraceHeader(span) : generateSentryTraceHeader(traceId, spanId, sampled); | ||
const sentryBaggageHeader = dynamicSamplingContextToSentryBaggageHeader( | ||
dsc || | ||
(span | ||
? getDynamicSamplingContextFromSpan(span) | ||
: getDynamicSamplingContextFromClient(traceId, client, scope)), | ||
); | ||
setHeadersOnRequest(request, sentryTraceHeader, sentryBaggageHeader); | ||
} | ||
@@ -175,3 +179,3 @@ };} | ||
if (span) { | ||
span.setHttpStatus(response.statusCode); | ||
setHttpStatus(span, response.statusCode); | ||
span.end(); | ||
@@ -178,0 +182,0 @@ } |
{ | ||
"name": "@sentry/node", | ||
"version": "7.98.0", | ||
"version": "7.99.0", | ||
"description": "Official Sentry SDK for Node.js", | ||
@@ -32,6 +32,6 @@ "repository": "git://github.com/getsentry/sentry-javascript.git", | ||
"dependencies": { | ||
"@sentry-internal/tracing": "7.98.0", | ||
"@sentry/core": "7.98.0", | ||
"@sentry/types": "7.98.0", | ||
"@sentry/utils": "7.98.0" | ||
"@sentry-internal/tracing": "7.99.0", | ||
"@sentry/core": "7.99.0", | ||
"@sentry/types": "7.99.0", | ||
"@sentry/utils": "7.99.0" | ||
}, | ||
@@ -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, TransactionNamingScheme } from '@sentry/utils'; | ||
export { NodeOptions } from './types'; | ||
export { addGlobalEventProcessor, addEventProcessor, addBreadcrumb, addIntegration, captureException, captureEvent, captureMessage, close, configureScope, createTransport, extractTraceparentData, flush, getActiveTransaction, getHubFromCarrier, getCurrentHub, getClient, isInitialized, 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, startActiveSpan, startInactiveSpan, startSpanManual, continueTrace, parameterize, metrics, functionToStringIntegration, inboundFiltersIntegration, linkedErrorsIntegration, requestDataIntegration, } from '@sentry/core'; | ||
export { addGlobalEventProcessor, addEventProcessor, addBreadcrumb, addIntegration, captureException, captureEvent, captureMessage, close, configureScope, createTransport, extractTraceparentData, flush, getActiveTransaction, getHubFromCarrier, getCurrentHub, getClient, isInitialized, getCurrentScope, getGlobalScope, getIsolationScope, Hub, lastEventId, makeMain, setCurrentClient, runWithAsyncContext, Scope, startTransaction, SDK_VERSION, setContext, setExtra, setExtras, setTag, setTags, setUser, spanStatusfromHttpCode, getSpanStatusFromHttpCode, trace, withScope, withIsolationScope, captureCheckIn, withMonitor, setMeasurement, getActiveSpan, startSpan, startActiveSpan, startInactiveSpan, startSpanManual, continueTrace, parameterize, metrics, functionToStringIntegration, inboundFiltersIntegration, linkedErrorsIntegration, requestDataIntegration, } from '@sentry/core'; | ||
export { SpanStatusType } from '@sentry/core'; | ||
@@ -6,0 +6,0 @@ export { autoDiscoverNodePerformanceMonitoringIntegrations } from './tracing'; |
@@ -0,1 +1,2 @@ | ||
import * as http from 'http'; | ||
import { Client, Integration, IntegrationClass } from '@sentry/types'; | ||
@@ -14,2 +15,8 @@ /** | ||
}>) => Integration); | ||
type HttpRequestImpl = typeof http.request; | ||
/** | ||
* We want to get an unpatched http request implementation to avoid capturing our own calls. | ||
*/ | ||
export declare function getNativeHttpRequest(): HttpRequestImpl; | ||
export {}; | ||
//# sourceMappingURL=spotlight.d.ts.map |
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, TransactionNamingScheme } from '@sentry/utils'; | ||
export type { NodeOptions } from './types'; | ||
export { addGlobalEventProcessor, addEventProcessor, addBreadcrumb, addIntegration, captureException, captureEvent, captureMessage, close, configureScope, createTransport, extractTraceparentData, flush, getActiveTransaction, getHubFromCarrier, getCurrentHub, getClient, isInitialized, 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, startActiveSpan, startInactiveSpan, startSpanManual, continueTrace, parameterize, metrics, functionToStringIntegration, inboundFiltersIntegration, linkedErrorsIntegration, requestDataIntegration, } from '@sentry/core'; | ||
export { addGlobalEventProcessor, addEventProcessor, addBreadcrumb, addIntegration, captureException, captureEvent, captureMessage, close, configureScope, createTransport, extractTraceparentData, flush, getActiveTransaction, getHubFromCarrier, getCurrentHub, getClient, isInitialized, getCurrentScope, getGlobalScope, getIsolationScope, Hub, lastEventId, makeMain, setCurrentClient, runWithAsyncContext, Scope, startTransaction, SDK_VERSION, setContext, setExtra, setExtras, setTag, setTags, setUser, spanStatusfromHttpCode, getSpanStatusFromHttpCode, trace, withScope, withIsolationScope, captureCheckIn, withMonitor, setMeasurement, getActiveSpan, startSpan, startActiveSpan, startInactiveSpan, startSpanManual, continueTrace, parameterize, metrics, functionToStringIntegration, inboundFiltersIntegration, linkedErrorsIntegration, requestDataIntegration, } from '@sentry/core'; | ||
export type { SpanStatusType } from '@sentry/core'; | ||
@@ -6,0 +6,0 @@ export { autoDiscoverNodePerformanceMonitoringIntegrations } from './tracing'; |
@@ -0,1 +1,2 @@ | ||
import * as http from 'http'; | ||
import type { Client, Integration, IntegrationClass } from '@sentry/types'; | ||
@@ -14,2 +15,8 @@ /** | ||
}>) => Integration); | ||
type HttpRequestImpl = typeof http.request; | ||
/** | ||
* We want to get an unpatched http request implementation to avoid capturing our own calls. | ||
*/ | ||
export declare function getNativeHttpRequest(): HttpRequestImpl; | ||
export {}; | ||
//# sourceMappingURL=spotlight.d.ts.map |
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 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 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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1905077
12719
+ Added@sentry-internal/tracing@7.99.0(transitive)
+ Added@sentry/core@7.99.0(transitive)
+ Added@sentry/types@7.99.0(transitive)
+ Added@sentry/utils@7.99.0(transitive)
- Removed@sentry-internal/tracing@7.98.0(transitive)
- Removed@sentry/core@7.98.0(transitive)
- Removed@sentry/types@7.98.0(transitive)
- Removed@sentry/utils@7.98.0(transitive)
Updated@sentry/core@7.99.0
Updated@sentry/types@7.99.0
Updated@sentry/utils@7.99.0