@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.
- package/build/cjs/_virtual/_rolldown/runtime.js +22 -0
- package/build/cjs/index.js +191 -195
- package/build/cjs/sdk.js +44 -25
- package/build/cjs/sdk.js.map +1 -1
- package/build/cjs/withElysia.js +202 -214
- package/build/cjs/withElysia.js.map +1 -1
- package/build/esm/index.js +5 -5
- package/build/esm/package.json +1 -1
- package/build/esm/sdk.js +42 -23
- package/build/esm/sdk.js.map +1 -1
- package/build/esm/withElysia.js +202 -212
- package/build/esm/withElysia.js.map +1 -1
- package/build/types/index.d.ts +1 -1
- package/build/types/index.d.ts.map +1 -1
- package/package.json +9 -13
- package/build/cjs/index.js.map +0 -1
- package/build/esm/index.js.map +0 -1
|
@@ -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;
|
package/build/cjs/index.js
CHANGED
|
@@ -1,195 +1,191 @@
|
|
|
1
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value:
|
|
2
|
-
|
|
3
|
-
const
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
exports.
|
|
11
|
-
exports.
|
|
12
|
-
exports.
|
|
13
|
-
exports.
|
|
14
|
-
exports.
|
|
15
|
-
exports.
|
|
16
|
-
exports.
|
|
17
|
-
exports.
|
|
18
|
-
exports.
|
|
19
|
-
exports.
|
|
20
|
-
exports.
|
|
21
|
-
exports.
|
|
22
|
-
exports.
|
|
23
|
-
exports.
|
|
24
|
-
exports.
|
|
25
|
-
exports.
|
|
26
|
-
exports.
|
|
27
|
-
exports.
|
|
28
|
-
exports.
|
|
29
|
-
exports.
|
|
30
|
-
exports.
|
|
31
|
-
exports.
|
|
32
|
-
exports.
|
|
33
|
-
exports.
|
|
34
|
-
exports.
|
|
35
|
-
exports.
|
|
36
|
-
exports.
|
|
37
|
-
exports.
|
|
38
|
-
exports.
|
|
39
|
-
exports.
|
|
40
|
-
exports.
|
|
41
|
-
exports.
|
|
42
|
-
exports.
|
|
43
|
-
exports.
|
|
44
|
-
exports.
|
|
45
|
-
exports.
|
|
46
|
-
exports.
|
|
47
|
-
exports.
|
|
48
|
-
exports.
|
|
49
|
-
exports.
|
|
50
|
-
exports.
|
|
51
|
-
exports.
|
|
52
|
-
exports.
|
|
53
|
-
exports.
|
|
54
|
-
exports.
|
|
55
|
-
exports.
|
|
56
|
-
exports.
|
|
57
|
-
exports.
|
|
58
|
-
exports.
|
|
59
|
-
exports.
|
|
60
|
-
exports.
|
|
61
|
-
exports.
|
|
62
|
-
exports.
|
|
63
|
-
exports.
|
|
64
|
-
exports.
|
|
65
|
-
exports.
|
|
66
|
-
exports.getGlobalScope =
|
|
67
|
-
exports.getIsolationScope =
|
|
68
|
-
exports.getRootSpan =
|
|
69
|
-
exports.getSentryRelease =
|
|
70
|
-
exports.getSpanDescendants =
|
|
71
|
-
exports.getSpanStatusFromHttpCode =
|
|
72
|
-
exports.getTraceData =
|
|
73
|
-
exports.getTraceMetaTags =
|
|
74
|
-
exports.getTunnelPath =
|
|
75
|
-
exports.googleGenAIIntegration =
|
|
76
|
-
exports.graphqlIntegration =
|
|
77
|
-
exports.groqIntegration =
|
|
78
|
-
exports.growthbookIntegration =
|
|
79
|
-
exports.handleTunnelRequest =
|
|
80
|
-
exports.handleTunnelRequestIfMatched =
|
|
81
|
-
exports.hapiIntegration =
|
|
82
|
-
exports.honoIntegration =
|
|
83
|
-
exports.honoMiddleware =
|
|
84
|
-
exports.httpHeadersToSpanAttributes =
|
|
85
|
-
exports.httpIntegration =
|
|
86
|
-
exports.httpServerIntegration =
|
|
87
|
-
exports.httpServerSpansIntegration =
|
|
88
|
-
exports.
|
|
89
|
-
exports.
|
|
90
|
-
exports.
|
|
91
|
-
exports.
|
|
92
|
-
exports.
|
|
93
|
-
exports.
|
|
94
|
-
exports.
|
|
95
|
-
exports.
|
|
96
|
-
exports.
|
|
97
|
-
exports.
|
|
98
|
-
exports.
|
|
99
|
-
exports.
|
|
100
|
-
exports.
|
|
101
|
-
exports.
|
|
102
|
-
exports.
|
|
103
|
-
exports.
|
|
104
|
-
exports.
|
|
105
|
-
exports.
|
|
106
|
-
exports.
|
|
107
|
-
exports.
|
|
108
|
-
exports.
|
|
109
|
-
exports.
|
|
110
|
-
exports.
|
|
111
|
-
exports.
|
|
112
|
-
exports.
|
|
113
|
-
exports.
|
|
114
|
-
exports.
|
|
115
|
-
exports.
|
|
116
|
-
exports.
|
|
117
|
-
exports.
|
|
118
|
-
exports.
|
|
119
|
-
exports.
|
|
120
|
-
exports.
|
|
121
|
-
exports.
|
|
122
|
-
exports.
|
|
123
|
-
exports.
|
|
124
|
-
exports.
|
|
125
|
-
exports.
|
|
126
|
-
exports.
|
|
127
|
-
exports.
|
|
128
|
-
exports.
|
|
129
|
-
exports.
|
|
130
|
-
exports.
|
|
131
|
-
exports.
|
|
132
|
-
exports.
|
|
133
|
-
exports.
|
|
134
|
-
exports.
|
|
135
|
-
exports.
|
|
136
|
-
exports.
|
|
137
|
-
exports.
|
|
138
|
-
exports.
|
|
139
|
-
exports.
|
|
140
|
-
exports.
|
|
141
|
-
exports.
|
|
142
|
-
exports.
|
|
143
|
-
exports.
|
|
144
|
-
exports.
|
|
145
|
-
exports.
|
|
146
|
-
exports.
|
|
147
|
-
exports.
|
|
148
|
-
exports.
|
|
149
|
-
exports.
|
|
150
|
-
exports.
|
|
151
|
-
exports.
|
|
152
|
-
exports.
|
|
153
|
-
exports.
|
|
154
|
-
exports.
|
|
155
|
-
exports.
|
|
156
|
-
exports.
|
|
157
|
-
exports.
|
|
158
|
-
exports.
|
|
159
|
-
exports.
|
|
160
|
-
exports.
|
|
161
|
-
exports.
|
|
162
|
-
exports.
|
|
163
|
-
exports.
|
|
164
|
-
exports.
|
|
165
|
-
exports.
|
|
166
|
-
exports.
|
|
167
|
-
exports.
|
|
168
|
-
exports.
|
|
169
|
-
exports.
|
|
170
|
-
exports.
|
|
171
|
-
exports.
|
|
172
|
-
exports.
|
|
173
|
-
exports.
|
|
174
|
-
exports.
|
|
175
|
-
exports.
|
|
176
|
-
exports.
|
|
177
|
-
exports.
|
|
178
|
-
exports.
|
|
179
|
-
exports.
|
|
180
|
-
exports.
|
|
181
|
-
exports.
|
|
182
|
-
exports.
|
|
183
|
-
exports.
|
|
184
|
-
exports.
|
|
185
|
-
exports.
|
|
186
|
-
exports.
|
|
187
|
-
exports.
|
|
188
|
-
exports.
|
|
189
|
-
exports.
|
|
190
|
-
exports.
|
|
191
|
-
exports.
|
|
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
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
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
|
-
|
|
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
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
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
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
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
|
-
|
|
51
|
+
|
|
52
|
+
//# sourceMappingURL=sdk.js.map
|
package/build/cjs/sdk.js.map
CHANGED
|
@@ -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"],"
|
|
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"}
|