UNPKG

@sentry/remix

Version:
112 lines (106 loc) 5.32 kB
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); const instrumentServer = require('../server/instrumentServer.js'); const react = require('@sentry/react'); const errors = require('../client/errors.js'); const performance = require('../client/performance.js'); const core = require('@sentry/core'); const browserTracingIntegration = require('../client/browserTracingIntegration.js'); const serverTimingTracePropagation = require('../server/serverTimingTracePropagation.js'); // import/export got a false positive, and affects most of our index barrel files // can be removed once following issue is fixed: https://github.com/import-js/eslint-plugin-import/issues/703 /* eslint-disable import/export */ /** * Instruments a Remix build to capture errors and performance data. * @param build The Remix build to instrument. * @returns The instrumented Remix build. */ const instrumentBuild = build => { return instrumentServer.instrumentBuild(build, { instrumentTracing: true, }); }; exports.makeWrappedCreateRequestHandler = instrumentServer.makeWrappedCreateRequestHandler; exports.sentryHandleError = instrumentServer.sentryHandleError; exports.ErrorBoundary = react.ErrorBoundary; exports.captureRemixErrorBoundaryError = errors.captureRemixErrorBoundaryError; exports.withSentry = performance.withSentry; exports.SDK_VERSION = core.SDK_VERSION; exports.SEMANTIC_ATTRIBUTE_SENTRY_OP = core.SEMANTIC_ATTRIBUTE_SENTRY_OP; exports.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN = core.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN; exports.SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE = core.SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE; exports.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE = core.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE; exports.Scope = core.Scope; exports.addBreadcrumb = core.addBreadcrumb; exports.addEventProcessor = core.addEventProcessor; exports.addIntegration = core.addIntegration; exports.captureCheckIn = core.captureCheckIn; exports.captureConsoleIntegration = core.captureConsoleIntegration; exports.captureEvent = core.captureEvent; exports.captureException = core.captureException; exports.captureFeedback = core.captureFeedback; exports.captureMessage = core.captureMessage; exports.close = core.close; exports.continueTrace = core.continueTrace; exports.createTransport = core.createTransport; exports.dedupeIntegration = core.dedupeIntegration; exports.extraErrorDataIntegration = core.extraErrorDataIntegration; exports.featureFlagsIntegration = core.featureFlagsIntegration; exports.flush = core.flush; exports.functionToStringIntegration = core.functionToStringIntegration; exports.getActiveSpan = core.getActiveSpan; exports.getClient = core.getClient; exports.getCurrentScope = core.getCurrentScope; exports.getGlobalScope = core.getGlobalScope; exports.getIsolationScope = core.getIsolationScope; exports.getRootSpan = core.getRootSpan; exports.getSpanDescendants = core.getSpanDescendants; exports.getSpanStatusFromHttpCode = core.getSpanStatusFromHttpCode; exports.getTraceData = core.getTraceData; exports.getTraceMetaTags = core.getTraceMetaTags; exports.inboundFiltersIntegration = core.inboundFiltersIntegration; exports.instrumentSupabaseClient = core.instrumentSupabaseClient; exports.isEnabled = core.isEnabled; exports.isInitialized = core.isInitialized; exports.lastEventId = core.lastEventId; exports.linkedErrorsIntegration = core.linkedErrorsIntegration; exports.moduleMetadataIntegration = core.moduleMetadataIntegration; exports.requestDataIntegration = core.requestDataIntegration; exports.rewriteFramesIntegration = core.rewriteFramesIntegration; exports.setContext = core.setContext; exports.setCurrentClient = core.setCurrentClient; exports.setExtra = core.setExtra; exports.setExtras = core.setExtras; exports.setHttpStatus = core.setHttpStatus; exports.setMeasurement = core.setMeasurement; exports.setTag = core.setTag; exports.setTags = core.setTags; exports.setUser = core.setUser; exports.spanToBaggageHeader = core.spanToBaggageHeader; exports.spanToJSON = core.spanToJSON; exports.spanToTraceHeader = core.spanToTraceHeader; exports.startInactiveSpan = core.startInactiveSpan; exports.startNewTrace = core.startNewTrace; exports.startSpan = core.startSpan; exports.startSpanManual = core.startSpanManual; exports.supabaseIntegration = core.supabaseIntegration; exports.suppressTracing = core.suppressTracing; exports.trpcMiddleware = core.trpcMiddleware; exports.updateSpanName = core.updateSpanName; exports.withActiveSpan = core.withActiveSpan; exports.withIsolationScope = core.withIsolationScope; exports.withMonitor = core.withMonitor; exports.withScope = core.withScope; exports.zodErrorsIntegration = core.zodErrorsIntegration; exports.browserTracingIntegration = browserTracingIntegration.browserTracingIntegration; exports.generateSentryServerTimingHeader = serverTimingTracePropagation.generateSentryServerTimingHeader; exports.instrumentBuild = instrumentBuild; Object.prototype.hasOwnProperty.call(react, '__proto__') && !Object.prototype.hasOwnProperty.call(exports, '__proto__') && Object.defineProperty(exports, '__proto__', { enumerable: true, value: react['__proto__'] }); Object.keys(react).forEach(k => { if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) exports[k] = react[k]; }); //# sourceMappingURL=index.js.map