@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.
Files changed (46) hide show
  1. package/build/cjs/debug-build.js +9 -5
  2. package/build/cjs/debug-build.js.map +1 -1
  3. package/build/cjs/gcpfunction/cloud_events.js +56 -67
  4. package/build/cjs/gcpfunction/cloud_events.js.map +1 -1
  5. package/build/cjs/gcpfunction/events.js +57 -67
  6. package/build/cjs/gcpfunction/events.js.map +1 -1
  7. package/build/cjs/gcpfunction/http.js +66 -67
  8. package/build/cjs/gcpfunction/http.js.map +1 -1
  9. package/build/cjs/index.js +213 -217
  10. package/build/cjs/integrations/gcp-context.js +28 -34
  11. package/build/cjs/integrations/gcp-context.js.map +1 -1
  12. package/build/cjs/integrations/google-cloud-grpc.js +61 -77
  13. package/build/cjs/integrations/google-cloud-grpc.js.map +1 -1
  14. package/build/cjs/integrations/google-cloud-http.js +52 -51
  15. package/build/cjs/integrations/google-cloud-http.js.map +1 -1
  16. package/build/cjs/sdk.js +25 -24
  17. package/build/cjs/sdk.js.map +1 -1
  18. package/build/cjs/utils.js +44 -28
  19. package/build/cjs/utils.js.map +1 -1
  20. package/build/esm/_virtual/_rolldown/runtime.js +6 -0
  21. package/build/esm/debug-build.js +9 -3
  22. package/build/esm/debug-build.js.map +1 -1
  23. package/build/esm/gcpfunction/cloud_events.js +56 -65
  24. package/build/esm/gcpfunction/cloud_events.js.map +1 -1
  25. package/build/esm/gcpfunction/events.js +57 -65
  26. package/build/esm/gcpfunction/events.js.map +1 -1
  27. package/build/esm/gcpfunction/http.js +66 -65
  28. package/build/esm/gcpfunction/http.js.map +1 -1
  29. package/build/esm/index.js +9 -9
  30. package/build/esm/integrations/gcp-context.js +27 -31
  31. package/build/esm/integrations/gcp-context.js.map +1 -1
  32. package/build/esm/integrations/google-cloud-grpc.js +61 -74
  33. package/build/esm/integrations/google-cloud-grpc.js.map +1 -1
  34. package/build/esm/integrations/google-cloud-http.js +52 -48
  35. package/build/esm/integrations/google-cloud-http.js.map +1 -1
  36. package/build/esm/package.json +1 -1
  37. package/build/esm/sdk.js +22 -16
  38. package/build/esm/sdk.js.map +1 -1
  39. package/build/esm/utils.js +44 -26
  40. package/build/esm/utils.js.map +1 -1
  41. package/build/import-hook.mjs +1 -1
  42. package/build/types/index.d.ts +1 -1
  43. package/build/types/index.d.ts.map +1 -1
  44. package/package.json +27 -28
  45. package/build/cjs/index.js.map +0 -1
  46. package/build/esm/index.js.map +0 -1
