@sentry/elysia 11.12.0 → 11.14.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,22 @@
1
+ // \0rolldown/runtime.js
2
+ var __create = Object.create;
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __getProtoOf = Object.getPrototypeOf;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __copyProps = (to, from, except, desc) => {
9
+ if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
10
+ key = keys[i];
11
+ if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
12
+ get: ((k) => from[k]).bind(null, key),
13
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
14
+ });
15
+ }
16
+ return to;
17
+ };
18
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule || !__hasOwnProp.call(mod, "default") ? __defProp(target, "default", {
19
+ value: mod,
20
+ enumerable: true
21
+ }) : target, mod));
22
+ exports.__toESM = __toESM;
@@ -1,195 +1,191 @@
1
- Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
-
3
- const bun = require('@sentry/bun');
4
- const core = require('@sentry/core');
5
- const withElysia = require('./withElysia.js');
6
- const sdk = require('./sdk.js');
7
-
8
-
9
-
10
- exports.NodeClient = bun.NodeClient;
11
- exports.OpenFeatureIntegrationHook = bun.OpenFeatureIntegrationHook;
12
- exports.SDK_VERSION = bun.SDK_VERSION;
13
- exports.SEMANTIC_ATTRIBUTE_SENTRY_OP = bun.SEMANTIC_ATTRIBUTE_SENTRY_OP;
14
- exports.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN = bun.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN;
15
- exports.SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE = bun.SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE;
16
- exports.Scope = bun.Scope;
17
- exports.SentryMastraExporter = bun.SentryMastraExporter;
18
- exports.addBreadcrumb = bun.addBreadcrumb;
19
- exports.addEventProcessor = bun.addEventProcessor;
20
- exports.addIntegration = bun.addIntegration;
21
- exports.amqplibIntegration = bun.amqplibIntegration;
22
- exports.anrIntegration = bun.anrIntegration;
23
- exports.anthropicAIIntegration = bun.anthropicAIIntegration;
24
- exports.bindScopeToEmitter = bun.bindScopeToEmitter;
25
- exports.buildLaunchDarklyFlagUsedHandler = bun.buildLaunchDarklyFlagUsedHandler;
26
- exports.bunRuntimeMetricsIntegration = bun.bunRuntimeMetricsIntegration;
27
- exports.bunServerIntegration = bun.bunServerIntegration;
28
- exports.captureCheckIn = bun.captureCheckIn;
29
- exports.captureEvent = bun.captureEvent;
30
- exports.captureException = bun.captureException;
31
- exports.captureFeedback = bun.captureFeedback;
32
- exports.captureMessage = bun.captureMessage;
33
- exports.captureSession = bun.captureSession;
34
- exports.close = bun.close;
35
- exports.consoleIntegration = bun.consoleIntegration;
36
- exports.consoleLoggingIntegration = bun.consoleLoggingIntegration;
37
- exports.contextLinesIntegration = bun.contextLinesIntegration;
38
- exports.continueTrace = bun.continueTrace;
39
- exports.createConsolaReporter = bun.createConsolaReporter;
40
- exports.createFlueInstrumentation = bun.createFlueInstrumentation;
41
- exports.createGetModuleFromFilename = bun.createGetModuleFromFilename;
42
- exports.createLangChainCallbackHandler = bun.createLangChainCallbackHandler;
43
- exports.createSentryWinstonTransport = bun.createSentryWinstonTransport;
44
- exports.createTransport = bun.createTransport;
45
- exports.cron = bun.cron;
46
- exports.cronJobIntegration = bun.cronJobIntegration;
47
- exports.dataloaderIntegration = bun.dataloaderIntegration;
48
- exports.defaultStackParser = bun.defaultStackParser;
49
- exports.disableAnrDetectionForCallback = bun.disableAnrDetectionForCallback;
50
- exports.endSession = bun.endSession;
51
- exports.eventFiltersIntegration = bun.eventFiltersIntegration;
52
- exports.expressErrorHandler = bun.expressErrorHandler;
53
- exports.expressIntegration = bun.expressIntegration;
54
- exports.fastifyIntegration = bun.fastifyIntegration;
55
- exports.featureFlagsIntegration = bun.featureFlagsIntegration;
56
- exports.fetchIntegration = bun.fetchIntegration;
57
- exports.firebaseIntegration = bun.firebaseIntegration;
58
- exports.flush = bun.flush;
59
- exports.fsIntegration = bun.fsIntegration;
60
- exports.functionToStringIntegration = bun.functionToStringIntegration;
61
- exports.genericPoolIntegration = bun.genericPoolIntegration;
62
- exports.getActiveSpan = bun.getActiveSpan;
63
- exports.getAutoPerformanceIntegrations = bun.getAutoPerformanceIntegrations;
64
- exports.getClient = bun.getClient;
65
- exports.getCurrentScope = bun.getCurrentScope;
66
- exports.getGlobalScope = bun.getGlobalScope;
67
- exports.getIsolationScope = bun.getIsolationScope;
68
- exports.getRootSpan = bun.getRootSpan;
69
- exports.getSentryRelease = bun.getSentryRelease;
70
- exports.getSpanDescendants = bun.getSpanDescendants;
71
- exports.getSpanStatusFromHttpCode = bun.getSpanStatusFromHttpCode;
72
- exports.getTraceData = bun.getTraceData;
73
- exports.getTraceMetaTags = bun.getTraceMetaTags;
74
- exports.getTunnelPath = bun.getTunnelPath;
75
- exports.googleGenAIIntegration = bun.googleGenAIIntegration;
76
- exports.graphqlIntegration = bun.graphqlIntegration;
77
- exports.groqIntegration = bun.groqIntegration;
78
- exports.growthbookIntegration = bun.growthbookIntegration;
79
- exports.handleTunnelRequest = bun.handleTunnelRequest;
80
- exports.handleTunnelRequestIfMatched = bun.handleTunnelRequestIfMatched;
81
- exports.hapiIntegration = bun.hapiIntegration;
82
- exports.honoIntegration = bun.honoIntegration;
83
- exports.honoMiddleware = bun.honoMiddleware;
84
- exports.httpHeadersToSpanAttributes = bun.httpHeadersToSpanAttributes;
85
- exports.httpIntegration = bun.httpIntegration;
86
- exports.httpServerIntegration = bun.httpServerIntegration;
87
- exports.httpServerSpansIntegration = bun.httpServerSpansIntegration;
88
- exports.initOpenTelemetry = bun.initOpenTelemetry;
89
- exports.instrumentAnthropicAiClient = bun.instrumentAnthropicAiClient;
90
- exports.instrumentGoogleGenAIClient = bun.instrumentGoogleGenAIClient;
91
- exports.instrumentLangChainEmbeddings = bun.instrumentLangChainEmbeddings;
92
- exports.instrumentMistralAiClient = bun.instrumentMistralAiClient;
93
- exports.instrumentOpenAiClient = bun.instrumentOpenAiClient;
94
- exports.instrumentStateGraph = bun.instrumentStateGraph;
95
- exports.instrumentStateGraphCompile = bun.instrumentStateGraphCompile;
96
- exports.instrumentSupabaseClient = bun.instrumentSupabaseClient;
97
- exports.instrumentTypeSafeClient = bun.instrumentTypeSafeClient;
98
- exports.isEnabled = bun.isEnabled;
99
- exports.isInitialized = bun.isInitialized;
100
- exports.isTunnelRequest = bun.isTunnelRequest;
101
- exports.kafkaIntegration = bun.kafkaIntegration;
102
- exports.knexIntegration = bun.knexIntegration;
103
- exports.koaIntegration = bun.koaIntegration;
104
- exports.langChainIntegration = bun.langChainIntegration;
105
- exports.langGraphIntegration = bun.langGraphIntegration;
106
- exports.lastEventId = bun.lastEventId;
107
- exports.launchDarklyIntegration = bun.launchDarklyIntegration;
108
- exports.linkedErrorsIntegration = bun.linkedErrorsIntegration;
109
- exports.localVariablesIntegration = bun.localVariablesIntegration;
110
- exports.logger = bun.logger;
111
- exports.lruMemoizerIntegration = bun.lruMemoizerIntegration;
112
- exports.makeFetchTransport = bun.makeFetchTransport;
113
- exports.makeNodeTransport = bun.makeNodeTransport;
114
- exports.mastraIntegration = bun.mastraIntegration;
115
- exports.mcpServerIntegration = bun.mcpServerIntegration;
116
- exports.metrics = bun.metrics;
117
- exports.mistralAIIntegration = bun.mistralAIIntegration;
118
- exports.modulesIntegration = bun.modulesIntegration;
119
- exports.mongoIntegration = bun.mongoIntegration;
120
- exports.mongooseIntegration = bun.mongooseIntegration;
121
- exports.mysql2Integration = bun.mysql2Integration;
122
- exports.mysqlIntegration = bun.mysqlIntegration;
123
- exports.neonIntegration = bun.neonIntegration;
124
- exports.nitroIntegration = bun.nitroIntegration;
125
- exports.nodeContextIntegration = bun.nodeContextIntegration;
126
- exports.nodeCronIntegration = bun.nodeCronIntegration;
127
- exports.nodeScheduleIntegration = bun.nodeScheduleIntegration;
128
- exports.onUncaughtExceptionIntegration = bun.onUncaughtExceptionIntegration;
129
- exports.onUnhandledRejectionIntegration = bun.onUnhandledRejectionIntegration;
130
- exports.openAIIntegration = bun.openAIIntegration;
131
- exports.openFeatureIntegration = bun.openFeatureIntegration;
132
- exports.parameterize = bun.parameterize;
133
- exports.piDurableIntegration = bun.piDurableIntegration;
134
- exports.postgresIntegration = bun.postgresIntegration;
135
- exports.postgresJsIntegration = bun.postgresJsIntegration;
136
- exports.prismaIntegration = bun.prismaIntegration;
137
- exports.processSessionIntegration = bun.processSessionIntegration;
138
- exports.profiler = bun.profiler;
139
- exports.redisIntegration = bun.redisIntegration;
140
- exports.requestDataIntegration = bun.requestDataIntegration;
141
- exports.serveTunnelIntegration = bun.serveTunnelIntegration;
142
- exports.setAttribute = bun.setAttribute;
143
- exports.setAttributes = bun.setAttributes;
144
- exports.setContext = bun.setContext;
145
- exports.setConversationId = bun.setConversationId;
146
- exports.setCurrentClient = bun.setCurrentClient;
147
- exports.setExtra = bun.setExtra;
148
- exports.setExtras = bun.setExtras;
149
- exports.setHttpStatus = bun.setHttpStatus;
150
- exports.setMeasurement = bun.setMeasurement;
151
- exports.setTag = bun.setTag;
152
- exports.setTags = bun.setTags;
153
- exports.setUser = bun.setUser;
154
- exports.setupExpressErrorHandler = bun.setupExpressErrorHandler;
155
- exports.setupFastifyErrorHandler = bun.setupFastifyErrorHandler;
156
- exports.setupHapiErrorHandler = bun.setupHapiErrorHandler;
157
- exports.setupKoaErrorHandler = bun.setupKoaErrorHandler;
158
- exports.spanStreamingIntegration = bun.spanStreamingIntegration;
159
- exports.spanToBaggageHeader = bun.spanToBaggageHeader;
160
- exports.spanToJSON = bun.spanToJSON;
161
- exports.spanToStaticSpanJSON = bun.spanToStaticSpanJSON;
162
- exports.spanToTraceHeader = bun.spanToTraceHeader;
163
- exports.spotlightIntegration = bun.spotlightIntegration;
164
- exports.startInactiveSpan = bun.startInactiveSpan;
165
- exports.startNewTrace = bun.startNewTrace;
166
- exports.startSession = bun.startSession;
167
- exports.startSpan = bun.startSpan;
168
- exports.startSpanManual = bun.startSpanManual;
169
- exports.statsigIntegration = bun.statsigIntegration;
170
- exports.supabaseIntegration = bun.supabaseIntegration;
171
- exports.suppressTracing = bun.suppressTracing;
172
- exports.tediousIntegration = bun.tediousIntegration;
173
- exports.togetherAIIntegration = bun.togetherAIIntegration;
174
- exports.trpcMiddleware = bun.trpcMiddleware;
175
- exports.typesafeIntegration = bun.typesafeIntegration;
176
- exports.unleashIntegration = bun.unleashIntegration;
177
- exports.updateSpanName = bun.updateSpanName;
178
- exports.vercelAIIntegration = bun.vercelAIIntegration;
179
- exports.winterCGHeadersToDict = bun.winterCGHeadersToDict;
180
- exports.withActiveSpan = bun.withActiveSpan;
181
- exports.withIsolationScope = bun.withIsolationScope;
182
- exports.withMonitor = bun.withMonitor;
183
- exports.withScope = bun.withScope;
184
- exports.withStaticSpan = bun.withStaticSpan;
185
- exports.withStreamedSpan = bun.withStreamedSpan;
186
- exports.wrapMcpServerWithSentry = bun.wrapMcpServerWithSentry;
187
- exports.zodErrorsIntegration = bun.zodErrorsIntegration;
188
- exports.captureConsoleIntegration = core.captureConsoleIntegration;
189
- exports.dedupeIntegration = core.dedupeIntegration;
190
- exports.extraErrorDataIntegration = core.extraErrorDataIntegration;
191
- exports.rewriteFramesIntegration = core.rewriteFramesIntegration;
192
- exports.withElysia = withElysia.withElysia;
193
- exports.getDefaultIntegrations = sdk.getDefaultIntegrations;
194
- exports.init = sdk.init;
195
- //# sourceMappingURL=index.js.map
1
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
+ const require_withElysia = require("./withElysia.js");
3
+ const require_sdk = require("./sdk.js");
4
+ let _sentry_bun = require("@sentry/bun");
5
+ let _sentry_core = require("@sentry/core");
6
+ exports.NodeClient = _sentry_bun.NodeClient;
7
+ exports.OpenFeatureIntegrationHook = _sentry_bun.OpenFeatureIntegrationHook;
8
+ exports.SDK_VERSION = _sentry_bun.SDK_VERSION;
9
+ exports.SEMANTIC_ATTRIBUTE_SENTRY_OP = _sentry_bun.SEMANTIC_ATTRIBUTE_SENTRY_OP;
10
+ exports.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN = _sentry_bun.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN;
11
+ exports.SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE = _sentry_bun.SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE;
12
+ exports.Scope = _sentry_bun.Scope;
13
+ exports.SentryMastraExporter = _sentry_bun.SentryMastraExporter;
14
+ exports.addBreadcrumb = _sentry_bun.addBreadcrumb;
15
+ exports.addEventProcessor = _sentry_bun.addEventProcessor;
16
+ exports.addIntegration = _sentry_bun.addIntegration;
17
+ exports.amqplibIntegration = _sentry_bun.amqplibIntegration;
18
+ exports.anrIntegration = _sentry_bun.anrIntegration;
19
+ exports.anthropicAIIntegration = _sentry_bun.anthropicAIIntegration;
20
+ exports.bindScopeToEmitter = _sentry_bun.bindScopeToEmitter;
21
+ exports.buildLaunchDarklyFlagUsedHandler = _sentry_bun.buildLaunchDarklyFlagUsedHandler;
22
+ exports.bunRuntimeMetricsIntegration = _sentry_bun.bunRuntimeMetricsIntegration;
23
+ exports.bunServerIntegration = _sentry_bun.bunServerIntegration;
24
+ exports.captureCheckIn = _sentry_bun.captureCheckIn;
25
+ exports.captureConsoleIntegration = _sentry_core.captureConsoleIntegration;
26
+ exports.captureEvent = _sentry_bun.captureEvent;
27
+ exports.captureException = _sentry_bun.captureException;
28
+ exports.captureFeedback = _sentry_bun.captureFeedback;
29
+ exports.captureMessage = _sentry_bun.captureMessage;
30
+ exports.captureSession = _sentry_bun.captureSession;
31
+ exports.close = _sentry_bun.close;
32
+ exports.consoleIntegration = _sentry_bun.consoleIntegration;
33
+ exports.consoleLoggingIntegration = _sentry_bun.consoleLoggingIntegration;
34
+ exports.contextLinesIntegration = _sentry_bun.contextLinesIntegration;
35
+ exports.continueTrace = _sentry_bun.continueTrace;
36
+ exports.createConsolaReporter = _sentry_bun.createConsolaReporter;
37
+ exports.createFlueInstrumentation = _sentry_bun.createFlueInstrumentation;
38
+ exports.createGetModuleFromFilename = _sentry_bun.createGetModuleFromFilename;
39
+ exports.createLangChainCallbackHandler = _sentry_bun.createLangChainCallbackHandler;
40
+ exports.createSentryWinstonTransport = _sentry_bun.createSentryWinstonTransport;
41
+ exports.createTransport = _sentry_bun.createTransport;
42
+ exports.cron = _sentry_bun.cron;
43
+ exports.cronJobIntegration = _sentry_bun.cronJobIntegration;
44
+ exports.dataloaderIntegration = _sentry_bun.dataloaderIntegration;
45
+ exports.dedupeIntegration = _sentry_core.dedupeIntegration;
46
+ exports.defaultStackParser = _sentry_bun.defaultStackParser;
47
+ exports.disableAnrDetectionForCallback = _sentry_bun.disableAnrDetectionForCallback;
48
+ exports.endSession = _sentry_bun.endSession;
49
+ exports.eventFiltersIntegration = _sentry_bun.eventFiltersIntegration;
50
+ exports.expressErrorHandler = _sentry_bun.expressErrorHandler;
51
+ exports.expressIntegration = _sentry_bun.expressIntegration;
52
+ exports.extraErrorDataIntegration = _sentry_core.extraErrorDataIntegration;
53
+ exports.fastifyIntegration = _sentry_bun.fastifyIntegration;
54
+ exports.featureFlagsIntegration = _sentry_bun.featureFlagsIntegration;
55
+ exports.fetchIntegration = _sentry_bun.fetchIntegration;
56
+ exports.firebaseIntegration = _sentry_bun.firebaseIntegration;
57
+ exports.flush = _sentry_bun.flush;
58
+ exports.fsIntegration = _sentry_bun.fsIntegration;
59
+ exports.functionToStringIntegration = _sentry_bun.functionToStringIntegration;
60
+ exports.genericPoolIntegration = _sentry_bun.genericPoolIntegration;
61
+ exports.getActiveSpan = _sentry_bun.getActiveSpan;
62
+ exports.getAutoPerformanceIntegrations = _sentry_bun.getAutoPerformanceIntegrations;
63
+ exports.getClient = _sentry_bun.getClient;
64
+ exports.getCurrentScope = _sentry_bun.getCurrentScope;
65
+ exports.getDefaultIntegrations = require_sdk.getDefaultIntegrations;
66
+ exports.getGlobalScope = _sentry_bun.getGlobalScope;
67
+ exports.getIsolationScope = _sentry_bun.getIsolationScope;
68
+ exports.getRootSpan = _sentry_bun.getRootSpan;
69
+ exports.getSentryRelease = _sentry_bun.getSentryRelease;
70
+ exports.getSpanDescendants = _sentry_bun.getSpanDescendants;
71
+ exports.getSpanStatusFromHttpCode = _sentry_bun.getSpanStatusFromHttpCode;
72
+ exports.getTraceData = _sentry_bun.getTraceData;
73
+ exports.getTraceMetaTags = _sentry_bun.getTraceMetaTags;
74
+ exports.getTunnelPath = _sentry_bun.getTunnelPath;
75
+ exports.googleGenAIIntegration = _sentry_bun.googleGenAIIntegration;
76
+ exports.graphqlIntegration = _sentry_bun.graphqlIntegration;
77
+ exports.groqIntegration = _sentry_bun.groqIntegration;
78
+ exports.growthbookIntegration = _sentry_bun.growthbookIntegration;
79
+ exports.handleTunnelRequest = _sentry_bun.handleTunnelRequest;
80
+ exports.handleTunnelRequestIfMatched = _sentry_bun.handleTunnelRequestIfMatched;
81
+ exports.hapiIntegration = _sentry_bun.hapiIntegration;
82
+ exports.honoIntegration = _sentry_bun.honoIntegration;
83
+ exports.honoMiddleware = _sentry_bun.honoMiddleware;
84
+ exports.httpHeadersToSpanAttributes = _sentry_bun.httpHeadersToSpanAttributes;
85
+ exports.httpIntegration = _sentry_bun.httpIntegration;
86
+ exports.httpServerIntegration = _sentry_bun.httpServerIntegration;
87
+ exports.httpServerSpansIntegration = _sentry_bun.httpServerSpansIntegration;
88
+ exports.init = require_sdk.init;
89
+ exports.initOpenTelemetry = _sentry_bun.initOpenTelemetry;
90
+ exports.instrumentAnthropicAiClient = _sentry_bun.instrumentAnthropicAiClient;
91
+ exports.instrumentGoogleGenAIClient = _sentry_bun.instrumentGoogleGenAIClient;
92
+ exports.instrumentLangChainEmbeddings = _sentry_bun.instrumentLangChainEmbeddings;
93
+ exports.instrumentMistralAiClient = _sentry_bun.instrumentMistralAiClient;
94
+ exports.instrumentOpenAiClient = _sentry_bun.instrumentOpenAiClient;
95
+ exports.instrumentStateGraph = _sentry_bun.instrumentStateGraph;
96
+ exports.instrumentStateGraphCompile = _sentry_bun.instrumentStateGraphCompile;
97
+ exports.instrumentSupabaseClient = _sentry_bun.instrumentSupabaseClient;
98
+ exports.instrumentTypeSafeClient = _sentry_bun.instrumentTypeSafeClient;
99
+ exports.isEnabled = _sentry_bun.isEnabled;
100
+ exports.isInitialized = _sentry_bun.isInitialized;
101
+ exports.isTunnelRequest = _sentry_bun.isTunnelRequest;
102
+ exports.kafkaIntegration = _sentry_bun.kafkaIntegration;
103
+ exports.knexIntegration = _sentry_bun.knexIntegration;
104
+ exports.koaIntegration = _sentry_bun.koaIntegration;
105
+ exports.langChainIntegration = _sentry_bun.langChainIntegration;
106
+ exports.langGraphIntegration = _sentry_bun.langGraphIntegration;
107
+ exports.lastEventId = _sentry_bun.lastEventId;
108
+ exports.launchDarklyIntegration = _sentry_bun.launchDarklyIntegration;
109
+ exports.linkedErrorsIntegration = _sentry_bun.linkedErrorsIntegration;
110
+ exports.localVariablesIntegration = _sentry_bun.localVariablesIntegration;
111
+ exports.logger = _sentry_bun.logger;
112
+ exports.lruMemoizerIntegration = _sentry_bun.lruMemoizerIntegration;
113
+ exports.makeFetchTransport = _sentry_bun.makeFetchTransport;
114
+ exports.makeNodeTransport = _sentry_bun.makeNodeTransport;
115
+ exports.mastraIntegration = _sentry_bun.mastraIntegration;
116
+ exports.mcpServerIntegration = _sentry_bun.mcpServerIntegration;
117
+ exports.metrics = _sentry_bun.metrics;
118
+ exports.mistralAIIntegration = _sentry_bun.mistralAIIntegration;
119
+ exports.modulesIntegration = _sentry_bun.modulesIntegration;
120
+ exports.mongoIntegration = _sentry_bun.mongoIntegration;
121
+ exports.mongooseIntegration = _sentry_bun.mongooseIntegration;
122
+ exports.mysql2Integration = _sentry_bun.mysql2Integration;
123
+ exports.mysqlIntegration = _sentry_bun.mysqlIntegration;
124
+ exports.neonIntegration = _sentry_bun.neonIntegration;
125
+ exports.nitroIntegration = _sentry_bun.nitroIntegration;
126
+ exports.nodeContextIntegration = _sentry_bun.nodeContextIntegration;
127
+ exports.nodeCronIntegration = _sentry_bun.nodeCronIntegration;
128
+ exports.nodeScheduleIntegration = _sentry_bun.nodeScheduleIntegration;
129
+ exports.onUncaughtExceptionIntegration = _sentry_bun.onUncaughtExceptionIntegration;
130
+ exports.onUnhandledRejectionIntegration = _sentry_bun.onUnhandledRejectionIntegration;
131
+ exports.openAIIntegration = _sentry_bun.openAIIntegration;
132
+ exports.openFeatureIntegration = _sentry_bun.openFeatureIntegration;
133
+ exports.parameterize = _sentry_bun.parameterize;
134
+ exports.piAiIntegration = _sentry_bun.piAiIntegration;
135
+ exports.piDurableIntegration = _sentry_bun.piDurableIntegration;
136
+ exports.postgresIntegration = _sentry_bun.postgresIntegration;
137
+ exports.postgresJsIntegration = _sentry_bun.postgresJsIntegration;
138
+ exports.prismaIntegration = _sentry_bun.prismaIntegration;
139
+ exports.processSessionIntegration = _sentry_bun.processSessionIntegration;
140
+ exports.profiler = _sentry_bun.profiler;
141
+ exports.redisIntegration = _sentry_bun.redisIntegration;
142
+ exports.requestDataIntegration = _sentry_bun.requestDataIntegration;
143
+ exports.rewriteFramesIntegration = _sentry_core.rewriteFramesIntegration;
144
+ exports.serveTunnelIntegration = _sentry_bun.serveTunnelIntegration;
145
+ exports.setAttribute = _sentry_bun.setAttribute;
146
+ exports.setAttributes = _sentry_bun.setAttributes;
147
+ exports.setContext = _sentry_bun.setContext;
148
+ exports.setConversationId = _sentry_bun.setConversationId;
149
+ exports.setCurrentClient = _sentry_bun.setCurrentClient;
150
+ exports.setExtra = _sentry_bun.setExtra;
151
+ exports.setExtras = _sentry_bun.setExtras;
152
+ exports.setHttpStatus = _sentry_bun.setHttpStatus;
153
+ exports.setMeasurement = _sentry_bun.setMeasurement;
154
+ exports.setTag = _sentry_bun.setTag;
155
+ exports.setTags = _sentry_bun.setTags;
156
+ exports.setUser = _sentry_bun.setUser;
157
+ exports.setupExpressErrorHandler = _sentry_bun.setupExpressErrorHandler;
158
+ exports.setupFastifyErrorHandler = _sentry_bun.setupFastifyErrorHandler;
159
+ exports.setupHapiErrorHandler = _sentry_bun.setupHapiErrorHandler;
160
+ exports.setupKoaErrorHandler = _sentry_bun.setupKoaErrorHandler;
161
+ exports.spanStreamingIntegration = _sentry_bun.spanStreamingIntegration;
162
+ exports.spanToBaggageHeader = _sentry_bun.spanToBaggageHeader;
163
+ exports.spanToJSON = _sentry_bun.spanToJSON;
164
+ exports.spanToStaticSpanJSON = _sentry_bun.spanToStaticSpanJSON;
165
+ exports.spanToTraceHeader = _sentry_bun.spanToTraceHeader;
166
+ exports.spotlightIntegration = _sentry_bun.spotlightIntegration;
167
+ exports.startInactiveSpan = _sentry_bun.startInactiveSpan;
168
+ exports.startNewTrace = _sentry_bun.startNewTrace;
169
+ exports.startSession = _sentry_bun.startSession;
170
+ exports.startSpan = _sentry_bun.startSpan;
171
+ exports.startSpanManual = _sentry_bun.startSpanManual;
172
+ exports.statsigIntegration = _sentry_bun.statsigIntegration;
173
+ exports.supabaseIntegration = _sentry_bun.supabaseIntegration;
174
+ exports.suppressTracing = _sentry_bun.suppressTracing;
175
+ exports.tediousIntegration = _sentry_bun.tediousIntegration;
176
+ exports.togetherAIIntegration = _sentry_bun.togetherAIIntegration;
177
+ exports.trpcMiddleware = _sentry_bun.trpcMiddleware;
178
+ exports.typesafeIntegration = _sentry_bun.typesafeIntegration;
179
+ exports.unleashIntegration = _sentry_bun.unleashIntegration;
180
+ exports.updateSpanName = _sentry_bun.updateSpanName;
181
+ exports.vercelAIIntegration = _sentry_bun.vercelAIIntegration;
182
+ exports.winterCGHeadersToDict = _sentry_bun.winterCGHeadersToDict;
183
+ exports.withActiveSpan = _sentry_bun.withActiveSpan;
184
+ exports.withElysia = require_withElysia.withElysia;
185
+ exports.withIsolationScope = _sentry_bun.withIsolationScope;
186
+ exports.withMonitor = _sentry_bun.withMonitor;
187
+ exports.withScope = _sentry_bun.withScope;
188
+ exports.withStaticSpan = _sentry_bun.withStaticSpan;
189
+ exports.withStreamedSpan = _sentry_bun.withStreamedSpan;
190
+ exports.wrapMcpServerWithSentry = _sentry_bun.wrapMcpServerWithSentry;
191
+ exports.zodErrorsIntegration = _sentry_bun.zodErrorsIntegration;
package/build/cjs/sdk.js CHANGED
@@ -1,33 +1,52 @@
1
- Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
-
3
- const os = require('node:os');
4
- const bun = require('@sentry/bun');
5
- const core = require('@sentry/core');
6
-
1
+ const require_runtime = require("./_virtual/_rolldown/runtime.js");
2
+ let _sentry_bun = require("@sentry/bun");
3
+ let _sentry_core = require("@sentry/core");
4
+ let node_os = require("node:os");
5
+ node_os = require_runtime.__toESM(node_os);
6
+ // src/sdk.ts
7
+ /** Get the default integrations for the Elysia SDK. */
7
8
  function getDefaultIntegrations(_options) {
8
- return bun.getDefaultIntegrations(_options).filter((i) => i.name !== bun.bunServerIntegration().name);
9
+ return (0, _sentry_bun.getDefaultIntegrations)(_options).filter((i) => i.name !== (0, _sentry_bun.bunServerIntegration)().name);
9
10
  }
