-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Expand file tree
/
Copy pathcommon-exports.ts
More file actions
143 lines (137 loc) · 3.91 KB
/
common-exports.ts
File metadata and controls
143 lines (137 loc) · 3.91 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
/**
* Common exports shared between the main entry point (index.ts) and the light entry point (light/index.ts).
*
* Add exports here that should be available in both entry points. Entry-point-specific exports
* (e.g., OTel-dependent ones for index.ts, or light-specific ones for light/index.ts) should
* remain in their respective index files.
*
* Deprecated exports should NOT go in this file — they belong in the entry point that still
* needs to ship them for backwards compatibility.
*/
import * as logger from './logs/exports';
// Node-core integrations (not OTel-dependent)
export { nodeContextIntegration } from './integrations/context';
export { contextLinesIntegration } from './integrations/contextlines';
export { localVariablesIntegration } from './integrations/local-variables';
export { modulesIntegration } from './integrations/modules';
export { onUncaughtExceptionIntegration } from './integrations/onuncaughtexception';
export { onUnhandledRejectionIntegration } from './integrations/onunhandledrejection';
export { spotlightIntegration } from './integrations/spotlight';
export { systemErrorIntegration } from './integrations/systemError';
export { childProcessIntegration } from './integrations/childProcess';
export { createSentryWinstonTransport } from './integrations/winston';
export { pinoIntegration } from './integrations/pino';
// SDK utilities
export { getSentryRelease, defaultStackParser } from './sdk/api';
export { createGetModuleFromFilename } from './utils/module';
export { addOriginToSpan } from './utils/addOriginToSpan';
export { getRequestUrl } from './utils/getRequestUrl';
export { initializeEsmLoader } from './sdk/esmLoader';
export { isCjs } from './utils/detection';
export { createMissingInstrumentationContext } from './utils/createMissingInstrumentationContext';
export { makeNodeTransport, type NodeTransportOptions } from './transports';
export type { HTTPModuleRequestIncomingMessage } from './transports/http-module';
export { cron } from './cron';
export { NODE_VERSION } from './nodeVersion';
export type { NodeOptions } from './types';
// Re-export from @sentry/core
export {
addBreadcrumb,
isInitialized,
isEnabled,
getGlobalScope,
lastEventId,
close,
createTransport,
flush,
SDK_VERSION,
getSpanStatusFromHttpCode,
setHttpStatus,
captureCheckIn,
withMonitor,
requestDataIntegration,
functionToStringIntegration,
eventFiltersIntegration,
linkedErrorsIntegration,
addEventProcessor,
setContext,
setExtra,
setExtras,
setTag,
setTags,
setUser,
SEMANTIC_ATTRIBUTE_SENTRY_OP,
SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN,
SEMANTIC_ATTRIBUTE_SENTRY_SOURCE,
SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE,
setCurrentClient,
Scope,
setMeasurement,
getSpanDescendants,
parameterize,
getClient,
getCurrentScope,
getIsolationScope,
getTraceData,
getTraceMetaTags,
continueTrace,
withScope,
withIsolationScope,
captureException,
captureEvent,
captureMessage,
captureFeedback,
captureConsoleIntegration,
dedupeIntegration,
extraErrorDataIntegration,
rewriteFramesIntegration,
startSession,
captureSession,
endSession,
addIntegration,
startSpan,
startSpanManual,
startInactiveSpan,
startNewTrace,
suppressTracing,
getActiveSpan,
withActiveSpan,
getRootSpan,
spanToJSON,
spanToTraceHeader,
spanToBaggageHeader,
trpcMiddleware,
updateSpanName,
supabaseIntegration,
instrumentSupabaseClient,
zodErrorsIntegration,
profiler,
consoleLoggingIntegration,
createConsolaReporter,
consoleIntegration,
wrapMcpServerWithSentry,
featureFlagsIntegration,
spanStreamingIntegration,
metrics,
envToBool,
} from '@sentry/core';
export type {
Breadcrumb,
BreadcrumbHint,
PolymorphicRequest,
RequestEventData,
SdkInfo,
Event,
EventHint,
ErrorEvent,
Exception,
Session,
SeverityLevel,
StackFrame,
Stacktrace,
Thread,
User,
Span,
FeatureFlagsIntegration,
} from '@sentry/core';
export { logger };