@@ -1,217 +1,213 @@
1
- Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
-
3
- const node = require('@sentry/node');
4
- const core = require('@sentry/core');
5
- const sdk = require('./sdk.js');
6
- const googleCloudHttp = require('./integrations/google-cloud-http.js');
7
- const googleCloudGrpc = require('./integrations/google-cloud-grpc.js');
8
- const cloud_events = require('./gcpfunction/cloud_events.js');
9
- const http = require('./gcpfunction/http.js');
10
- const events = require('./gcpfunction/events.js');
11
-
12
-
13
-
14
- exports.BullMQTelemetry = node.BullMQTelemetry;
15
- exports.NODE_VERSION = node.NODE_VERSION;
16
- exports.NodeClient = node.NodeClient;
17
- exports.OpenFeatureIntegrationHook = node.OpenFeatureIntegrationHook;
18
- exports.SDK_VERSION = node.SDK_VERSION;
19
- exports.SEMANTIC_ATTRIBUTE_SENTRY_OP = node.SEMANTIC_ATTRIBUTE_SENTRY_OP;
20
- exports.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN = node.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN;
21
- exports.SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE = node.SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE;
22
- exports.Scope = node.Scope;
23
- exports.SentryMastraExporter = node.SentryMastraExporter;
24
- exports.addBreadcrumb = node.addBreadcrumb;
25
- exports.addEventProcessor = node.addEventProcessor;
26
- exports.addIntegration = node.addIntegration;
27
- exports.amqplibIntegration = node.amqplibIntegration;
28
- exports.anrIntegration = node.anrIntegration;
29
- exports.anthropicAIIntegration = node.anthropicAIIntegration;
30
- exports.awsIntegration = node.awsIntegration;
31
- exports.awsLambdaWebIntegration = node.awsLambdaWebIntegration;
32
- exports.bindScopeToEmitter = node.bindScopeToEmitter;
33
- exports.buildLaunchDarklyFlagUsedHandler = node.buildLaunchDarklyFlagUsedHandler;
34
- exports.captureCheckIn = node.captureCheckIn;
35
- exports.captureEvent = node.captureEvent;
36
- exports.captureException = node.captureException;
37
- exports.captureFeedback = node.captureFeedback;
38
- exports.captureMessage = node.captureMessage;
39
- exports.captureSession = node.captureSession;
40
- exports.childProcessIntegration = node.childProcessIntegration;
41
- exports.close = node.close;
42
- exports.consoleIntegration = node.consoleIntegration;
43
- exports.consoleLoggingIntegration = node.consoleLoggingIntegration;
44
- exports.contextLinesIntegration = node.contextLinesIntegration;
45
- exports.continueTrace = node.continueTrace;
46
- exports.createConsolaReporter = node.createConsolaReporter;
47
- exports.createFlueInstrumentation = node.createFlueInstrumentation;
48
- exports.createGetModuleFromFilename = node.createGetModuleFromFilename;
49
- exports.createLangChainCallbackHandler = node.createLangChainCallbackHandler;
50
- exports.createSentryWinstonTransport = node.createSentryWinstonTransport;
51
- exports.createTransport = node.createTransport;
52
- exports.cron = node.cron;
53
- exports.cronJobIntegration = node.cronJobIntegration;
54
- exports.dataloaderIntegration = node.dataloaderIntegration;
55
- exports.defaultStackParser = node.defaultStackParser;
56
- exports.disableAnrDetectionForCallback = node.disableAnrDetectionForCallback;
57
- exports.endSession = node.endSession;
58
- exports.eveConversationHook = node.eveConversationHook;
59
- exports.eveInstrumentation = node.eveInstrumentation;
60
- exports.eveIntegration = node.eveIntegration;
61
- exports.eventFiltersIntegration = node.eventFiltersIntegration;
62
- exports.expressErrorHandler = node.expressErrorHandler;
63
- exports.expressIntegration = node.expressIntegration;
64
- exports.fastifyIntegration = node.fastifyIntegration;
65
- exports.featureFlagsIntegration = node.featureFlagsIntegration;
66
- exports.firebaseIntegration = node.firebaseIntegration;
67
- exports.flush = node.flush;
68
- exports.fsIntegration = node.fsIntegration;
69
- exports.functionToStringIntegration = node.functionToStringIntegration;
70
- exports.genericPoolIntegration = node.genericPoolIntegration;
71
- exports.getActiveSpan = node.getActiveSpan;
72
- exports.getAutoPerformanceIntegrations = node.getAutoPerformanceIntegrations;
73
- exports.getClient = node.getClient;
74
- exports.getCurrentScope = node.getCurrentScope;
75
- exports.getGlobalScope = node.getGlobalScope;
76
- exports.getInstrumentedModuleNames = node.getInstrumentedModuleNames;
77
- exports.getIsolationScope = node.getIsolationScope;
78
- exports.getOtlpTracesEndpoint = node.getOtlpTracesEndpoint;
79
- exports.getRootSpan = node.getRootSpan;
80
- exports.getSentryRelease = node.getSentryRelease;
81
- exports.getSpanDescendants = node.getSpanDescendants;
82
- exports.getSpanStatusFromHttpCode = node.getSpanStatusFromHttpCode;
83
- exports.getTraceData = node.getTraceData;
84
- exports.getTraceMetaTags = node.getTraceMetaTags;
85
- exports.getTunnelPath = node.getTunnelPath;
86
- exports.googleGenAIIntegration = node.googleGenAIIntegration;
87
- exports.graphqlIntegration = node.graphqlIntegration;
88
- exports.groqIntegration = node.groqIntegration;
89
- exports.growthbookIntegration = node.growthbookIntegration;
90
- exports.handleTunnelRequest = node.handleTunnelRequest;
91
- exports.handleTunnelRequestIfMatched = node.handleTunnelRequestIfMatched;
92
- exports.hapiIntegration = node.hapiIntegration;
93
- exports.honoIntegration = node.honoIntegration;
94
- exports.honoMiddleware = node.honoMiddleware;
95
- exports.httpHeadersToSpanAttributes = node.httpHeadersToSpanAttributes;
96
- exports.httpIntegration = node.httpIntegration;
97
- exports.httpServerIntegration = node.httpServerIntegration;
98
- exports.httpServerSpansIntegration = node.httpServerSpansIntegration;
99
- exports.initOpenTelemetry = node.initOpenTelemetry;
100
- exports.instrumentAnthropicAiClient = node.instrumentAnthropicAiClient;
101
- exports.instrumentCreateReactAgent = node.instrumentCreateReactAgent;
102
- exports.instrumentGoogleGenAIClient = node.instrumentGoogleGenAIClient;
103
- exports.instrumentLangChainEmbeddings = node.instrumentLangChainEmbeddings;
104
- exports.instrumentMistralAiClient = node.instrumentMistralAiClient;
105
- exports.instrumentOpenAiClient = node.instrumentOpenAiClient;
106
- exports.instrumentPostgresJsSql = node.instrumentPostgresJsSql;
107
- exports.instrumentStateGraph = node.instrumentStateGraph;
108
- exports.instrumentStateGraphCompile = node.instrumentStateGraphCompile;
109
- exports.instrumentSupabaseClient = node.instrumentSupabaseClient;
110
- exports.instrumentTypeSafeClient = node.instrumentTypeSafeClient;
111
- exports.isEnabled = node.isEnabled;
112
- exports.isInitialized = node.isInitialized;
113
- exports.isTunnelRequest = node.isTunnelRequest;
114
- exports.kafkaIntegration = node.kafkaIntegration;
115
- exports.knexIntegration = node.knexIntegration;
116
- exports.koaIntegration = node.koaIntegration;
117
- exports.langChainIntegration = node.langChainIntegration;
118
- exports.langGraphIntegration = node.langGraphIntegration;
119
- exports.lastEventId = node.lastEventId;
120
- exports.launchDarklyIntegration = node.launchDarklyIntegration;
121
- exports.linkedErrorsIntegration = node.linkedErrorsIntegration;
122
- exports.localVariablesIntegration = node.localVariablesIntegration;
123
- exports.logger = node.logger;
124
- exports.lruMemoizerIntegration = node.lruMemoizerIntegration;
125
- exports.makeNodeTransport = node.makeNodeTransport;
126
- exports.mastraIntegration = node.mastraIntegration;
127
- exports.mcpServerIntegration = node.mcpServerIntegration;
128
- exports.metrics = node.metrics;
129
- exports.mistralAIIntegration = node.mistralAIIntegration;
130
- exports.moduleMetadataIntegration = node.moduleMetadataIntegration;
131
- exports.modulesIntegration = node.modulesIntegration;
132
- exports.mongoIntegration = node.mongoIntegration;
133
- exports.mongooseIntegration = node.mongooseIntegration;
134
- exports.mysql2Integration = node.mysql2Integration;
135
- exports.mysqlIntegration = node.mysqlIntegration;
136
- exports.nativeNodeFetchIntegration = node.nativeNodeFetchIntegration;
137
- exports.neonIntegration = node.neonIntegration;
138
- exports.nitroIntegration = node.nitroIntegration;
139
- exports.nodeContextIntegration = node.nodeContextIntegration;
140
- exports.nodeCronIntegration = node.nodeCronIntegration;
141
- exports.nodeRuntimeMetricsIntegration = node.nodeRuntimeMetricsIntegration;
142
- exports.nodeScheduleIntegration = node.nodeScheduleIntegration;
143
- exports.onUncaughtExceptionIntegration = node.onUncaughtExceptionIntegration;
144
- exports.onUnhandledRejectionIntegration = node.onUnhandledRejectionIntegration;
145
- exports.openAIIntegration = node.openAIIntegration;
146
- exports.openFeatureIntegration = node.openFeatureIntegration;
147
- exports.openTelemetryIntegration = node.openTelemetryIntegration;
148
- exports.parameterize = node.parameterize;
149
- exports.piDurableIntegration = node.piDurableIntegration;
150
- exports.pinoIntegration = node.pinoIntegration;
151
- exports.postgresIntegration = node.postgresIntegration;
152
- exports.postgresJsIntegration = node.postgresJsIntegration;
153
- exports.prismaIntegration = node.prismaIntegration;
154
- exports.processSessionIntegration = node.processSessionIntegration;
155
- exports.profiler = node.profiler;
156
- exports.redisIntegration = node.redisIntegration;
157
- exports.requestDataIntegration = node.requestDataIntegration;
158
- exports.serveTunnelIntegration = node.serveTunnelIntegration;
159
- exports.setAttribute = node.setAttribute;
160
- exports.setAttributes = node.setAttributes;
161
- exports.setContext = node.setContext;
162
- exports.setConversationId = node.setConversationId;
163
- exports.setCurrentClient = node.setCurrentClient;
164
- exports.setExtra = node.setExtra;
165
- exports.setExtras = node.setExtras;
166
- exports.setHttpStatus = node.setHttpStatus;
167
- exports.setMeasurement = node.setMeasurement;
168
- exports.setTag = node.setTag;
169
- exports.setTags = node.setTags;
170
- exports.setUser = node.setUser;
171
- exports.setupExpressErrorHandler = node.setupExpressErrorHandler;
172
- exports.setupHapiErrorHandler = node.setupHapiErrorHandler;
173
- exports.setupKoaErrorHandler = node.setupKoaErrorHandler;
174
- exports.spanStreamingIntegration = node.spanStreamingIntegration;
175
- exports.spanToBaggageHeader = node.spanToBaggageHeader;
176
- exports.spanToJSON = node.spanToJSON;
177
- exports.spanToStaticSpanJSON = node.spanToStaticSpanJSON;
178
- exports.spanToTraceHeader = node.spanToTraceHeader;
179
- exports.spotlightIntegration = node.spotlightIntegration;
180
- exports.startInactiveSpan = node.startInactiveSpan;
181
- exports.startNewTrace = node.startNewTrace;
182
- exports.startSession = node.startSession;
183
- exports.startSpan = node.startSpan;
184
- exports.startSpanManual = node.startSpanManual;
185
- exports.statsigIntegration = node.statsigIntegration;
186
- exports.supabaseIntegration = node.supabaseIntegration;
187
- exports.suppressTracing = node.suppressTracing;
188
- exports.systemErrorIntegration = node.systemErrorIntegration;
189
- exports.tediousIntegration = node.tediousIntegration;
190
- exports.togetherAIIntegration = node.togetherAIIntegration;
191
- exports.trpcMiddleware = node.trpcMiddleware;
192
- exports.typesafeIntegration = node.typesafeIntegration;
193
- exports.unleashIntegration = node.unleashIntegration;
194
- exports.updateSpanName = node.updateSpanName;
195
- exports.vercelAIIntegration = node.vercelAIIntegration;
196
- exports.winterCGHeadersToDict = node.winterCGHeadersToDict;
197
- exports.withActiveSpan = node.withActiveSpan;
198
- exports.withIsolationScope = node.withIsolationScope;
199
- exports.withMonitor = node.withMonitor;
200
- exports.withScope = node.withScope;
201
- exports.withStaticSpan = node.withStaticSpan;
202
- exports.withStreamedSpan = node.withStreamedSpan;
203
- exports.workerThreadsIntegration = node.workerThreadsIntegration;
204
- exports.wrapMcpServerWithSentry = node.wrapMcpServerWithSentry;
205
- exports.zodErrorsIntegration = node.zodErrorsIntegration;
206
- exports.captureConsoleIntegration = core.captureConsoleIntegration;
207
- exports.dedupeIntegration = core.dedupeIntegration;
208
- exports.extraErrorDataIntegration = core.extraErrorDataIntegration;
209
- exports.rewriteFramesIntegration = core.rewriteFramesIntegration;
210
- exports.getDefaultIntegrations = sdk.getDefaultIntegrations;
211
- exports.init = sdk.init;
212
- exports.googleCloudHttpIntegration = googleCloudHttp.googleCloudHttpIntegration;
213
- exports.googleCloudGrpcIntegration = googleCloudGrpc.googleCloudGrpcIntegration;
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
- Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
-
3
- const attributes = require('@sentry/conventions/attributes');
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
- type: attributes.GCP_FUNCTION_CONTEXT_TYPE,
8
- source: attributes.GCP_FUNCTION_CONTEXT_SOURCE,
9
- id: attributes.GCP_FUNCTION_CONTEXT_ID,
10
- specversion: attributes.GCP_FUNCTION_CONTEXT_SPECVERSION,
11
- time: attributes.GCP_FUNCTION_CONTEXT_TIME,
12
- eventId: attributes.GCP_FUNCTION_CONTEXT_EVENT_ID,
13
- timestamp: attributes.GCP_FUNCTION_CONTEXT_TIMESTAMP,
14
- eventType: attributes.GCP_FUNCTION_CONTEXT_EVENT_TYPE,
15
- resource: attributes.GCP_FUNCTION_CONTEXT_RESOURCE
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
- return {
19
- name: "GcpContext",
20
- processSegmentSpan(span) {
21
- const gcpContext = core.getCurrentScope().getScopeData().contexts["gcp.function.context"];
22
- if (!gcpContext) {
23
- return;
24
- }
25
- const attrs = {};
26
- for (const [field, attrName] of Object.entries(GCP_CONTEXT_ATTRIBUTE_MAP)) {
27
- const value = gcpContext[field];
28
- if (typeof value === "string" || typeof value === "number") {
29
- attrs[attrName] = value;
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 = core.defineIntegration(_gcpContextIntegration);
37
-
30
+ const gcpContextIntegration = (0, _sentry_core.defineIntegration)(_gcpContextIntegration);
38
31
  exports.gcpContextIntegration = gcpContextIntegration;
39
- //# sourceMappingURL=gcp-context.js.map
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"],"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"],"mappings":";;;;;AAcA,MAAM,yBAAA,GAAoD;AAAA,EACxD,IAAA,EAAMA,oCAAA;AAAA,EACN,MAAA,EAAQC,sCAAA;AAAA,EACR,EAAA,EAAIC,kCAAA;AAAA,EACJ,WAAA,EAAaC,2CAAA;AAAA,EACb,IAAA,EAAMC,oCAAA;AAAA,EACN,OAAA,EAASC,wCAAA;AAAA,EACT,SAAA,EAAWC,yCAAA;AAAA,EACX,SAAA,EAAWC,0CAAA;AAAA,EACX,QAAA,EAAUC;AACZ,CAAA;AAEA,MAAM,0BAA0B,MAAM;AACpC,EAAA,OAAO;AAAA,IACL,IAAA,EAAM,YAAA;AAAA,IACN,mBAAmB,IAAA,EAAM;AACvB,MAAA,MAAM,aAAaC,oBAAA,EAAgB,CAAE,YAAA,EAAa,CAAE,SAAS,sBAAsB,CAAA;AACnF,MAAA,IAAI,CAAC,UAAA,EAAY;AACf,QAAA;AAAA,MACF;AAEA,MAAA,MAAM,QAAiC,EAAC;AACxC,MAAA,KAAA,MAAW,CAAC,KAAA,EAAO,QAAQ,KAAK,MAAA,CAAO,OAAA,CAAQ,yBAAyB,CAAA,EAAG;AACzE,QAAA,MAAM,KAAA,GAAQ,WAAW,KAAK,CAAA;AAC9B,QAAA,IAAI,OAAO,KAAA,KAAU,QAAA,IAAY,OAAO,UAAU,QAAA,EAAU;AAC1D,UAAA,KAAA,CAAM,QAAQ,CAAA,GAAI,KAAA;AAAA,QACpB;AAAA,MACF;AACA,MAAAC,8BAAA,CAA0B,MAAM,KAAK,CAAA;AAAA,IACvC;AAAA,GACF;AACF,CAAA,CAAA;AAEO,MAAM,qBAAA,GAAwBC,uBAAkB,sBAAsB;;;;"}
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"}