11
+ /**
12
+ * Get the runtime name and version.
13
+ */
10
14
  function getRuntime() {
11
- if (typeof Bun !== "undefined") {
12
- return { name: "bun", version: Bun.version };
13
- }
14
- return { name: "node", version: process.version };
15
+ if (typeof Bun !== "undefined") return {
16
+ name: "bun",
17
+ version: Bun.version
18
+ };
19
+ return {
20
+ name: "node",
21
+ version: process.version
22
+ };
15
23
  }
24
+ /**
25
+ * Initializes the Sentry Elysia SDK.
26
+ *
27
+ * @example
28
+ * ```javascript
29
+ * import * as Sentry from '@sentry/elysia';
30
+ *
31
+ * Sentry.init({
32
+ * dsn: '__DSN__',
33
+ * tracesSampleRate: 1.0,
34
+ * });
35
+ * ```
36
+ */
16
37
  function init(userOptions = {}) {
17
- const options = {
18
- ...userOptions,
19
- platform: "javascript",
20
- runtime: getRuntime(),
21
- serverName: userOptions.serverName || global.process.env.SENTRY_NAME || os.hostname()
22
- };
23
- core.applySdkMetadata(options, "elysia", ["elysia", options.runtime.name]);
24
- options.transport = options.transport || (options.runtime.name === "bun" ? bun.makeFetchTransport : bun.makeNodeTransport);
25
- if (options.defaultIntegrations === void 0) {
26
- options.defaultIntegrations = getDefaultIntegrations(options);
27
- }
28
- return bun.init(options);
38
+ const options = {
39
+ ...userOptions,
40
+ platform: "javascript",
41
+ runtime: getRuntime(),
42
+ serverName: userOptions.serverName || global.process.env.SENTRY_NAME || node_os.hostname()
43
+ };
44
+ (0, _sentry_core.applySdkMetadata)(options, "elysia", ["elysia", options.runtime.name]);
45
+ options.transport = options.transport || (options.runtime.name === "bun" ? _sentry_bun.makeFetchTransport : _sentry_bun.makeNodeTransport);
46
+ if (options.defaultIntegrations === void 0) options.defaultIntegrations = getDefaultIntegrations(options);
47
+ return (0, _sentry_bun.init)(options);
29
48
  }
