@sentry/node
Version:
Sentry Node SDK using OpenTelemetry for performance instrumentation
45 lines (44 loc) • 10.9 kB
JavaScript
import { httpIntegration } from "./integrations/http/index.js";
import { awsLambdaWebIntegration } from "./integrations/awsLambdaWeb.js";
import { nativeNodeFetchIntegration } from "./integrations/node-fetch/index.js";
import { fsIntegration } from "./integrations/fs/index.js";
import { setupKoaErrorHandler } from "./integrations/tracing/koa.js";
import "./integrations/featureFlagShims/index.js";
import { getDefaultIntegrations, getDefaultIntegrationsWithoutPerformance, init, initWithoutDefaultIntegrations } from "./sdk/index.js";
import { initOpenTelemetry } from "./sdk/initOtel.js";
import { buildLaunchDarklyFlagUsedHandlerShim, launchDarklyIntegrationShim } from "./integrations/featureFlagShims/launchDarkly.js";
import { OpenFeatureIntegrationHookShim, openFeatureIntegrationShim } from "./integrations/featureFlagShims/openFeature.js";
import { statsigIntegrationShim } from "./integrations/featureFlagShims/statsig.js";
import { unleashIntegrationShim } from "./integrations/featureFlagShims/unleash.js";
import { growthbookIntegrationShim } from "./integrations/featureFlagShims/growthbook.js";
import { getAutoPerformanceIntegrations } from "./integrations/tracing/index.js";
import { serveTunnelIntegration } from "./integrations/serveTunnel.js";
import { addServerTimingTraceHeader } from "./utils/serverTimingHeader.js";
import { logger } from "./logs/exports.js";
import { childProcessIntegration } from "./integrations/childProcess.js";
import { consoleIntegration } from "./integrations/console.js";
import { nodeContextIntegration } from "./integrations/context.js";
import { contextLinesIntegration } from "./integrations/contextlines.js";
import { localVariablesIntegration } from "./integrations/local-variables/index.js";
import { modulesIntegration } from "./integrations/modules.js";
import { _INTERNAL_normalizeCollectionInterval, nodeRuntimeMetricsIntegration } from "./integrations/nodeRuntimeMetrics.js";
import { onUncaughtExceptionIntegration } from "./integrations/onuncaughtexception.js";
import { onUnhandledRejectionIntegration } from "./integrations/onunhandledrejection.js";
import { getHttpAgent, makeNodeTransport } from "./transports/http.js";
import { spotlightIntegration } from "./integrations/spotlight.js";
import { systemErrorIntegration } from "./integrations/systemError.js";
import { workerThreadsIntegration } from "./integrations/workerThreads.js";
import { NODE_VERSION } from "./nodeVersion.js";
import { defaultStackParser, getSentryRelease } from "./sdk/api.js";
import "./transports/index.js";
import { eveInstrumentation } from "./eve.js";
import { httpServerIntegration } from "./integrations/http/httpServerIntegration.js";
import { httpServerSpansIntegration } from "./integrations/http/httpServerSpansIntegration.js";
import { processSessionIntegration } from "./integrations/processSession.js";
import { NodeClient } from "./sdk/client.js";
import { anrIntegration, disableAnrDetectionForCallback } from "./integrations/anr/index.js";
import { SDK_VERSION, SEMANTIC_ATTRIBUTE_SENTRY_OP, SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN, SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE, Scope, addBreadcrumb, addEventProcessor, addIntegration, bindScopeToEmitter, captureCheckIn, captureConsoleIntegration, captureEvent, captureException, captureFeedback, captureMessage, captureSession, close, consoleLoggingIntegration, continueTrace, createConsolaReporter, createTransport, dedupeIntegration, endSession, eventFiltersIntegration, experimentalReportSdkConfigIntegration, extraErrorDataIntegration, featureFlagsIntegration, flush, functionToStringIntegration, getActiveSpan, getClient, getCurrentScope, getGlobalScope, getIsolationScope, getRootSpan, getSpanDescendants, getSpanStatusFromHttpCode, getTraceData, getTraceMetaTags, getTunnelPath, handleTunnelRequest, httpHeadersToSpanAttributes, instrumentSupabaseClient, isEnabled, isInitialized, lastEventId, linkedErrorsIntegration, metrics, moduleMetadataIntegration, parameterize, profiler, requestDataIntegration, rewriteFramesIntegration, setAttribute, setAttributes, setContext, setConversationId, setCurrentClient, setExtra, setExtras, setHttpStatus, setMeasurement, setTag, setTags, setUser, spanStreamingIntegration, spanToBaggageHeader, spanToJSON, spanToStaticSpanJSON, spanToTraceHeader, startInactiveSpan, startNewTrace, startSession, startSpan, startSpanManual, supabaseIntegration, suppressTracing, updateSpanName, winterCGHeadersToDict, withActiveSpan, withIsolationScope, withMonitor, withScope, withStaticSpan, withStreamedSpan, zodErrorsIntegration } from "@sentry/core";
import { handleTunnelRequestIfMatched, isTunnelRequest, trpcMiddleware, wrapMcpServerWithSentry } from "@sentry/core/server";
import { BullMQTelemetry, SentryMastraExporter, amqplibIntegration, anthropicAIIntegration, awsIntegration, clickhouseIntegration, createFlueInstrumentation, createGetModuleFromFilename, createLangChainCallbackHandler, createSentryWinstonTransport, cron, cronJobIntegration, dataloaderIntegration, eveConversationHook, eveIntegration, expressErrorHandler, expressIntegration, fastifyIntegration, firebaseIntegration, genericPoolIntegration, getInstrumentedModuleNames, getOtlpTracesEndpoint, googleGenAIIntegration, graphqlIntegration, groqIntegration, hapiIntegration, honoIntegration, honoMiddleware, instrumentAnthropicAiClient, instrumentCreateReactAgent, instrumentGoogleGenAIClient, instrumentLangChainEmbeddings, instrumentMistralAiClient, instrumentOpenAiClient, instrumentPostgresJsSql, instrumentStateGraph, instrumentStateGraphCompile, instrumentTypeSafeClient, kafkaIntegration, knexIntegration, koaIntegration, langChainIntegration, langGraphIntegration, lruMemoizerIntegration, mastraIntegration, mcpServerIntegration, mistralAIIntegration, mongoIntegration, mongooseIntegration, mysql2Integration, mysqlIntegration, neonIntegration, nitroIntegration, nodeCronIntegration, nodeScheduleIntegration, openAIIntegration, openTelemetryIntegration, piAiIntegration, piDurableIntegration, pinoIntegration, postgresIntegration, postgresJsIntegration, prismaIntegration, redisIntegration, setupExpressErrorHandler, setupFastifyErrorHandler, setupHapiErrorHandler, tediousIntegration, togetherAIIntegration, typesafeIntegration, vercelAIIntegration } from "@sentry/server-utils";
import { setOpenTelemetryContextAsyncContextStrategy } from "@sentry/opentelemetry";
export { BullMQTelemetry, NODE_VERSION, NodeClient, OpenFeatureIntegrationHookShim as OpenFeatureIntegrationHook, SDK_VERSION, SEMANTIC_ATTRIBUTE_SENTRY_OP, SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN, SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE, Scope, SentryMastraExporter, _INTERNAL_normalizeCollectionInterval, addBreadcrumb, addEventProcessor, addIntegration, addServerTimingTraceHeader, amqplibIntegration, anrIntegration, anthropicAIIntegration, awsIntegration, awsLambdaWebIntegration, bindScopeToEmitter, buildLaunchDarklyFlagUsedHandlerShim as buildLaunchDarklyFlagUsedHandler, captureCheckIn, captureConsoleIntegration, captureEvent, captureException, captureFeedback, captureMessage, captureSession, childProcessIntegration, clickhouseIntegration, close, consoleIntegration, consoleLoggingIntegration, contextLinesIntegration, continueTrace, createConsolaReporter, createFlueInstrumentation, createGetModuleFromFilename, createLangChainCallbackHandler, createSentryWinstonTransport, createTransport, cron, cronJobIntegration, dataloaderIntegration, dedupeIntegration, defaultStackParser, disableAnrDetectionForCallback, endSession, eveConversationHook, eveInstrumentation, eveIntegration, eventFiltersIntegration, experimentalReportSdkConfigIntegration, expressErrorHandler, expressIntegration, extraErrorDataIntegration, fastifyIntegration, featureFlagsIntegration, firebaseIntegration, flush, fsIntegration, functionToStringIntegration, genericPoolIntegration, getActiveSpan, getAutoPerformanceIntegrations, getClient, getCurrentScope, getDefaultIntegrations, getDefaultIntegrationsWithoutPerformance, getGlobalScope, getHttpAgent, getInstrumentedModuleNames, getIsolationScope, getOtlpTracesEndpoint, getRootSpan, getSentryRelease, getSpanDescendants, getSpanStatusFromHttpCode, getTraceData, getTraceMetaTags, getTunnelPath, googleGenAIIntegration, graphqlIntegration, groqIntegration, growthbookIntegrationShim as growthbookIntegration, handleTunnelRequest, handleTunnelRequestIfMatched, hapiIntegration, honoIntegration, honoMiddleware, httpHeadersToSpanAttributes, httpIntegration, httpServerIntegration, httpServerSpansIntegration, init, initOpenTelemetry, initWithoutDefaultIntegrations, instrumentAnthropicAiClient, instrumentCreateReactAgent, instrumentGoogleGenAIClient, instrumentLangChainEmbeddings, instrumentMistralAiClient, instrumentOpenAiClient, instrumentPostgresJsSql, instrumentStateGraph, instrumentStateGraphCompile, instrumentSupabaseClient, instrumentTypeSafeClient, isEnabled, isInitialized, isTunnelRequest, kafkaIntegration, knexIntegration, koaIntegration, langChainIntegration, langGraphIntegration, lastEventId, launchDarklyIntegrationShim as launchDarklyIntegration, linkedErrorsIntegration, localVariablesIntegration, logger, lruMemoizerIntegration, makeNodeTransport, mastraIntegration, mcpServerIntegration, metrics, mistralAIIntegration, moduleMetadataIntegration, modulesIntegration, mongoIntegration, mongooseIntegration, mysql2Integration, mysqlIntegration, nativeNodeFetchIntegration, neonIntegration, nitroIntegration, nodeContextIntegration, nodeCronIntegration, nodeRuntimeMetricsIntegration, nodeScheduleIntegration, onUncaughtExceptionIntegration, onUnhandledRejectionIntegration, openAIIntegration, openFeatureIntegrationShim as openFeatureIntegration, openTelemetryIntegration, parameterize, piAiIntegration, piDurableIntegration, pinoIntegration, postgresIntegration, postgresJsIntegration, prismaIntegration, processSessionIntegration, profiler, redisIntegration, requestDataIntegration, rewriteFramesIntegration, serveTunnelIntegration, setAttribute, setAttributes, setContext, setConversationId, setCurrentClient, setExtra, setExtras, setHttpStatus, setMeasurement, setOpenTelemetryContextAsyncContextStrategy, setTag, setTags, setUser, setupExpressErrorHandler, setupFastifyErrorHandler, setupHapiErrorHandler, setupKoaErrorHandler, spanStreamingIntegration, spanToBaggageHeader, spanToJSON, spanToStaticSpanJSON, spanToTraceHeader, spotlightIntegration, startInactiveSpan, startNewTrace, startSession, startSpan, startSpanManual, statsigIntegrationShim as statsigIntegration, supabaseIntegration, suppressTracing, systemErrorIntegration, tediousIntegration, togetherAIIntegration, trpcMiddleware, typesafeIntegration, unleashIntegrationShim as unleashIntegration, updateSpanName, vercelAIIntegration, winterCGHeadersToDict, withActiveSpan, withIsolationScope, withMonitor, withScope, withStaticSpan, withStreamedSpan, workerThreadsIntegration, wrapMcpServerWithSentry, zodErrorsIntegration };