@sentry/aws-serverless
Advanced tools
| /** | ||
| * The Extension API Client. | ||
| */ | ||
| export declare class AwsLambdaExtension { | ||
| private readonly _baseUrl; | ||
| private _extensionId; | ||
| constructor(); | ||
| /** | ||
| * Register this extension as an external extension with AWS. | ||
| */ | ||
| register(): Promise<void>; | ||
| /** | ||
| * Advances the extension to the next event. | ||
| */ | ||
| next(): Promise<void>; | ||
| /** | ||
| * Reports an error to the extension API. | ||
| * @param phase The phase of the extension. | ||
| * @param err The error to report. | ||
| */ | ||
| error(phase: 'init' | 'exit', err: Error): Promise<never>; | ||
| /** | ||
| * Starts the Sentry tunnel. | ||
| */ | ||
| startSentryTunnel(): void; | ||
| } | ||
| //# sourceMappingURL=aws-lambda-extension.d.ts.map |
| /** | ||
| * This serves as a build time flag that will be true by default, but false in non-debug builds or if users replace `__SENTRY_DEBUG__` in their generated code. | ||
| * | ||
| * ATTENTION: This constant must never cross package boundaries (i.e. be exported) to guarantee that it can be used for tree shaking. | ||
| */ | ||
| export declare const DEBUG_BUILD: boolean; | ||
| //# sourceMappingURL=debug-build.d.ts.map |
| #!/usr/bin/env node | ||
| export {}; | ||
| //# sourceMappingURL=index.d.ts.map |
| /** | ||
| * The Extension API Client. | ||
| */ | ||
| export declare class AwsLambdaExtension { | ||
| private readonly _baseUrl; | ||
| private _extensionId; | ||
| constructor(); | ||
| /** | ||
| * Register this extension as an external extension with AWS. | ||
| */ | ||
| register(): Promise<void>; | ||
| /** | ||
| * Advances the extension to the next event. | ||
| */ | ||
| next(): Promise<void>; | ||
| /** | ||
| * Reports an error to the extension API. | ||
| * @param phase The phase of the extension. | ||
| * @param err The error to report. | ||
| */ | ||
| error(phase: 'init' | 'exit', err: Error): Promise<never>; | ||
| /** | ||
| * Starts the Sentry tunnel. | ||
| */ | ||
| startSentryTunnel(): void; | ||
| } | ||
| //# sourceMappingURL=aws-lambda-extension.d.ts.map |
| {"version":3,"file":"aws-lambda-extension.d.ts","sourceRoot":"","sources":["../../../../src/lambda-extension/aws-lambda-extension.ts"],"names":[],"mappings":"AAKA;;GAEG;AACH,qBAAa,kBAAkB;IAC7B,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAS;IAClC,OAAO,CAAC,YAAY,CAAgB;;IAOpC;;OAEG;IACU,QAAQ,IAAI,OAAO,CAAC,IAAI,CAAC;IAmBtC;;OAEG;IACU,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;IAiBlC;;;;OAIG;IACU,KAAK,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,EAAE,GAAG,EAAE,KAAK,GAAG,OAAO,CAAC,KAAK,CAAC;IA4BtE;;OAEG;IACI,iBAAiB,IAAI,IAAI;CAiDjC"} |
| /** | ||
| * This serves as a build time flag that will be true by default, but false in non-debug builds or if users replace `__SENTRY_DEBUG__` in their generated code. | ||
| * | ||
| * ATTENTION: This constant must never cross package boundaries (i.e. be exported) to guarantee that it can be used for tree shaking. | ||
| */ | ||
| export declare const DEBUG_BUILD: boolean; | ||
| //# sourceMappingURL=debug-build.d.ts.map |
| {"version":3,"file":"debug-build.d.ts","sourceRoot":"","sources":["../../../../src/lambda-extension/debug-build.ts"],"names":[],"mappings":"AAEA;;;;GAIG;AACH,eAAO,MAAM,WAAW,SAAkB,CAAC"} |
| #!/usr/bin/env node | ||
| export {}; | ||
| //# sourceMappingURL=index.d.ts.map |
| {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/lambda-extension/index.ts"],"names":[],"mappings":""} |
@@ -74,2 +74,3 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); | ||
| exports.hapiIntegration = node.hapiIntegration; | ||
| exports.httpHeadersToSpanAttributes = node.httpHeadersToSpanAttributes; | ||
| exports.httpIntegration = node.httpIntegration; | ||
@@ -140,2 +141,3 @@ exports.inboundFiltersIntegration = node.inboundFiltersIntegration; | ||
| exports.vercelAIIntegration = node.vercelAIIntegration; | ||
| exports.winterCGHeadersToDict = node.winterCGHeadersToDict; | ||
| exports.withActiveSpan = node.withActiveSpan; | ||
@@ -142,0 +144,0 @@ exports.withIsolationScope = node.withIsolationScope; |
@@ -1,1 +0,1 @@ | ||
| {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"} | ||
| {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"} |
@@ -5,2 +5,3 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); | ||
| const node = require('@sentry/node'); | ||
| const debugBuild = require('./debug-build.js'); | ||
| const aws = require('./integration/aws.js'); | ||
@@ -29,4 +30,22 @@ const awslambda = require('./integration/awslambda.js'); | ||
| core.applySdkMetadata(opts, 'aws-serverless', ['aws-serverless'], core.getSDKSource()); | ||
| const sdkSource = core.getSDKSource(); | ||
| if (opts._experiments?.enableLambdaExtension) { | ||
| if (sdkSource === 'aws-lambda-layer') { | ||
| if (!opts.tunnel) { | ||
| debugBuild.DEBUG_BUILD && core.debug.log('Proxying Sentry events through the Sentry Lambda extension'); | ||
| opts.tunnel = 'http://localhost:9000/envelope'; | ||
| } else { | ||
| debugBuild.DEBUG_BUILD && | ||
| core.debug.warn( | ||
| `Using a custom tunnel with the Sentry Lambda extension is not supported. Events will be tunnelled to ${opts.tunnel} and not through the extension.`, | ||
| ); | ||
| } | ||
| } else { | ||
| debugBuild.DEBUG_BUILD && core.debug.warn('The Sentry Lambda extension is only supported when using the AWS Lambda layer.'); | ||
| } | ||
| } | ||
| core.applySdkMetadata(opts, 'aws-serverless', ['aws-serverless'], sdkSource); | ||
| return node.initWithoutDefaultIntegrations(opts); | ||
@@ -33,0 +52,0 @@ } |
@@ -1,1 +0,1 @@ | ||
| {"version":3,"file":"init.js","sources":["../../../src/init.ts"],"sourcesContent":["import type { Integration, Options } from '@sentry/core';\nimport { applySdkMetadata, getSDKSource } from '@sentry/core';\nimport type { NodeClient, NodeOptions } from '@sentry/node';\nimport { getDefaultIntegrationsWithoutPerformance, initWithoutDefaultIntegrations } from '@sentry/node';\nimport { awsIntegration } from './integration/aws';\nimport { awsLambdaIntegration } from './integration/awslambda';\n\n/**\n * Get the default integrations for the AWSLambda SDK.\n */\n// NOTE: in awslambda-auto.ts, we also call the original `getDefaultIntegrations` from `@sentry/node` to load performance integrations.\n// If at some point we need to filter a node integration out for good, we need to make sure to also filter it out there.\nexport function getDefaultIntegrations(_options: Options): Integration[] {\n return [...getDefaultIntegrationsWithoutPerformance(), awsIntegration(), awsLambdaIntegration()];\n}\n\n/**\n * Initializes the Sentry AWS Lambda SDK.\n *\n * @param options Configuration options for the SDK, @see {@link AWSLambdaOptions}.\n */\nexport function init(options: NodeOptions = {}): NodeClient | undefined {\n const opts = {\n defaultIntegrations: getDefaultIntegrations(options),\n ...options,\n };\n\n applySdkMetadata(opts, 'aws-serverless', ['aws-serverless'], getSDKSource());\n\n return initWithoutDefaultIntegrations(opts);\n}\n"],"names":["getDefaultIntegrationsWithoutPerformance","awsIntegration","awsLambdaIntegration","applySdkMetadata","getSDKSource","initWithoutDefaultIntegrations"],"mappings":";;;;;;;AAOA;AACA;AACA;AACA;AACA;AACO,SAAS,sBAAsB,CAAC,QAAQ,EAA0B;AACzE,EAAE,OAAO,CAAC,GAAGA,6CAAwC,EAAE,EAAEC,kBAAc,EAAE,EAAEC,8BAAoB,EAAE,CAAC;AAClG;;AAEA;AACA;AACA;AACA;AACA;AACO,SAAS,IAAI,CAAC,OAAO,GAAgB,EAAE,EAA0B;AACxE,EAAE,MAAM,OAAO;AACf,IAAI,mBAAmB,EAAE,sBAAsB,CAAQ,CAAC;AACxD,IAAI,GAAG,OAAO;AACd,GAAG;;AAEH,EAAEC,qBAAgB,CAAC,IAAI,EAAE,gBAAgB,EAAE,CAAC,gBAAgB,CAAC,EAAEC,iBAAY,EAAE,CAAC;;AAE9E,EAAE,OAAOC,mCAA8B,CAAC,IAAI,CAAC;AAC7C;;;;;"} | ||
| {"version":3,"file":"init.js","sources":["../../../src/init.ts"],"sourcesContent":["import type { Integration, Options } from '@sentry/core';\nimport { applySdkMetadata, debug, getSDKSource } from '@sentry/core';\nimport type { NodeClient, NodeOptions } from '@sentry/node';\nimport { getDefaultIntegrationsWithoutPerformance, initWithoutDefaultIntegrations } from '@sentry/node';\nimport { DEBUG_BUILD } from './debug-build';\nimport { awsIntegration } from './integration/aws';\nimport { awsLambdaIntegration } from './integration/awslambda';\n/**\n * Get the default integrations for the AWSLambda SDK.\n */\n// NOTE: in awslambda-auto.ts, we also call the original `getDefaultIntegrations` from `@sentry/node` to load performance integrations.\n// If at some point we need to filter a node integration out for good, we need to make sure to also filter it out there.\nexport function getDefaultIntegrations(_options: Options): Integration[] {\n return [...getDefaultIntegrationsWithoutPerformance(), awsIntegration(), awsLambdaIntegration()];\n}\n\nexport interface AwsServerlessOptions extends NodeOptions {\n _experiments?: NodeOptions['_experiments'] & {\n /**\n * If proxying Sentry events through the Sentry Lambda extension should be enabled.\n */\n enableLambdaExtension?: boolean;\n };\n}\n\n/**\n * Initializes the Sentry AWS Lambda SDK.\n *\n * @param options Configuration options for the SDK, @see {@link AWSLambdaOptions}.\n */\nexport function init(options: AwsServerlessOptions = {}): NodeClient | undefined {\n const opts = {\n defaultIntegrations: getDefaultIntegrations(options),\n ...options,\n };\n\n const sdkSource = getSDKSource();\n\n if (opts._experiments?.enableLambdaExtension) {\n if (sdkSource === 'aws-lambda-layer') {\n if (!opts.tunnel) {\n DEBUG_BUILD && debug.log('Proxying Sentry events through the Sentry Lambda extension');\n opts.tunnel = 'http://localhost:9000/envelope';\n } else {\n DEBUG_BUILD &&\n debug.warn(\n `Using a custom tunnel with the Sentry Lambda extension is not supported. Events will be tunnelled to ${opts.tunnel} and not through the extension.`,\n );\n }\n } else {\n DEBUG_BUILD && debug.warn('The Sentry Lambda extension is only supported when using the AWS Lambda layer.');\n }\n }\n\n applySdkMetadata(opts, 'aws-serverless', ['aws-serverless'], sdkSource);\n\n return initWithoutDefaultIntegrations(opts);\n}\n"],"names":["getDefaultIntegrationsWithoutPerformance","awsIntegration","awsLambdaIntegration","getSDKSource","DEBUG_BUILD","debug","applySdkMetadata","initWithoutDefaultIntegrations"],"mappings":";;;;;;;;AAOA;AACA;AACA;AACA;AACA;AACO,SAAS,sBAAsB,CAAC,QAAQ,EAA0B;AACzE,EAAE,OAAO,CAAC,GAAGA,6CAAwC,EAAE,EAAEC,kBAAc,EAAE,EAAEC,8BAAoB,EAAE,CAAC;AAClG;;AAWA;AACA;AACA;AACA;AACA;AACO,SAAS,IAAI,CAAC,OAAO,GAAyB,EAAE,EAA0B;AACjF,EAAE,MAAM,OAAO;AACf,IAAI,mBAAmB,EAAE,sBAAsB,CAAQ,CAAC;AACxD,IAAI,GAAG,OAAO;AACd,GAAG;;AAEH,EAAE,MAAM,SAAA,GAAYC,iBAAY,EAAE;;AAElC,EAAE,IAAI,IAAI,CAAC,YAAY,EAAE,qBAAqB,EAAE;AAChD,IAAI,IAAI,SAAA,KAAc,kBAAkB,EAAE;AAC1C,MAAM,IAAI,CAAC,IAAI,CAAC,MAAM,EAAE;AACxB,QAAQC,0BAAeC,UAAK,CAAC,GAAG,CAAC,4DAA4D,CAAC;AAC9F,QAAQ,IAAI,CAAC,MAAA,GAAS,gCAAgC;AACtD,aAAa;AACb,QAAQD,sBAAA;AACR,UAAUC,UAAK,CAAC,IAAI;AACpB,YAAY,CAAC,qGAAqG,EAAE,IAAI,CAAC,MAAM,CAAC,+BAA+B,CAAC;AAChK,WAAW;AACX;AACA,WAAW;AACX,MAAMD,0BAAeC,UAAK,CAAC,IAAI,CAAC,gFAAgF,CAAC;AACjH;AACA;;AAEA,EAAEC,qBAAgB,CAAC,IAAI,EAAE,gBAAgB,EAAE,CAAC,gBAAgB,CAAC,EAAE,SAAS,CAAC;;AAEzE,EAAE,OAAOC,mCAA8B,CAAC,IAAI,CAAC;AAC7C;;;;;"} |
@@ -1,2 +0,2 @@ | ||
| export { NODE_VERSION, NodeClient, OpenFeatureIntegrationHook, SDK_VERSION, SEMANTIC_ATTRIBUTE_SENTRY_OP, SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN, SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE, SEMANTIC_ATTRIBUTE_SENTRY_SOURCE, Scope, addBreadcrumb, addEventProcessor, addIntegration, amqplibIntegration, anrIntegration, anthropicAIIntegration, buildLaunchDarklyFlagUsedHandler, captureCheckIn, captureEvent, captureException, captureFeedback, captureMessage, captureSession, childProcessIntegration, close, connectIntegration, consoleIntegration, consoleLoggingIntegration, contextLinesIntegration, continueTrace, createGetModuleFromFilename, createSentryWinstonTransport, createTransport, cron, dataloaderIntegration, defaultStackParser, disableAnrDetectionForCallback, endSession, eventFiltersIntegration, expressErrorHandler, expressIntegration, fastifyIntegration, featureFlagsIntegration, firebaseIntegration, flush, fsIntegration, functionToStringIntegration, generateInstrumentOnce, genericPoolIntegration, getActiveSpan, getAutoPerformanceIntegrations, getClient, getCurrentScope, getGlobalScope, getIsolationScope, getRootSpan, getSentryRelease, getSpanDescendants, getSpanStatusFromHttpCode, getTraceData, getTraceMetaTags, graphqlIntegration, hapiIntegration, httpIntegration, inboundFiltersIntegration, initOpenTelemetry, instrumentSupabaseClient, isEnabled, isInitialized, kafkaIntegration, knexIntegration, koaIntegration, lastEventId, launchDarklyIntegration, linkedErrorsIntegration, localVariablesIntegration, logger, lruMemoizerIntegration, makeNodeTransport, modulesIntegration, mongoIntegration, mongooseIntegration, mysql2Integration, mysqlIntegration, nativeNodeFetchIntegration, nodeContextIntegration, onUncaughtExceptionIntegration, onUnhandledRejectionIntegration, openAIIntegration, openFeatureIntegration, parameterize, postgresIntegration, postgresJsIntegration, prismaIntegration, profiler, redisIntegration, requestDataIntegration, setContext, setCurrentClient, setExtra, setExtras, setHttpStatus, setMeasurement, setTag, setTags, setUser, setupConnectErrorHandler, setupExpressErrorHandler, setupHapiErrorHandler, setupKoaErrorHandler, spanToBaggageHeader, spanToJSON, spanToTraceHeader, spotlightIntegration, startInactiveSpan, startNewTrace, startSession, startSpan, startSpanManual, statsigIntegration, supabaseIntegration, suppressTracing, systemErrorIntegration, tediousIntegration, trpcMiddleware, unleashIntegration, updateSpanName, vercelAIIntegration, withActiveSpan, withIsolationScope, withMonitor, withScope, wrapMcpServerWithSentry, zodErrorsIntegration } from '@sentry/node'; | ||
| export { NODE_VERSION, NodeClient, OpenFeatureIntegrationHook, SDK_VERSION, SEMANTIC_ATTRIBUTE_SENTRY_OP, SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN, SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE, SEMANTIC_ATTRIBUTE_SENTRY_SOURCE, Scope, addBreadcrumb, addEventProcessor, addIntegration, amqplibIntegration, anrIntegration, anthropicAIIntegration, buildLaunchDarklyFlagUsedHandler, captureCheckIn, captureEvent, captureException, captureFeedback, captureMessage, captureSession, childProcessIntegration, close, connectIntegration, consoleIntegration, consoleLoggingIntegration, contextLinesIntegration, continueTrace, createGetModuleFromFilename, createSentryWinstonTransport, createTransport, cron, dataloaderIntegration, defaultStackParser, disableAnrDetectionForCallback, endSession, eventFiltersIntegration, expressErrorHandler, expressIntegration, fastifyIntegration, featureFlagsIntegration, firebaseIntegration, flush, fsIntegration, functionToStringIntegration, generateInstrumentOnce, genericPoolIntegration, getActiveSpan, getAutoPerformanceIntegrations, getClient, getCurrentScope, getGlobalScope, getIsolationScope, getRootSpan, getSentryRelease, getSpanDescendants, getSpanStatusFromHttpCode, getTraceData, getTraceMetaTags, graphqlIntegration, hapiIntegration, httpHeadersToSpanAttributes, httpIntegration, inboundFiltersIntegration, initOpenTelemetry, instrumentSupabaseClient, isEnabled, isInitialized, kafkaIntegration, knexIntegration, koaIntegration, lastEventId, launchDarklyIntegration, linkedErrorsIntegration, localVariablesIntegration, logger, lruMemoizerIntegration, makeNodeTransport, modulesIntegration, mongoIntegration, mongooseIntegration, mysql2Integration, mysqlIntegration, nativeNodeFetchIntegration, nodeContextIntegration, onUncaughtExceptionIntegration, onUnhandledRejectionIntegration, openAIIntegration, openFeatureIntegration, parameterize, postgresIntegration, postgresJsIntegration, prismaIntegration, profiler, redisIntegration, requestDataIntegration, setContext, setCurrentClient, setExtra, setExtras, setHttpStatus, setMeasurement, setTag, setTags, setUser, setupConnectErrorHandler, setupExpressErrorHandler, setupHapiErrorHandler, setupKoaErrorHandler, spanToBaggageHeader, spanToJSON, spanToTraceHeader, spotlightIntegration, startInactiveSpan, startNewTrace, startSession, startSpan, startSpanManual, statsigIntegration, supabaseIntegration, suppressTracing, systemErrorIntegration, tediousIntegration, trpcMiddleware, unleashIntegration, updateSpanName, vercelAIIntegration, winterCGHeadersToDict, withActiveSpan, withIsolationScope, withMonitor, withScope, wrapMcpServerWithSentry, zodErrorsIntegration } from '@sentry/node'; | ||
| export { captureConsoleIntegration, dedupeIntegration, extraErrorDataIntegration, rewriteFramesIntegration } from '@sentry/core'; | ||
@@ -3,0 +3,0 @@ export { awsIntegration } from './integration/aws.js'; |
@@ -1,3 +0,4 @@ | ||
| import { applySdkMetadata, getSDKSource } from '@sentry/core'; | ||
| import { getSDKSource, debug, applySdkMetadata } from '@sentry/core'; | ||
| import { initWithoutDefaultIntegrations, getDefaultIntegrationsWithoutPerformance } from '@sentry/node'; | ||
| import { DEBUG_BUILD } from './debug-build.js'; | ||
| import { awsIntegration } from './integration/aws.js'; | ||
@@ -26,4 +27,22 @@ import { awsLambdaIntegration } from './integration/awslambda.js'; | ||
| applySdkMetadata(opts, 'aws-serverless', ['aws-serverless'], getSDKSource()); | ||
| const sdkSource = getSDKSource(); | ||
| if (opts._experiments?.enableLambdaExtension) { | ||
| if (sdkSource === 'aws-lambda-layer') { | ||
| if (!opts.tunnel) { | ||
| DEBUG_BUILD && debug.log('Proxying Sentry events through the Sentry Lambda extension'); | ||
| opts.tunnel = 'http://localhost:9000/envelope'; | ||
| } else { | ||
| DEBUG_BUILD && | ||
| debug.warn( | ||
| `Using a custom tunnel with the Sentry Lambda extension is not supported. Events will be tunnelled to ${opts.tunnel} and not through the extension.`, | ||
| ); | ||
| } | ||
| } else { | ||
| DEBUG_BUILD && debug.warn('The Sentry Lambda extension is only supported when using the AWS Lambda layer.'); | ||
| } | ||
| } | ||
| applySdkMetadata(opts, 'aws-serverless', ['aws-serverless'], sdkSource); | ||
| return initWithoutDefaultIntegrations(opts); | ||
@@ -30,0 +49,0 @@ } |
@@ -1,1 +0,1 @@ | ||
| {"version":3,"file":"init.js","sources":["../../../src/init.ts"],"sourcesContent":["import type { Integration, Options } from '@sentry/core';\nimport { applySdkMetadata, getSDKSource } from '@sentry/core';\nimport type { NodeClient, NodeOptions } from '@sentry/node';\nimport { getDefaultIntegrationsWithoutPerformance, initWithoutDefaultIntegrations } from '@sentry/node';\nimport { awsIntegration } from './integration/aws';\nimport { awsLambdaIntegration } from './integration/awslambda';\n\n/**\n * Get the default integrations for the AWSLambda SDK.\n */\n// NOTE: in awslambda-auto.ts, we also call the original `getDefaultIntegrations` from `@sentry/node` to load performance integrations.\n// If at some point we need to filter a node integration out for good, we need to make sure to also filter it out there.\nexport function getDefaultIntegrations(_options: Options): Integration[] {\n return [...getDefaultIntegrationsWithoutPerformance(), awsIntegration(), awsLambdaIntegration()];\n}\n\n/**\n * Initializes the Sentry AWS Lambda SDK.\n *\n * @param options Configuration options for the SDK, @see {@link AWSLambdaOptions}.\n */\nexport function init(options: NodeOptions = {}): NodeClient | undefined {\n const opts = {\n defaultIntegrations: getDefaultIntegrations(options),\n ...options,\n };\n\n applySdkMetadata(opts, 'aws-serverless', ['aws-serverless'], getSDKSource());\n\n return initWithoutDefaultIntegrations(opts);\n}\n"],"names":[],"mappings":";;;;;AAOA;AACA;AACA;AACA;AACA;AACO,SAAS,sBAAsB,CAAC,QAAQ,EAA0B;AACzE,EAAE,OAAO,CAAC,GAAG,wCAAwC,EAAE,EAAE,cAAc,EAAE,EAAE,oBAAoB,EAAE,CAAC;AAClG;;AAEA;AACA;AACA;AACA;AACA;AACO,SAAS,IAAI,CAAC,OAAO,GAAgB,EAAE,EAA0B;AACxE,EAAE,MAAM,OAAO;AACf,IAAI,mBAAmB,EAAE,sBAAsB,CAAQ,CAAC;AACxD,IAAI,GAAG,OAAO;AACd,GAAG;;AAEH,EAAE,gBAAgB,CAAC,IAAI,EAAE,gBAAgB,EAAE,CAAC,gBAAgB,CAAC,EAAE,YAAY,EAAE,CAAC;;AAE9E,EAAE,OAAO,8BAA8B,CAAC,IAAI,CAAC;AAC7C;;;;"} | ||
| {"version":3,"file":"init.js","sources":["../../../src/init.ts"],"sourcesContent":["import type { Integration, Options } from '@sentry/core';\nimport { applySdkMetadata, debug, getSDKSource } from '@sentry/core';\nimport type { NodeClient, NodeOptions } from '@sentry/node';\nimport { getDefaultIntegrationsWithoutPerformance, initWithoutDefaultIntegrations } from '@sentry/node';\nimport { DEBUG_BUILD } from './debug-build';\nimport { awsIntegration } from './integration/aws';\nimport { awsLambdaIntegration } from './integration/awslambda';\n/**\n * Get the default integrations for the AWSLambda SDK.\n */\n// NOTE: in awslambda-auto.ts, we also call the original `getDefaultIntegrations` from `@sentry/node` to load performance integrations.\n// If at some point we need to filter a node integration out for good, we need to make sure to also filter it out there.\nexport function getDefaultIntegrations(_options: Options): Integration[] {\n return [...getDefaultIntegrationsWithoutPerformance(), awsIntegration(), awsLambdaIntegration()];\n}\n\nexport interface AwsServerlessOptions extends NodeOptions {\n _experiments?: NodeOptions['_experiments'] & {\n /**\n * If proxying Sentry events through the Sentry Lambda extension should be enabled.\n */\n enableLambdaExtension?: boolean;\n };\n}\n\n/**\n * Initializes the Sentry AWS Lambda SDK.\n *\n * @param options Configuration options for the SDK, @see {@link AWSLambdaOptions}.\n */\nexport function init(options: AwsServerlessOptions = {}): NodeClient | undefined {\n const opts = {\n defaultIntegrations: getDefaultIntegrations(options),\n ...options,\n };\n\n const sdkSource = getSDKSource();\n\n if (opts._experiments?.enableLambdaExtension) {\n if (sdkSource === 'aws-lambda-layer') {\n if (!opts.tunnel) {\n DEBUG_BUILD && debug.log('Proxying Sentry events through the Sentry Lambda extension');\n opts.tunnel = 'http://localhost:9000/envelope';\n } else {\n DEBUG_BUILD &&\n debug.warn(\n `Using a custom tunnel with the Sentry Lambda extension is not supported. Events will be tunnelled to ${opts.tunnel} and not through the extension.`,\n );\n }\n } else {\n DEBUG_BUILD && debug.warn('The Sentry Lambda extension is only supported when using the AWS Lambda layer.');\n }\n }\n\n applySdkMetadata(opts, 'aws-serverless', ['aws-serverless'], sdkSource);\n\n return initWithoutDefaultIntegrations(opts);\n}\n"],"names":[],"mappings":";;;;;;AAOA;AACA;AACA;AACA;AACA;AACO,SAAS,sBAAsB,CAAC,QAAQ,EAA0B;AACzE,EAAE,OAAO,CAAC,GAAG,wCAAwC,EAAE,EAAE,cAAc,EAAE,EAAE,oBAAoB,EAAE,CAAC;AAClG;;AAWA;AACA;AACA;AACA;AACA;AACO,SAAS,IAAI,CAAC,OAAO,GAAyB,EAAE,EAA0B;AACjF,EAAE,MAAM,OAAO;AACf,IAAI,mBAAmB,EAAE,sBAAsB,CAAQ,CAAC;AACxD,IAAI,GAAG,OAAO;AACd,GAAG;;AAEH,EAAE,MAAM,SAAA,GAAY,YAAY,EAAE;;AAElC,EAAE,IAAI,IAAI,CAAC,YAAY,EAAE,qBAAqB,EAAE;AAChD,IAAI,IAAI,SAAA,KAAc,kBAAkB,EAAE;AAC1C,MAAM,IAAI,CAAC,IAAI,CAAC,MAAM,EAAE;AACxB,QAAQ,eAAe,KAAK,CAAC,GAAG,CAAC,4DAA4D,CAAC;AAC9F,QAAQ,IAAI,CAAC,MAAA,GAAS,gCAAgC;AACtD,aAAa;AACb,QAAQ,WAAA;AACR,UAAU,KAAK,CAAC,IAAI;AACpB,YAAY,CAAC,qGAAqG,EAAE,IAAI,CAAC,MAAM,CAAC,+BAA+B,CAAC;AAChK,WAAW;AACX;AACA,WAAW;AACX,MAAM,eAAe,KAAK,CAAC,IAAI,CAAC,gFAAgF,CAAC;AACjH;AACA;;AAEA,EAAE,gBAAgB,CAAC,IAAI,EAAE,gBAAgB,EAAE,CAAC,gBAAgB,CAAC,EAAE,SAAS,CAAC;;AAEzE,EAAE,OAAO,8BAA8B,CAAC,IAAI,CAAC;AAC7C;;;;"} |
@@ -1,1 +0,1 @@ | ||
| {"type":"module","version":"10.10.0","sideEffects":false} | ||
| {"type":"module","version":"10.11.0","sideEffects":false} |
@@ -1,2 +0,2 @@ | ||
| export { addEventProcessor, addBreadcrumb, addIntegration, captureException, captureEvent, captureMessage, captureCheckIn, captureFeedback, startSession, captureSession, endSession, withMonitor, createTransport, getClient, isInitialized, isEnabled, generateInstrumentOnce, getCurrentScope, getGlobalScope, getIsolationScope, getTraceData, getTraceMetaTags, setCurrentClient, Scope, SDK_VERSION, setContext, setExtra, setExtras, setTag, setTags, setUser, getSpanStatusFromHttpCode, setHttpStatus, withScope, withIsolationScope, makeNodeTransport, NodeClient, defaultStackParser, lastEventId, flush, close, getSentryRelease, createGetModuleFromFilename, anrIntegration, disableAnrDetectionForCallback, consoleIntegration, httpIntegration, nativeNodeFetchIntegration, onUncaughtExceptionIntegration, onUnhandledRejectionIntegration, openAIIntegration, modulesIntegration, contextLinesIntegration, nodeContextIntegration, localVariablesIntegration, requestDataIntegration, functionToStringIntegration, inboundFiltersIntegration, eventFiltersIntegration, linkedErrorsIntegration, setMeasurement, getActiveSpan, startSpan, startInactiveSpan, startSpanManual, startNewTrace, suppressTracing, withActiveSpan, getRootSpan, getSpanDescendants, continueTrace, getAutoPerformanceIntegrations, cron, parameterize, SEMANTIC_ATTRIBUTE_SENTRY_OP, SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN, SEMANTIC_ATTRIBUTE_SENTRY_SOURCE, SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE, dataloaderIntegration, expressIntegration, expressErrorHandler, setupExpressErrorHandler, koaIntegration, setupKoaErrorHandler, connectIntegration, setupConnectErrorHandler, fastifyIntegration, firebaseIntegration, fsIntegration, genericPoolIntegration, graphqlIntegration, knexIntegration, kafkaIntegration, lruMemoizerIntegration, mongoIntegration, mongooseIntegration, mysqlIntegration, mysql2Integration, redisIntegration, tediousIntegration, postgresIntegration, postgresJsIntegration, prismaIntegration, childProcessIntegration, createSentryWinstonTransport, hapiIntegration, setupHapiErrorHandler, spotlightIntegration, initOpenTelemetry, spanToJSON, spanToTraceHeader, spanToBaggageHeader, systemErrorIntegration, trpcMiddleware, updateSpanName, supabaseIntegration, instrumentSupabaseClient, zodErrorsIntegration, profiler, amqplibIntegration, anthropicAIIntegration, vercelAIIntegration, logger, consoleLoggingIntegration, wrapMcpServerWithSentry, NODE_VERSION, featureFlagsIntegration, FeatureFlagsIntegration, launchDarklyIntegration, buildLaunchDarklyFlagUsedHandler, openFeatureIntegration, OpenFeatureIntegrationHook, statsigIntegration, unleashIntegration } from '@sentry/node'; | ||
| export { addEventProcessor, addBreadcrumb, addIntegration, captureException, captureEvent, captureMessage, captureCheckIn, captureFeedback, startSession, captureSession, endSession, withMonitor, createTransport, getClient, isInitialized, isEnabled, generateInstrumentOnce, getCurrentScope, getGlobalScope, getIsolationScope, getTraceData, getTraceMetaTags, setCurrentClient, Scope, SDK_VERSION, setContext, setExtra, setExtras, setTag, setTags, setUser, getSpanStatusFromHttpCode, setHttpStatus, withScope, withIsolationScope, makeNodeTransport, NodeClient, defaultStackParser, lastEventId, flush, close, getSentryRelease, createGetModuleFromFilename, httpHeadersToSpanAttributes, winterCGHeadersToDict, anrIntegration, disableAnrDetectionForCallback, consoleIntegration, httpIntegration, nativeNodeFetchIntegration, onUncaughtExceptionIntegration, onUnhandledRejectionIntegration, openAIIntegration, modulesIntegration, contextLinesIntegration, nodeContextIntegration, localVariablesIntegration, requestDataIntegration, functionToStringIntegration, inboundFiltersIntegration, eventFiltersIntegration, linkedErrorsIntegration, setMeasurement, getActiveSpan, startSpan, startInactiveSpan, startSpanManual, startNewTrace, suppressTracing, withActiveSpan, getRootSpan, getSpanDescendants, continueTrace, getAutoPerformanceIntegrations, cron, parameterize, SEMANTIC_ATTRIBUTE_SENTRY_OP, SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN, SEMANTIC_ATTRIBUTE_SENTRY_SOURCE, SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE, dataloaderIntegration, expressIntegration, expressErrorHandler, setupExpressErrorHandler, koaIntegration, setupKoaErrorHandler, connectIntegration, setupConnectErrorHandler, fastifyIntegration, firebaseIntegration, fsIntegration, genericPoolIntegration, graphqlIntegration, knexIntegration, kafkaIntegration, lruMemoizerIntegration, mongoIntegration, mongooseIntegration, mysqlIntegration, mysql2Integration, redisIntegration, tediousIntegration, postgresIntegration, postgresJsIntegration, prismaIntegration, childProcessIntegration, createSentryWinstonTransport, hapiIntegration, setupHapiErrorHandler, spotlightIntegration, initOpenTelemetry, spanToJSON, spanToTraceHeader, spanToBaggageHeader, systemErrorIntegration, trpcMiddleware, updateSpanName, supabaseIntegration, instrumentSupabaseClient, zodErrorsIntegration, profiler, amqplibIntegration, anthropicAIIntegration, vercelAIIntegration, logger, consoleLoggingIntegration, wrapMcpServerWithSentry, NODE_VERSION, featureFlagsIntegration, FeatureFlagsIntegration, launchDarklyIntegration, buildLaunchDarklyFlagUsedHandler, openFeatureIntegration, OpenFeatureIntegrationHook, statsigIntegration, unleashIntegration } from '@sentry/node'; | ||
| export { captureConsoleIntegration, dedupeIntegration, extraErrorDataIntegration, rewriteFramesIntegration, } from '@sentry/core'; | ||
@@ -3,0 +3,0 @@ export { awsIntegration } from './integration/aws'; |
@@ -7,2 +7,10 @@ import { Integration, Options } from '@sentry/core'; | ||
| export declare function getDefaultIntegrations(_options: Options): Integration[]; | ||
| export interface AwsServerlessOptions extends NodeOptions { | ||
| _experiments?: NodeOptions['_experiments'] & { | ||
| /** | ||
| * If proxying Sentry events through the Sentry Lambda extension should be enabled. | ||
| */ | ||
| enableLambdaExtension?: boolean; | ||
| }; | ||
| } | ||
| /** | ||
@@ -13,3 +21,3 @@ * Initializes the Sentry AWS Lambda SDK. | ||
| */ | ||
| export declare function init(options?: NodeOptions): NodeClient | undefined; | ||
| export declare function init(options?: AwsServerlessOptions): NodeClient | undefined; | ||
| //# sourceMappingURL=init.d.ts.map |
@@ -1,2 +0,2 @@ | ||
| export { addEventProcessor, addBreadcrumb, addIntegration, captureException, captureEvent, captureMessage, captureCheckIn, captureFeedback, startSession, captureSession, endSession, withMonitor, createTransport, getClient, isInitialized, isEnabled, generateInstrumentOnce, getCurrentScope, getGlobalScope, getIsolationScope, getTraceData, getTraceMetaTags, setCurrentClient, Scope, SDK_VERSION, setContext, setExtra, setExtras, setTag, setTags, setUser, getSpanStatusFromHttpCode, setHttpStatus, withScope, withIsolationScope, makeNodeTransport, NodeClient, defaultStackParser, lastEventId, flush, close, getSentryRelease, createGetModuleFromFilename, anrIntegration, disableAnrDetectionForCallback, consoleIntegration, httpIntegration, nativeNodeFetchIntegration, onUncaughtExceptionIntegration, onUnhandledRejectionIntegration, openAIIntegration, modulesIntegration, contextLinesIntegration, nodeContextIntegration, localVariablesIntegration, requestDataIntegration, functionToStringIntegration, inboundFiltersIntegration, eventFiltersIntegration, linkedErrorsIntegration, setMeasurement, getActiveSpan, startSpan, startInactiveSpan, startSpanManual, startNewTrace, suppressTracing, withActiveSpan, getRootSpan, getSpanDescendants, continueTrace, getAutoPerformanceIntegrations, cron, parameterize, SEMANTIC_ATTRIBUTE_SENTRY_OP, SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN, SEMANTIC_ATTRIBUTE_SENTRY_SOURCE, SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE, dataloaderIntegration, expressIntegration, expressErrorHandler, setupExpressErrorHandler, koaIntegration, setupKoaErrorHandler, connectIntegration, setupConnectErrorHandler, fastifyIntegration, firebaseIntegration, fsIntegration, genericPoolIntegration, graphqlIntegration, knexIntegration, kafkaIntegration, lruMemoizerIntegration, mongoIntegration, mongooseIntegration, mysqlIntegration, mysql2Integration, redisIntegration, tediousIntegration, postgresIntegration, postgresJsIntegration, prismaIntegration, childProcessIntegration, createSentryWinstonTransport, hapiIntegration, setupHapiErrorHandler, spotlightIntegration, initOpenTelemetry, spanToJSON, spanToTraceHeader, spanToBaggageHeader, systemErrorIntegration, trpcMiddleware, updateSpanName, supabaseIntegration, instrumentSupabaseClient, zodErrorsIntegration, profiler, amqplibIntegration, anthropicAIIntegration, vercelAIIntegration, logger, consoleLoggingIntegration, wrapMcpServerWithSentry, NODE_VERSION, featureFlagsIntegration, type FeatureFlagsIntegration, launchDarklyIntegration, buildLaunchDarklyFlagUsedHandler, openFeatureIntegration, OpenFeatureIntegrationHook, statsigIntegration, unleashIntegration, } from '@sentry/node'; | ||
| export { addEventProcessor, addBreadcrumb, addIntegration, captureException, captureEvent, captureMessage, captureCheckIn, captureFeedback, startSession, captureSession, endSession, withMonitor, createTransport, getClient, isInitialized, isEnabled, generateInstrumentOnce, getCurrentScope, getGlobalScope, getIsolationScope, getTraceData, getTraceMetaTags, setCurrentClient, Scope, SDK_VERSION, setContext, setExtra, setExtras, setTag, setTags, setUser, getSpanStatusFromHttpCode, setHttpStatus, withScope, withIsolationScope, makeNodeTransport, NodeClient, defaultStackParser, lastEventId, flush, close, getSentryRelease, createGetModuleFromFilename, httpHeadersToSpanAttributes, winterCGHeadersToDict, anrIntegration, disableAnrDetectionForCallback, consoleIntegration, httpIntegration, nativeNodeFetchIntegration, onUncaughtExceptionIntegration, onUnhandledRejectionIntegration, openAIIntegration, modulesIntegration, contextLinesIntegration, nodeContextIntegration, localVariablesIntegration, requestDataIntegration, functionToStringIntegration, inboundFiltersIntegration, eventFiltersIntegration, linkedErrorsIntegration, setMeasurement, getActiveSpan, startSpan, startInactiveSpan, startSpanManual, startNewTrace, suppressTracing, withActiveSpan, getRootSpan, getSpanDescendants, continueTrace, getAutoPerformanceIntegrations, cron, parameterize, SEMANTIC_ATTRIBUTE_SENTRY_OP, SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN, SEMANTIC_ATTRIBUTE_SENTRY_SOURCE, SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE, dataloaderIntegration, expressIntegration, expressErrorHandler, setupExpressErrorHandler, koaIntegration, setupKoaErrorHandler, connectIntegration, setupConnectErrorHandler, fastifyIntegration, firebaseIntegration, fsIntegration, genericPoolIntegration, graphqlIntegration, knexIntegration, kafkaIntegration, lruMemoizerIntegration, mongoIntegration, mongooseIntegration, mysqlIntegration, mysql2Integration, redisIntegration, tediousIntegration, postgresIntegration, postgresJsIntegration, prismaIntegration, childProcessIntegration, createSentryWinstonTransport, hapiIntegration, setupHapiErrorHandler, spotlightIntegration, initOpenTelemetry, spanToJSON, spanToTraceHeader, spanToBaggageHeader, systemErrorIntegration, trpcMiddleware, updateSpanName, supabaseIntegration, instrumentSupabaseClient, zodErrorsIntegration, profiler, amqplibIntegration, anthropicAIIntegration, vercelAIIntegration, logger, consoleLoggingIntegration, wrapMcpServerWithSentry, NODE_VERSION, featureFlagsIntegration, type FeatureFlagsIntegration, launchDarklyIntegration, buildLaunchDarklyFlagUsedHandler, openFeatureIntegration, OpenFeatureIntegrationHook, statsigIntegration, unleashIntegration, } from '@sentry/node'; | ||
| export { captureConsoleIntegration, dedupeIntegration, extraErrorDataIntegration, rewriteFramesIntegration, } from '@sentry/core'; | ||
@@ -3,0 +3,0 @@ export { awsIntegration } from './integration/aws'; |
@@ -1,1 +0,1 @@ | ||
| {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,iBAAiB,EACjB,aAAa,EACb,cAAc,EACd,gBAAgB,EAChB,YAAY,EACZ,cAAc,EACd,cAAc,EACd,eAAe,EACf,YAAY,EACZ,cAAc,EACd,UAAU,EACV,WAAW,EACX,eAAe,EACf,SAAS,EACT,aAAa,EACb,SAAS,EACT,sBAAsB,EACtB,eAAe,EACf,cAAc,EACd,iBAAiB,EACjB,YAAY,EACZ,gBAAgB,EAChB,gBAAgB,EAChB,KAAK,EACL,WAAW,EACX,UAAU,EACV,QAAQ,EACR,SAAS,EACT,MAAM,EACN,OAAO,EACP,OAAO,EACP,yBAAyB,EACzB,aAAa,EACb,SAAS,EACT,kBAAkB,EAClB,iBAAiB,EACjB,UAAU,EACV,kBAAkB,EAClB,WAAW,EACX,KAAK,EACL,KAAK,EACL,gBAAgB,EAChB,2BAA2B,EAE3B,cAAc,EAEd,8BAA8B,EAC9B,kBAAkB,EAClB,eAAe,EACf,0BAA0B,EAC1B,8BAA8B,EAC9B,+BAA+B,EAC/B,iBAAiB,EACjB,kBAAkB,EAClB,uBAAuB,EACvB,sBAAsB,EACtB,yBAAyB,EACzB,sBAAsB,EACtB,2BAA2B,EAE3B,yBAAyB,EACzB,uBAAuB,EACvB,uBAAuB,EACvB,cAAc,EACd,aAAa,EACb,SAAS,EACT,iBAAiB,EACjB,eAAe,EACf,aAAa,EACb,eAAe,EACf,cAAc,EACd,WAAW,EACX,kBAAkB,EAClB,aAAa,EACb,8BAA8B,EAC9B,IAAI,EACJ,YAAY,EACZ,4BAA4B,EAC5B,gCAAgC,EAChC,gCAAgC,EAChC,qCAAqC,EACrC,qBAAqB,EACrB,kBAAkB,EAClB,mBAAmB,EACnB,wBAAwB,EACxB,cAAc,EACd,oBAAoB,EACpB,kBAAkB,EAClB,wBAAwB,EACxB,kBAAkB,EAClB,mBAAmB,EACnB,aAAa,EACb,sBAAsB,EACtB,kBAAkB,EAClB,eAAe,EACf,gBAAgB,EAChB,sBAAsB,EACtB,gBAAgB,EAChB,mBAAmB,EACnB,gBAAgB,EAChB,iBAAiB,EACjB,gBAAgB,EAChB,kBAAkB,EAClB,mBAAmB,EACnB,qBAAqB,EACrB,iBAAiB,EACjB,uBAAuB,EACvB,4BAA4B,EAC5B,eAAe,EACf,qBAAqB,EACrB,oBAAoB,EACpB,iBAAiB,EACjB,UAAU,EACV,iBAAiB,EACjB,mBAAmB,EACnB,sBAAsB,EACtB,cAAc,EACd,cAAc,EACd,mBAAmB,EACnB,wBAAwB,EACxB,oBAAoB,EACpB,QAAQ,EACR,kBAAkB,EAClB,sBAAsB,EACtB,mBAAmB,EACnB,MAAM,EACN,yBAAyB,EACzB,uBAAuB,EACvB,YAAY,EACZ,uBAAuB,EACvB,KAAK,uBAAuB,EAC5B,uBAAuB,EACvB,gCAAgC,EAChC,sBAAsB,EACtB,0BAA0B,EAC1B,kBAAkB,EAClB,kBAAkB,GACnB,MAAM,cAAc,CAAC;AAEtB,OAAO,EACL,yBAAyB,EACzB,iBAAiB,EACjB,yBAAyB,EACzB,wBAAwB,GACzB,MAAM,cAAc,CAAC;AAEtB,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAE/D,OAAO,EAAE,sBAAsB,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAEtD,OAAO,EAAE,eAAe,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AACrD,YAAY,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC"} | ||
| {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,iBAAiB,EACjB,aAAa,EACb,cAAc,EACd,gBAAgB,EAChB,YAAY,EACZ,cAAc,EACd,cAAc,EACd,eAAe,EACf,YAAY,EACZ,cAAc,EACd,UAAU,EACV,WAAW,EACX,eAAe,EACf,SAAS,EACT,aAAa,EACb,SAAS,EACT,sBAAsB,EACtB,eAAe,EACf,cAAc,EACd,iBAAiB,EACjB,YAAY,EACZ,gBAAgB,EAChB,gBAAgB,EAChB,KAAK,EACL,WAAW,EACX,UAAU,EACV,QAAQ,EACR,SAAS,EACT,MAAM,EACN,OAAO,EACP,OAAO,EACP,yBAAyB,EACzB,aAAa,EACb,SAAS,EACT,kBAAkB,EAClB,iBAAiB,EACjB,UAAU,EACV,kBAAkB,EAClB,WAAW,EACX,KAAK,EACL,KAAK,EACL,gBAAgB,EAChB,2BAA2B,EAC3B,2BAA2B,EAC3B,qBAAqB,EAErB,cAAc,EAEd,8BAA8B,EAC9B,kBAAkB,EAClB,eAAe,EACf,0BAA0B,EAC1B,8BAA8B,EAC9B,+BAA+B,EAC/B,iBAAiB,EACjB,kBAAkB,EAClB,uBAAuB,EACvB,sBAAsB,EACtB,yBAAyB,EACzB,sBAAsB,EACtB,2BAA2B,EAE3B,yBAAyB,EACzB,uBAAuB,EACvB,uBAAuB,EACvB,cAAc,EACd,aAAa,EACb,SAAS,EACT,iBAAiB,EACjB,eAAe,EACf,aAAa,EACb,eAAe,EACf,cAAc,EACd,WAAW,EACX,kBAAkB,EAClB,aAAa,EACb,8BAA8B,EAC9B,IAAI,EACJ,YAAY,EACZ,4BAA4B,EAC5B,gCAAgC,EAChC,gCAAgC,EAChC,qCAAqC,EACrC,qBAAqB,EACrB,kBAAkB,EAClB,mBAAmB,EACnB,wBAAwB,EACxB,cAAc,EACd,oBAAoB,EACpB,kBAAkB,EAClB,wBAAwB,EACxB,kBAAkB,EAClB,mBAAmB,EACnB,aAAa,EACb,sBAAsB,EACtB,kBAAkB,EAClB,eAAe,EACf,gBAAgB,EAChB,sBAAsB,EACtB,gBAAgB,EAChB,mBAAmB,EACnB,gBAAgB,EAChB,iBAAiB,EACjB,gBAAgB,EAChB,kBAAkB,EAClB,mBAAmB,EACnB,qBAAqB,EACrB,iBAAiB,EACjB,uBAAuB,EACvB,4BAA4B,EAC5B,eAAe,EACf,qBAAqB,EACrB,oBAAoB,EACpB,iBAAiB,EACjB,UAAU,EACV,iBAAiB,EACjB,mBAAmB,EACnB,sBAAsB,EACtB,cAAc,EACd,cAAc,EACd,mBAAmB,EACnB,wBAAwB,EACxB,oBAAoB,EACpB,QAAQ,EACR,kBAAkB,EAClB,sBAAsB,EACtB,mBAAmB,EACnB,MAAM,EACN,yBAAyB,EACzB,uBAAuB,EACvB,YAAY,EACZ,uBAAuB,EACvB,KAAK,uBAAuB,EAC5B,uBAAuB,EACvB,gCAAgC,EAChC,sBAAsB,EACtB,0BAA0B,EAC1B,kBAAkB,EAClB,kBAAkB,GACnB,MAAM,cAAc,CAAC;AAEtB,OAAO,EACL,yBAAyB,EACzB,iBAAiB,EACjB,yBAAyB,EACzB,wBAAwB,GACzB,MAAM,cAAc,CAAC;AAEtB,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAE/D,OAAO,EAAE,sBAAsB,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAEtD,OAAO,EAAE,eAAe,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AACrD,YAAY,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC"} |
@@ -7,2 +7,10 @@ import type { Integration, Options } from '@sentry/core'; | ||
| export declare function getDefaultIntegrations(_options: Options): Integration[]; | ||
| export interface AwsServerlessOptions extends NodeOptions { | ||
| _experiments?: NodeOptions['_experiments'] & { | ||
| /** | ||
| * If proxying Sentry events through the Sentry Lambda extension should be enabled. | ||
| */ | ||
| enableLambdaExtension?: boolean; | ||
| }; | ||
| } | ||
| /** | ||
@@ -13,3 +21,3 @@ * Initializes the Sentry AWS Lambda SDK. | ||
| */ | ||
| export declare function init(options?: NodeOptions): NodeClient | undefined; | ||
| export declare function init(options?: AwsServerlessOptions): NodeClient | undefined; | ||
| //# sourceMappingURL=init.d.ts.map |
@@ -1,1 +0,1 @@ | ||
| {"version":3,"file":"init.d.ts","sourceRoot":"","sources":["../../../src/init.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAEzD,OAAO,KAAK,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAK5D;;GAEG;AAGH,wBAAgB,sBAAsB,CAAC,QAAQ,EAAE,OAAO,GAAG,WAAW,EAAE,CAEvE;AAED;;;;GAIG;AACH,wBAAgB,IAAI,CAAC,OAAO,GAAE,WAAgB,GAAG,UAAU,GAAG,SAAS,CAStE"} | ||
| {"version":3,"file":"init.d.ts","sourceRoot":"","sources":["../../../src/init.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAEzD,OAAO,KAAK,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAK5D;;GAEG;AAGH,wBAAgB,sBAAsB,CAAC,QAAQ,EAAE,OAAO,GAAG,WAAW,EAAE,CAEvE;AAED,MAAM,WAAW,oBAAqB,SAAQ,WAAW;IACvD,YAAY,CAAC,EAAE,WAAW,CAAC,cAAc,CAAC,GAAG;QAC3C;;WAEG;QACH,qBAAqB,CAAC,EAAE,OAAO,CAAC;KACjC,CAAC;CACH;AAED;;;;GAIG;AACH,wBAAgB,IAAI,CAAC,OAAO,GAAE,oBAAyB,GAAG,UAAU,GAAG,SAAS,CA2B/E"} |
+4
-4
| { | ||
| "name": "@sentry/aws-serverless", | ||
| "version": "10.10.0", | ||
| "version": "10.11.0", | ||
| "description": "Official Sentry SDK for AWS Lambda and AWS Serverless Environments", | ||
@@ -72,4 +72,4 @@ "repository": "git://github.com/getsentry/sentry-javascript.git", | ||
| "@opentelemetry/semantic-conventions": "^1.36.0", | ||
| "@sentry/core": "10.10.0", | ||
| "@sentry/node": "10.10.0", | ||
| "@sentry/core": "10.11.0", | ||
| "@sentry/node": "10.11.0", | ||
| "@types/aws-lambda": "^8.10.62" | ||
@@ -83,3 +83,3 @@ }, | ||
| "build": "run-p build:transpile build:types", | ||
| "build:layer": "yarn ts-node scripts/buildLambdaLayer.ts", | ||
| "build:layer": "rollup -c rollup.lambda-extension.config.mjs && yarn ts-node scripts/buildLambdaLayer.ts", | ||
| "build:dev": "run-p build:transpile build:types", | ||
@@ -86,0 +86,0 @@ "build:transpile": "rollup -c rollup.npm.config.mjs && yarn build:layer", |
Debug access
Supply chain riskUses debug, reflection and dynamic code execution features.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 5 instances in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
Debug access
Supply chain riskUses debug, reflection and dynamic code execution features.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 5 instances in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
263299
3.44%91
10.98%2665
4.84%0
-100%+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
- Removed
- Removed
- Removed
- Removed
- Removed
Updated
Updated