30
-
31
49
  exports.getDefaultIntegrations = getDefaultIntegrations;
32
50
  exports.init = init;
33
- //# sourceMappingURL=sdk.js.map
51
+
52
+ //# sourceMappingURL=sdk.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"sdk.js","sources":["../../src/sdk.ts"],"sourcesContent":["import * as os from 'node:os';\nimport {\n bunServerIntegration,\n getDefaultIntegrations as getBunDefaultIntegrations,\n makeFetchTransport,\n makeNodeTransport,\n} from '@sentry/bun';\nimport type { Integration, Options } from '@sentry/core';\nimport { applySdkMetadata } from '@sentry/core';\nimport { init as initNode, type NodeClient } from '@sentry/bun';\nimport type { ElysiaOptions } from './types';\n\n/** Get the default integrations for the Elysia SDK. */\nexport function getDefaultIntegrations(_options: Options): Integration[] {\n // Filter out bunServerIntegration\n // Elysia already produces an HTTP server span, so we don't need Bun's competing root span.\n return getBunDefaultIntegrations(_options).filter(i => i.name !== bunServerIntegration().name);\n}\n\n/**\n * Get the runtime name and version.\n */\nfunction getRuntime(): { name: string; version: string } {\n if (typeof Bun !== 'undefined') {\n return { name: 'bun', version: Bun.version };\n }\n\n return { name: 'node', version: process.version };\n}\n\n/**\n * Initializes the Sentry Elysia SDK.\n *\n * @example\n * ```javascript\n * import * as Sentry from '@sentry/elysia';\n *\n * Sentry.init({\n * dsn: '__DSN__',\n * tracesSampleRate: 1.0,\n * });\n * ```\n */\nexport function init(userOptions: ElysiaOptions = {}): NodeClient | undefined {\n const options = {\n ...userOptions,\n platform: 'javascript',\n runtime: getRuntime(),\n serverName: userOptions.serverName || global.process.env.SENTRY_NAME || os.hostname(),\n };\n\n applySdkMetadata(options, 'elysia', ['elysia', options.runtime.name]);\n\n options.transport = options.transport || (options.runtime.name === 'bun' ? makeFetchTransport : makeNodeTransport);\n\n if (options.defaultIntegrations === undefined) {\n options.defaultIntegrations = getDefaultIntegrations(options);\n }\n\n return initNode(options);\n}\n"],"names":["getBunDefaultIntegrations","bunServerIntegration","applySdkMetadata","makeFetchTransport","makeNodeTransport","initNode"],"mappings":";;;;;;AAaO,SAAS,uBAAuB,QAAA,EAAkC;AAGvE,EAAA,OAAOA,0BAAA,CAA0B,QAAQ,CAAA,CAAE,MAAA,CAAO,OAAK,CAAA,CAAE,IAAA,KAASC,wBAAA,EAAqB,CAAE,IAAI,CAAA;AAC/F;AAKA,SAAS,UAAA,GAAgD;AACvD,EAAA,IAAI,OAAO,QAAQ,WAAA,EAAa;AAC9B,IAAA,OAAO,EAAE,IAAA,EAAM,KAAA,EAAO,OAAA,EAAS,IAAI,OAAA,EAAQ;AAAA,EAC7C;AAEA,EAAA,OAAO,EAAE,IAAA,EAAM,MAAA,EAAQ,OAAA,EAAS,QAAQ,OAAA,EAAQ;AAClD;AAeO,SAAS,IAAA,CAAK,WAAA,GAA6B,EAAC,EAA2B;AAC5E,EAAA,MAAM,OAAA,GAAU;AAAA,IACd,GAAG,WAAA;AAAA,IACH,QAAA,EAAU,YAAA;AAAA,IACV,SAAS,UAAA,EAAW;AAAA,IACpB,UAAA,EAAY,YAAY,UAAA,IAAc,MAAA,CAAO,QAAQ,GAAA,CAAI,WAAA,IAAe,GAAG,QAAA;AAAS,GACtF;AAEA,EAAAC,qBAAA,CAAiB,SAAS,QAAA,EAAU,CAAC,UAAU,OAAA,CAAQ,OAAA,CAAQ,IAAI,CAAC,CAAA;AAEpE,EAAA,OAAA,CAAQ,YAAY,OAAA,CAAQ,SAAA,KAAc,QAAQ,OAAA,CAAQ,IAAA,KAAS,QAAQC,sBAAA,GAAqBC,qBAAA,CAAA;AAEhG,EAAA,IAAI,OAAA,CAAQ,wBAAwB,MAAA,EAAW;AAC7C,IAAA,OAAA,CAAQ,mBAAA,GAAsB,uBAAuB,OAAO,CAAA;AAAA,EAC9D;AAEA,EAAA,OAAOC,SAAS,OAAO,CAAA;AACzB;;;;;"}
1
+ {"version":3,"file":"sdk.js","names":["getBunDefaultIntegrations","bunServerIntegration","os","applySdkMetadata","makeFetchTransport","makeNodeTransport","initNode"],"sources":["../../src/sdk.ts"],"sourcesContent":["import * as os from 'node:os';\nimport {\n bunServerIntegration,\n getDefaultIntegrations as getBunDefaultIntegrations,\n makeFetchTransport,\n makeNodeTransport,\n} from '@sentry/bun';\nimport type { Integration, Options } from '@sentry/core';\nimport { applySdkMetadata } from '@sentry/core';\nimport { init as initNode, type NodeClient } from '@sentry/bun';\nimport type { ElysiaOptions } from './types';\n\n/** Get the default integrations for the Elysia SDK. */\nexport function getDefaultIntegrations(_options: Options): Integration[] {\n // Filter out bunServerIntegration\n // Elysia already produces an HTTP server span, so we don't need Bun's competing root span.\n return getBunDefaultIntegrations(_options).filter(i => i.name !== bunServerIntegration().name);\n}\n\n/**\n * Get the runtime name and version.\n */\nfunction getRuntime(): { name: string; version: string } {\n if (typeof Bun !== 'undefined') {\n return { name: 'bun', version: Bun.version };\n }\n\n return { name: 'node', version: process.version };\n}\n\n/**\n * Initializes the Sentry Elysia SDK.\n *\n * @example\n * ```javascript\n * import * as Sentry from '@sentry/elysia';\n *\n * Sentry.init({\n * dsn: '__DSN__',\n * tracesSampleRate: 1.0,\n * });\n * ```\n */\nexport function init(userOptions: ElysiaOptions = {}): NodeClient | undefined {\n const options = {\n ...userOptions,\n platform: 'javascript',\n runtime: getRuntime(),\n serverName: userOptions.serverName || global.process.env.SENTRY_NAME || os.hostname(),\n };\n\n applySdkMetadata(options, 'elysia', ['elysia', options.runtime.name]);\n\n options.transport = options.transport || (options.runtime.name === 'bun' ? makeFetchTransport : makeNodeTransport);\n\n if (options.defaultIntegrations === undefined) {\n options.defaultIntegrations = getDefaultIntegrations(options);\n }\n\n return initNode(options);\n}\n"],"mappings":";;;;;;;AAaA,SAAgB,uBAAuB,UAAkC;CAGvE,QAAA,GAAOA,YAAAA,uBAAAA,CAA0B,QAAQ,CAAC,CAAC,QAAO,MAAK,EAAE,UAAA,GAASC,YAAAA,qBAAAA,CAAqB,CAAC,CAAC,IAAI;AAC/F;;;;AAKA,SAAS,aAAgD;CACvD,IAAI,OAAO,QAAQ,aACjB,OAAO;EAAE,MAAM;EAAO,SAAS,IAAI;CAAQ;CAG7C,OAAO;EAAE,MAAM;EAAQ,SAAS,QAAQ;CAAQ;AAClD;;;;;;;;;;;;;;AAeA,SAAgB,KAAK,cAA6B,CAAC,GAA2B;CAC5E,MAAM,UAAU;EACd,GAAG;EACH,UAAU;EACV,SAAS,WAAW;EACpB,YAAY,YAAY,cAAc,OAAO,QAAQ,IAAI,eAAeC,QAAG,SAAS;CACtF;CAEAC,CAAAA,GAAAA,aAAAA,iBAAAA,CAAiB,SAAS,UAAU,CAAC,UAAU,QAAQ,QAAQ,IAAI,CAAC;CAEpE,QAAQ,YAAY,QAAQ,cAAc,QAAQ,QAAQ,SAAS,QAAQC,YAAAA,qBAAqBC,YAAAA;CAEhG,IAAI,QAAQ,wBAAwB,KAAA,GAClC,QAAQ,sBAAsB,uBAAuB,OAAO;CAG9D,QAAA,GAAOC,YAAAA,KAAAA,CAAS,OAAO;AACzB"}