@sentry/google-cloud-serverless 11.11.0 → 11.13.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/debug-build.js +9 -5
- package/build/cjs/debug-build.js.map +1 -1
- package/build/cjs/gcpfunction/cloud_events.js +56 -67
- package/build/cjs/gcpfunction/cloud_events.js.map +1 -1
- package/build/cjs/gcpfunction/events.js +57 -67
- package/build/cjs/gcpfunction/events.js.map +1 -1
- package/build/cjs/gcpfunction/http.js +66 -67
- package/build/cjs/gcpfunction/http.js.map +1 -1
- package/build/cjs/index.js +213 -217
- package/build/cjs/integrations/gcp-context.js +28 -34
- package/build/cjs/integrations/gcp-context.js.map +1 -1
- package/build/cjs/integrations/google-cloud-grpc.js +61 -77
- package/build/cjs/integrations/google-cloud-grpc.js.map +1 -1
- package/build/cjs/integrations/google-cloud-http.js +52 -51
- package/build/cjs/integrations/google-cloud-http.js.map +1 -1
- package/build/cjs/sdk.js +25 -24
- package/build/cjs/sdk.js.map +1 -1
- package/build/cjs/utils.js +44 -28
- package/build/cjs/utils.js.map +1 -1
- package/build/esm/_virtual/_rolldown/runtime.js +6 -0
- package/build/esm/debug-build.js +9 -3
- package/build/esm/debug-build.js.map +1 -1
- package/build/esm/gcpfunction/cloud_events.js +56 -65
- package/build/esm/gcpfunction/cloud_events.js.map +1 -1
- package/build/esm/gcpfunction/events.js +57 -65
- package/build/esm/gcpfunction/events.js.map +1 -1
- package/build/esm/gcpfunction/http.js +66 -65
- package/build/esm/gcpfunction/http.js.map +1 -1
- package/build/esm/index.js +9 -9
- package/build/esm/integrations/gcp-context.js +27 -31
- package/build/esm/integrations/gcp-context.js.map +1 -1
- package/build/esm/integrations/google-cloud-grpc.js +61 -74
- package/build/esm/integrations/google-cloud-grpc.js.map +1 -1
- package/build/esm/integrations/google-cloud-http.js +52 -48
- package/build/esm/integrations/google-cloud-http.js.map +1 -1
- package/build/esm/package.json +1 -1
- package/build/esm/sdk.js +22 -16
- package/build/esm/sdk.js.map +1 -1
- package/build/esm/utils.js +44 -26
- package/build/esm/utils.js.map +1 -1
- package/build/import-hook.mjs +1 -1
- package/build/types/index.d.ts +1 -1
- package/build/types/index.d.ts.map +1 -1
- package/package.json +27 -28
- package/build/cjs/index.js.map +0 -1
- package/build/esm/index.js.map +0 -1
package/build/cjs/index.js
CHANGED
|
@@ -1,217 +1,213 @@
|
|
|
1
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value:
|
|
2
|
-
|
|
3
|
-
const
|
|
4
|
-
const
|
|
5
|
-
const
|
|
6
|
-
const
|
|
7
|
-
const
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
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.
|
|
67
|
-
exports.
|
|
68
|
-
exports.
|
|
69
|
-
exports.
|
|
70
|
-
exports.
|
|
71
|
-
exports.
|
|
72
|
-
exports.
|
|
73
|
-
exports.
|
|
74
|
-
exports.
|
|
75
|
-
exports.getGlobalScope =
|
|
76
|
-
exports.getInstrumentedModuleNames =
|
|
77
|
-
exports.getIsolationScope =
|
|
78
|
-
exports.getOtlpTracesEndpoint =
|
|
79
|
-
exports.getRootSpan =
|
|
80
|
-
exports.getSentryRelease =
|
|
81
|
-
exports.getSpanDescendants =
|
|
82
|
-
exports.getSpanStatusFromHttpCode =
|
|
83
|
-
exports.getTraceData =
|
|
84
|
-
exports.getTraceMetaTags =
|
|
85
|
-
exports.getTunnelPath =
|
|
86
|
-
exports.
|
|
87
|
-
exports.
|
|
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.
|
|
193
|
-
exports.
|
|
194
|
-
exports.
|
|
195
|
-
exports.
|
|
196
|
-
exports.
|
|
197
|
-
exports.
|
|
198
|
-
exports.
|
|
199
|
-
exports.
|
|
200
|
-
exports.
|
|
201
|
-
exports.
|
|
202
|
-
exports.
|
|
203
|
-
exports.
|
|
204
|
-
exports.
|
|
205
|
-
exports.
|
|
206
|
-
exports.
|
|
207
|
-
exports.
|
|
208
|
-
exports.
|
|
209
|
-
exports.
|
|
210
|
-
exports.
|
|
211
|
-
exports.
|
|
212
|
-
exports.
|
|
213
|
-
exports.
|
|
214
|
-
exports.wrapCloudEventFunction = cloud_events.wrapCloudEventFunction;
|
|
215
|
-
exports.wrapHttpFunction = http.wrapHttpFunction;
|
|
216
|
-
exports.wrapEventFunction = events.wrapEventFunction;
|
|
217
|
-
//# sourceMappingURL=index.js.map
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
const require_sdk = require("./sdk.js");
|
|
3
|
+
const require_google_cloud_http = require("./integrations/google-cloud-http.js");
|
|
4
|
+
const require_google_cloud_grpc = require("./integrations/google-cloud-grpc.js");
|
|
5
|
+
const require_cloud_events = require("./gcpfunction/cloud_events.js");
|
|
6
|
+
const require_http = require("./gcpfunction/http.js");
|
|
7
|
+
const require_events = require("./gcpfunction/events.js");
|
|
8
|
+
let _sentry_node = require("@sentry/node");
|
|
9
|
+
let _sentry_core = require("@sentry/core");
|
|
10
|
+
exports.BullMQTelemetry = _sentry_node.BullMQTelemetry;
|
|
11
|
+
exports.NODE_VERSION = _sentry_node.NODE_VERSION;
|
|
12
|
+
exports.NodeClient = _sentry_node.NodeClient;
|
|
13
|
+
exports.OpenFeatureIntegrationHook = _sentry_node.OpenFeatureIntegrationHook;
|
|
14
|
+
exports.SDK_VERSION = _sentry_node.SDK_VERSION;
|
|
15
|
+
exports.SEMANTIC_ATTRIBUTE_SENTRY_OP = _sentry_node.SEMANTIC_ATTRIBUTE_SENTRY_OP;
|
|
16
|
+
exports.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN = _sentry_node.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN;
|
|
17
|
+
exports.SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE = _sentry_node.SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE;
|
|
18
|
+
exports.Scope = _sentry_node.Scope;
|
|
19
|
+
exports.SentryMastraExporter = _sentry_node.SentryMastraExporter;
|
|
20
|
+
exports.addBreadcrumb = _sentry_node.addBreadcrumb;
|
|
21
|
+
exports.addEventProcessor = _sentry_node.addEventProcessor;
|
|
22
|
+
exports.addIntegration = _sentry_node.addIntegration;
|
|
23
|
+
exports.amqplibIntegration = _sentry_node.amqplibIntegration;
|
|
24
|
+
exports.anrIntegration = _sentry_node.anrIntegration;
|
|
25
|
+
exports.anthropicAIIntegration = _sentry_node.anthropicAIIntegration;
|
|
26
|
+
exports.awsIntegration = _sentry_node.awsIntegration;
|
|
27
|
+
exports.awsLambdaWebIntegration = _sentry_node.awsLambdaWebIntegration;
|
|
28
|
+
exports.bindScopeToEmitter = _sentry_node.bindScopeToEmitter;
|
|
29
|
+
exports.buildLaunchDarklyFlagUsedHandler = _sentry_node.buildLaunchDarklyFlagUsedHandler;
|
|
30
|
+
exports.captureCheckIn = _sentry_node.captureCheckIn;
|
|
31
|
+
exports.captureConsoleIntegration = _sentry_core.captureConsoleIntegration;
|
|
32
|
+
exports.captureEvent = _sentry_node.captureEvent;
|
|
33
|
+
exports.captureException = _sentry_node.captureException;
|
|
34
|
+
exports.captureFeedback = _sentry_node.captureFeedback;
|
|
35
|
+
exports.captureMessage = _sentry_node.captureMessage;
|
|
36
|
+
exports.captureSession = _sentry_node.captureSession;
|
|
37
|
+
exports.childProcessIntegration = _sentry_node.childProcessIntegration;
|
|
38
|
+
exports.close = _sentry_node.close;
|
|
39
|
+
exports.consoleIntegration = _sentry_node.consoleIntegration;
|
|
40
|
+
exports.consoleLoggingIntegration = _sentry_node.consoleLoggingIntegration;
|
|
41
|
+
exports.contextLinesIntegration = _sentry_node.contextLinesIntegration;
|
|
42
|
+
exports.continueTrace = _sentry_node.continueTrace;
|
|
43
|
+
exports.createConsolaReporter = _sentry_node.createConsolaReporter;
|
|
44
|
+
exports.createFlueInstrumentation = _sentry_node.createFlueInstrumentation;
|
|
45
|
+
exports.createGetModuleFromFilename = _sentry_node.createGetModuleFromFilename;
|
|
46
|
+
exports.createLangChainCallbackHandler = _sentry_node.createLangChainCallbackHandler;
|
|
47
|
+
exports.createSentryWinstonTransport = _sentry_node.createSentryWinstonTransport;
|
|
48
|
+
exports.createTransport = _sentry_node.createTransport;
|
|
49
|
+
exports.cron = _sentry_node.cron;
|
|
50
|
+
exports.cronJobIntegration = _sentry_node.cronJobIntegration;
|
|
51
|
+
exports.dataloaderIntegration = _sentry_node.dataloaderIntegration;
|
|
52
|
+
exports.dedupeIntegration = _sentry_core.dedupeIntegration;
|
|
53
|
+
exports.defaultStackParser = _sentry_node.defaultStackParser;
|
|
54
|
+
exports.disableAnrDetectionForCallback = _sentry_node.disableAnrDetectionForCallback;
|
|
55
|
+
exports.endSession = _sentry_node.endSession;
|
|
56
|
+
exports.eveConversationHook = _sentry_node.eveConversationHook;
|
|
57
|
+
exports.eveInstrumentation = _sentry_node.eveInstrumentation;
|
|
58
|
+
exports.eveIntegration = _sentry_node.eveIntegration;
|
|
59
|
+
exports.eventFiltersIntegration = _sentry_node.eventFiltersIntegration;
|
|
60
|
+
exports.expressErrorHandler = _sentry_node.expressErrorHandler;
|
|
61
|
+
exports.expressIntegration = _sentry_node.expressIntegration;
|
|
62
|
+
exports.extraErrorDataIntegration = _sentry_core.extraErrorDataIntegration;
|
|
63
|
+
exports.fastifyIntegration = _sentry_node.fastifyIntegration;
|
|
64
|
+
exports.featureFlagsIntegration = _sentry_node.featureFlagsIntegration;
|
|
65
|
+
exports.firebaseIntegration = _sentry_node.firebaseIntegration;
|
|
66
|
+
exports.flush = _sentry_node.flush;
|
|
67
|
+
exports.fsIntegration = _sentry_node.fsIntegration;
|
|
68
|
+
exports.functionToStringIntegration = _sentry_node.functionToStringIntegration;
|
|
69
|
+
exports.genericPoolIntegration = _sentry_node.genericPoolIntegration;
|
|
70
|
+
exports.getActiveSpan = _sentry_node.getActiveSpan;
|
|
71
|
+
exports.getAutoPerformanceIntegrations = _sentry_node.getAutoPerformanceIntegrations;
|
|
72
|
+
exports.getClient = _sentry_node.getClient;
|
|
73
|
+
exports.getCurrentScope = _sentry_node.getCurrentScope;
|
|
74
|
+
exports.getDefaultIntegrations = require_sdk.getDefaultIntegrations;
|
|
75
|
+
exports.getGlobalScope = _sentry_node.getGlobalScope;
|
|
76
|
+
exports.getInstrumentedModuleNames = _sentry_node.getInstrumentedModuleNames;
|
|
77
|
+
exports.getIsolationScope = _sentry_node.getIsolationScope;
|
|
78
|
+
exports.getOtlpTracesEndpoint = _sentry_node.getOtlpTracesEndpoint;
|
|
79
|
+
exports.getRootSpan = _sentry_node.getRootSpan;
|
|
80
|
+
exports.getSentryRelease = _sentry_node.getSentryRelease;
|
|
81
|
+
exports.getSpanDescendants = _sentry_node.getSpanDescendants;
|
|
82
|
+
exports.getSpanStatusFromHttpCode = _sentry_node.getSpanStatusFromHttpCode;
|
|
83
|
+
exports.getTraceData = _sentry_node.getTraceData;
|
|
84
|
+
exports.getTraceMetaTags = _sentry_node.getTraceMetaTags;
|
|
85
|
+
exports.getTunnelPath = _sentry_node.getTunnelPath;
|
|
86
|
+
exports.googleCloudGrpcIntegration = require_google_cloud_grpc.googleCloudGrpcIntegration;
|
|
87
|
+
exports.googleCloudHttpIntegration = require_google_cloud_http.googleCloudHttpIntegration;
|
|
88
|
+
exports.googleGenAIIntegration = _sentry_node.googleGenAIIntegration;
|
|
89
|
+
exports.graphqlIntegration = _sentry_node.graphqlIntegration;
|
|
90
|
+
exports.groqIntegration = _sentry_node.groqIntegration;
|
|
91
|
+
exports.growthbookIntegration = _sentry_node.growthbookIntegration;
|
|
92
|
+
exports.handleTunnelRequest = _sentry_node.handleTunnelRequest;
|
|
93
|
+
exports.handleTunnelRequestIfMatched = _sentry_node.handleTunnelRequestIfMatched;
|
|
94
|
+
exports.hapiIntegration = _sentry_node.hapiIntegration;
|
|
95
|
+
exports.honoIntegration = _sentry_node.honoIntegration;
|
|
96
|
+
exports.honoMiddleware = _sentry_node.honoMiddleware;
|
|
97
|
+
exports.httpHeadersToSpanAttributes = _sentry_node.httpHeadersToSpanAttributes;
|
|
98
|
+
exports.httpIntegration = _sentry_node.httpIntegration;
|
|
99
|
+
exports.httpServerIntegration = _sentry_node.httpServerIntegration;
|
|
100
|
+
exports.httpServerSpansIntegration = _sentry_node.httpServerSpansIntegration;
|
|
101
|
+
exports.init = require_sdk.init;
|
|
102
|
+
exports.initOpenTelemetry = _sentry_node.initOpenTelemetry;
|
|
103
|
+
exports.instrumentAnthropicAiClient = _sentry_node.instrumentAnthropicAiClient;
|
|
104
|
+
exports.instrumentCreateReactAgent = _sentry_node.instrumentCreateReactAgent;
|
|
105
|
+
exports.instrumentGoogleGenAIClient = _sentry_node.instrumentGoogleGenAIClient;
|
|
106
|
+
exports.instrumentLangChainEmbeddings = _sentry_node.instrumentLangChainEmbeddings;
|
|
107
|
+
exports.instrumentMistralAiClient = _sentry_node.instrumentMistralAiClient;
|
|
108
|
+
exports.instrumentOpenAiClient = _sentry_node.instrumentOpenAiClient;
|
|
109
|
+
exports.instrumentPostgresJsSql = _sentry_node.instrumentPostgresJsSql;
|
|
110
|
+
exports.instrumentStateGraph = _sentry_node.instrumentStateGraph;
|
|
111
|
+
exports.instrumentStateGraphCompile = _sentry_node.instrumentStateGraphCompile;
|
|
112
|
+
exports.instrumentSupabaseClient = _sentry_node.instrumentSupabaseClient;
|
|
113
|
+
exports.instrumentTypeSafeClient = _sentry_node.instrumentTypeSafeClient;
|
|
114
|
+
exports.isEnabled = _sentry_node.isEnabled;
|
|
115
|
+
exports.isInitialized = _sentry_node.isInitialized;
|
|
116
|
+
exports.isTunnelRequest = _sentry_node.isTunnelRequest;
|
|
117
|
+
exports.kafkaIntegration = _sentry_node.kafkaIntegration;
|
|
118
|
+
exports.knexIntegration = _sentry_node.knexIntegration;
|
|
119
|
+
exports.koaIntegration = _sentry_node.koaIntegration;
|
|
120
|
+
exports.langChainIntegration = _sentry_node.langChainIntegration;
|
|
121
|
+
exports.langGraphIntegration = _sentry_node.langGraphIntegration;
|
|
122
|
+
exports.lastEventId = _sentry_node.lastEventId;
|
|
123
|
+
exports.launchDarklyIntegration = _sentry_node.launchDarklyIntegration;
|
|
124
|
+
exports.linkedErrorsIntegration = _sentry_node.linkedErrorsIntegration;
|
|
125
|
+
exports.localVariablesIntegration = _sentry_node.localVariablesIntegration;
|
|
126
|
+
exports.logger = _sentry_node.logger;
|
|
127
|
+
exports.lruMemoizerIntegration = _sentry_node.lruMemoizerIntegration;
|
|
128
|
+
exports.makeNodeTransport = _sentry_node.makeNodeTransport;
|
|
129
|
+
exports.mastraIntegration = _sentry_node.mastraIntegration;
|
|
130
|
+
exports.mcpServerIntegration = _sentry_node.mcpServerIntegration;
|
|
131
|
+
exports.metrics = _sentry_node.metrics;
|
|
132
|
+
exports.mistralAIIntegration = _sentry_node.mistralAIIntegration;
|
|
133
|
+
exports.moduleMetadataIntegration = _sentry_node.moduleMetadataIntegration;
|
|
134
|
+
exports.modulesIntegration = _sentry_node.modulesIntegration;
|
|
135
|
+
exports.mongoIntegration = _sentry_node.mongoIntegration;
|
|
136
|
+
exports.mongooseIntegration = _sentry_node.mongooseIntegration;
|
|
137
|
+
exports.mysql2Integration = _sentry_node.mysql2Integration;
|
|
138
|
+
exports.mysqlIntegration = _sentry_node.mysqlIntegration;
|
|
139
|
+
exports.nativeNodeFetchIntegration = _sentry_node.nativeNodeFetchIntegration;
|
|
140
|
+
exports.neonIntegration = _sentry_node.neonIntegration;
|
|
141
|
+
exports.nitroIntegration = _sentry_node.nitroIntegration;
|
|
142
|
+
exports.nodeContextIntegration = _sentry_node.nodeContextIntegration;
|
|
143
|
+
exports.nodeCronIntegration = _sentry_node.nodeCronIntegration;
|
|
144
|
+
exports.nodeRuntimeMetricsIntegration = _sentry_node.nodeRuntimeMetricsIntegration;
|
|
145
|
+
exports.nodeScheduleIntegration = _sentry_node.nodeScheduleIntegration;
|
|
146
|
+
exports.onUncaughtExceptionIntegration = _sentry_node.onUncaughtExceptionIntegration;
|
|
147
|
+
exports.onUnhandledRejectionIntegration = _sentry_node.onUnhandledRejectionIntegration;
|
|
148
|
+
exports.openAIIntegration = _sentry_node.openAIIntegration;
|
|
149
|
+
exports.openFeatureIntegration = _sentry_node.openFeatureIntegration;
|
|
150
|
+
exports.openTelemetryIntegration = _sentry_node.openTelemetryIntegration;
|
|
151
|
+
exports.parameterize = _sentry_node.parameterize;
|
|
152
|
+
exports.piAiIntegration = _sentry_node.piAiIntegration;
|
|
153
|
+
exports.piDurableIntegration = _sentry_node.piDurableIntegration;
|
|
154
|
+
exports.pinoIntegration = _sentry_node.pinoIntegration;
|
|
155
|
+
exports.postgresIntegration = _sentry_node.postgresIntegration;
|
|
156
|
+
exports.postgresJsIntegration = _sentry_node.postgresJsIntegration;
|
|
157
|
+
exports.prismaIntegration = _sentry_node.prismaIntegration;
|
|
158
|
+
exports.processSessionIntegration = _sentry_node.processSessionIntegration;
|
|
159
|
+
exports.profiler = _sentry_node.profiler;
|
|
160
|
+
exports.redisIntegration = _sentry_node.redisIntegration;
|
|
161
|
+
exports.requestDataIntegration = _sentry_node.requestDataIntegration;
|
|
162
|
+
exports.rewriteFramesIntegration = _sentry_core.rewriteFramesIntegration;
|
|
163
|
+
exports.serveTunnelIntegration = _sentry_node.serveTunnelIntegration;
|
|
164
|
+
exports.setAttribute = _sentry_node.setAttribute;
|
|
165
|
+
exports.setAttributes = _sentry_node.setAttributes;
|
|
166
|
+
exports.setContext = _sentry_node.setContext;
|
|
167
|
+
exports.setConversationId = _sentry_node.setConversationId;
|
|
168
|
+
exports.setCurrentClient = _sentry_node.setCurrentClient;
|
|
169
|
+
exports.setExtra = _sentry_node.setExtra;
|
|
170
|
+
exports.setExtras = _sentry_node.setExtras;
|
|
171
|
+
exports.setHttpStatus = _sentry_node.setHttpStatus;
|
|
172
|
+
exports.setMeasurement = _sentry_node.setMeasurement;
|
|
173
|
+
exports.setTag = _sentry_node.setTag;
|
|
174
|
+
exports.setTags = _sentry_node.setTags;
|
|
175
|
+
exports.setUser = _sentry_node.setUser;
|
|
176
|
+
exports.setupExpressErrorHandler = _sentry_node.setupExpressErrorHandler;
|
|
177
|
+
exports.setupHapiErrorHandler = _sentry_node.setupHapiErrorHandler;
|
|
178
|
+
exports.setupKoaErrorHandler = _sentry_node.setupKoaErrorHandler;
|
|
179
|
+
exports.spanStreamingIntegration = _sentry_node.spanStreamingIntegration;
|
|
180
|
+
exports.spanToBaggageHeader = _sentry_node.spanToBaggageHeader;
|
|
181
|
+
exports.spanToJSON = _sentry_node.spanToJSON;
|
|
182
|
+
exports.spanToStaticSpanJSON = _sentry_node.spanToStaticSpanJSON;
|
|
183
|
+
exports.spanToTraceHeader = _sentry_node.spanToTraceHeader;
|
|
184
|
+
exports.spotlightIntegration = _sentry_node.spotlightIntegration;
|
|
185
|
+
exports.startInactiveSpan = _sentry_node.startInactiveSpan;
|
|
186
|
+
exports.startNewTrace = _sentry_node.startNewTrace;
|
|
187
|
+
exports.startSession = _sentry_node.startSession;
|
|
188
|
+
exports.startSpan = _sentry_node.startSpan;
|
|
189
|
+
exports.startSpanManual = _sentry_node.startSpanManual;
|
|
190
|
+
exports.statsigIntegration = _sentry_node.statsigIntegration;
|
|
191
|
+
exports.supabaseIntegration = _sentry_node.supabaseIntegration;
|
|
192
|
+
exports.suppressTracing = _sentry_node.suppressTracing;
|
|
193
|
+
exports.systemErrorIntegration = _sentry_node.systemErrorIntegration;
|
|
194
|
+
exports.tediousIntegration = _sentry_node.tediousIntegration;
|
|
195
|
+
exports.togetherAIIntegration = _sentry_node.togetherAIIntegration;
|
|
196
|
+
exports.trpcMiddleware = _sentry_node.trpcMiddleware;
|
|
197
|
+
exports.typesafeIntegration = _sentry_node.typesafeIntegration;
|
|
198
|
+
exports.unleashIntegration = _sentry_node.unleashIntegration;
|
|
199
|
+
exports.updateSpanName = _sentry_node.updateSpanName;
|
|
200
|
+
exports.vercelAIIntegration = _sentry_node.vercelAIIntegration;
|
|
201
|
+
exports.winterCGHeadersToDict = _sentry_node.winterCGHeadersToDict;
|
|
202
|
+
exports.withActiveSpan = _sentry_node.withActiveSpan;
|
|
203
|
+
exports.withIsolationScope = _sentry_node.withIsolationScope;
|
|
204
|
+
exports.withMonitor = _sentry_node.withMonitor;
|
|
205
|
+
exports.withScope = _sentry_node.withScope;
|
|
206
|
+
exports.withStaticSpan = _sentry_node.withStaticSpan;
|
|
207
|
+
exports.withStreamedSpan = _sentry_node.withStreamedSpan;
|
|
208
|
+
exports.workerThreadsIntegration = _sentry_node.workerThreadsIntegration;
|
|
209
|
+
exports.wrapCloudEventFunction = require_cloud_events.wrapCloudEventFunction;
|
|
210
|
+
exports.wrapEventFunction = require_events.wrapEventFunction;
|
|
211
|
+
exports.wrapHttpFunction = require_http.wrapHttpFunction;
|
|
212
|
+
exports.wrapMcpServerWithSentry = _sentry_node.wrapMcpServerWithSentry;
|
|
213
|
+
exports.zodErrorsIntegration = _sentry_node.zodErrorsIntegration;
|
|
@@ -1,39 +1,33 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
const core = require('@sentry/core');
|
|
5
|
-
|
|
1
|
+
let _sentry_core = require("@sentry/core");
|
|
2
|
+
let _sentry_conventions_attributes = require("@sentry/conventions/attributes");
|
|
3
|
+
// src/integrations/gcp-context.ts
|
|
6
4
|
const GCP_CONTEXT_ATTRIBUTE_MAP = {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
5
|
+
type: _sentry_conventions_attributes.GCP_FUNCTION_CONTEXT_TYPE,
|
|
6
|
+
source: _sentry_conventions_attributes.GCP_FUNCTION_CONTEXT_SOURCE,
|
|
7
|
+
id: _sentry_conventions_attributes.GCP_FUNCTION_CONTEXT_ID,
|
|
8
|
+
specversion: _sentry_conventions_attributes.GCP_FUNCTION_CONTEXT_SPECVERSION,
|
|
9
|
+
time: _sentry_conventions_attributes.GCP_FUNCTION_CONTEXT_TIME,
|
|
10
|
+
eventId: _sentry_conventions_attributes.GCP_FUNCTION_CONTEXT_EVENT_ID,
|
|
11
|
+
timestamp: _sentry_conventions_attributes.GCP_FUNCTION_CONTEXT_TIMESTAMP,
|
|
12
|
+
eventType: _sentry_conventions_attributes.GCP_FUNCTION_CONTEXT_EVENT_TYPE,
|
|
13
|
+
resource: _sentry_conventions_attributes.GCP_FUNCTION_CONTEXT_RESOURCE
|
|
16
14
|
};
|
|
17
15
|
const _gcpContextIntegration = (() => {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
}
|
|
32
|
-
core.safeSetSpanJSONAttributes(span, attrs);
|
|
33
|
-
}
|
|
34
|
-
};
|
|
16
|
+
return {
|
|
17
|
+
name: "GcpContext",
|
|
18
|
+
processSegmentSpan(span) {
|
|
19
|
+
const gcpContext = (0, _sentry_core.getCurrentScope)().getScopeData().contexts["gcp.function.context"];
|
|
20
|
+
if (!gcpContext) return;
|
|
21
|
+
const attrs = {};
|
|
22
|
+
for (const [field, attrName] of Object.entries(GCP_CONTEXT_ATTRIBUTE_MAP)) {
|
|
23
|
+
const value = gcpContext[field];
|
|
24
|
+
if (typeof value === "string" || typeof value === "number") attrs[attrName] = value;
|
|
25
|
+
}
|
|
26
|
+
(0, _sentry_core.safeSetSpanJSONAttributes)(span, attrs);
|
|
27
|
+
}
|
|
28
|
+
};
|
|
35
29
|
});
|
|
36
|
-
const gcpContextIntegration =
|
|
37
|
-
|
|
30
|
+
const gcpContextIntegration = (0, _sentry_core.defineIntegration)(_gcpContextIntegration);
|
|
38
31
|
exports.gcpContextIntegration = gcpContextIntegration;
|
|
39
|
-
|
|
32
|
+
|
|
33
|
+
//# sourceMappingURL=gcp-context.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"gcp-context.js","sources":["../../../src/integrations/gcp-context.ts"],"sourcesContent":["import {\n GCP_FUNCTION_CONTEXT_EVENT_ID,\n GCP_FUNCTION_CONTEXT_EVENT_TYPE,\n GCP_FUNCTION_CONTEXT_ID,\n GCP_FUNCTION_CONTEXT_RESOURCE,\n GCP_FUNCTION_CONTEXT_SOURCE,\n GCP_FUNCTION_CONTEXT_SPECVERSION,\n GCP_FUNCTION_CONTEXT_TIME,\n GCP_FUNCTION_CONTEXT_TIMESTAMP,\n GCP_FUNCTION_CONTEXT_TYPE,\n} from '@sentry/conventions/attributes';\nimport type { IntegrationFn } from '@sentry/core';\nimport { defineIntegration, getCurrentScope, safeSetSpanJSONAttributes } from '@sentry/core';\n\nconst GCP_CONTEXT_ATTRIBUTE_MAP: Record<string, string> = {\n type: GCP_FUNCTION_CONTEXT_TYPE,\n source: GCP_FUNCTION_CONTEXT_SOURCE,\n id: GCP_FUNCTION_CONTEXT_ID,\n specversion: GCP_FUNCTION_CONTEXT_SPECVERSION,\n time: GCP_FUNCTION_CONTEXT_TIME,\n eventId: GCP_FUNCTION_CONTEXT_EVENT_ID,\n timestamp: GCP_FUNCTION_CONTEXT_TIMESTAMP,\n eventType: GCP_FUNCTION_CONTEXT_EVENT_TYPE,\n resource: GCP_FUNCTION_CONTEXT_RESOURCE,\n};\n\nconst _gcpContextIntegration = (() => {\n return {\n name: 'GcpContext' as const,\n processSegmentSpan(span) {\n const gcpContext = getCurrentScope().getScopeData().contexts['gcp.function.context'];\n if (!gcpContext) {\n return;\n }\n\n const attrs: Record<string, unknown> = {};\n for (const [field, attrName] of Object.entries(GCP_CONTEXT_ATTRIBUTE_MAP)) {\n const value = gcpContext[field];\n if (typeof value === 'string' || typeof value === 'number') {\n attrs[attrName] = value;\n }\n }\n safeSetSpanJSONAttributes(span, attrs);\n },\n };\n}) satisfies IntegrationFn;\n\nexport const gcpContextIntegration = defineIntegration(_gcpContextIntegration);\n"],"
|
|
1
|
+
{"version":3,"file":"gcp-context.js","names":["GCP_FUNCTION_CONTEXT_TYPE","GCP_FUNCTION_CONTEXT_SOURCE","GCP_FUNCTION_CONTEXT_ID","GCP_FUNCTION_CONTEXT_SPECVERSION","GCP_FUNCTION_CONTEXT_TIME","GCP_FUNCTION_CONTEXT_EVENT_ID","GCP_FUNCTION_CONTEXT_TIMESTAMP","GCP_FUNCTION_CONTEXT_EVENT_TYPE","GCP_FUNCTION_CONTEXT_RESOURCE","getCurrentScope","safeSetSpanJSONAttributes","defineIntegration"],"sources":["../../../src/integrations/gcp-context.ts"],"sourcesContent":["import {\n GCP_FUNCTION_CONTEXT_EVENT_ID,\n GCP_FUNCTION_CONTEXT_EVENT_TYPE,\n GCP_FUNCTION_CONTEXT_ID,\n GCP_FUNCTION_CONTEXT_RESOURCE,\n GCP_FUNCTION_CONTEXT_SOURCE,\n GCP_FUNCTION_CONTEXT_SPECVERSION,\n GCP_FUNCTION_CONTEXT_TIME,\n GCP_FUNCTION_CONTEXT_TIMESTAMP,\n GCP_FUNCTION_CONTEXT_TYPE,\n} from '@sentry/conventions/attributes';\nimport type { IntegrationFn } from '@sentry/core';\nimport { defineIntegration, getCurrentScope, safeSetSpanJSONAttributes } from '@sentry/core';\n\nconst GCP_CONTEXT_ATTRIBUTE_MAP: Record<string, string> = {\n type: GCP_FUNCTION_CONTEXT_TYPE,\n source: GCP_FUNCTION_CONTEXT_SOURCE,\n id: GCP_FUNCTION_CONTEXT_ID,\n specversion: GCP_FUNCTION_CONTEXT_SPECVERSION,\n time: GCP_FUNCTION_CONTEXT_TIME,\n eventId: GCP_FUNCTION_CONTEXT_EVENT_ID,\n timestamp: GCP_FUNCTION_CONTEXT_TIMESTAMP,\n eventType: GCP_FUNCTION_CONTEXT_EVENT_TYPE,\n resource: GCP_FUNCTION_CONTEXT_RESOURCE,\n};\n\nconst _gcpContextIntegration = (() => {\n return {\n name: 'GcpContext' as const,\n processSegmentSpan(span) {\n const gcpContext = getCurrentScope().getScopeData().contexts['gcp.function.context'];\n if (!gcpContext) {\n return;\n }\n\n const attrs: Record<string, unknown> = {};\n for (const [field, attrName] of Object.entries(GCP_CONTEXT_ATTRIBUTE_MAP)) {\n const value = gcpContext[field];\n if (typeof value === 'string' || typeof value === 'number') {\n attrs[attrName] = value;\n }\n }\n safeSetSpanJSONAttributes(span, attrs);\n },\n };\n}) satisfies IntegrationFn;\n\nexport const gcpContextIntegration = defineIntegration(_gcpContextIntegration);\n"],"mappings":";;;AAcA,MAAM,4BAAoD;CACxD,MAAMA,+BAAAA;CACN,QAAQC,+BAAAA;CACR,IAAIC,+BAAAA;CACJ,aAAaC,+BAAAA;CACb,MAAMC,+BAAAA;CACN,SAASC,+BAAAA;CACT,WAAWC,+BAAAA;CACX,WAAWC,+BAAAA;CACX,UAAUC,+BAAAA;AACZ;AAEA,MAAM,gCAAgC;CACpC,OAAO;EACL,MAAM;EACN,mBAAmB,MAAM;GACvB,MAAM,cAAA,GAAaC,aAAAA,gBAAAA,CAAgB,CAAC,CAAC,aAAa,CAAC,CAAC,SAAS;GAC7D,IAAI,CAAC,YACH;GAGF,MAAM,QAAiC,CAAC;GACxC,KAAK,MAAM,CAAC,OAAO,aAAa,OAAO,QAAQ,yBAAyB,GAAG;IACzE,MAAM,QAAQ,WAAW;IACzB,IAAI,OAAO,UAAU,YAAY,OAAO,UAAU,UAChD,MAAM,YAAY;GAEtB;GACAC,CAAAA,GAAAA,aAAAA,0BAAAA,CAA0B,MAAM,KAAK;EACvC;CACF;AACF;AAEA,MAAa,yBAAA,GAAwBC,aAAAA,kBAAAA,CAAkB,sBAAsB"}
|