@@ -2,7 +2,6 @@ import { existsSync } from 'fs';
22import { hostname } from 'os' ;
33import { basename , resolve } from 'path' ;
44import { types } from 'util' ;
5- /* eslint-disable max-lines */
65import type { NodeOptions , Scope } from '@sentry/node' ;
76import { SDK_VERSION } from '@sentry/node' ;
87import {
@@ -19,12 +18,11 @@ import {
1918} from '@sentry/node' ;
2019import type { Integration , Options , SdkMetadata , Span } from '@sentry/types' ;
2120import { isString , logger } from '@sentry/utils' ;
22- // NOTE: I have no idea how to fix this right now, and don't want to waste more time, as it builds just fine — Kamil
2321import type { Context , Handler } from 'aws-lambda' ;
2422import { performance } from 'perf_hooks' ;
2523
2624import { SEMANTIC_ATTRIBUTE_SENTRY_SOURCE } from '@sentry/core' ;
27- import { AWSServices } from './awsservices' ;
25+ import { awsServicesIntegration } from './awsservices' ;
2826import { DEBUG_BUILD } from './debug-build' ;
2927import { markEventUnhandled } from './utils' ;
3028
@@ -71,12 +69,12 @@ export interface WrapperOptions {
7169export const defaultIntegrations : Integration [ ] = [
7270 // eslint-disable-next-line deprecation/deprecation
7371 ...nodeDefaultIntegrations ,
74- new AWSServices ( { optional : true } ) ,
72+ awsServicesIntegration ( { optional : true } ) ,
7573] ;
7674
7775/** Get the default integrations for the AWSLambda SDK. */
7876export function getDefaultIntegrations ( options : Options ) : Integration [ ] {
79- return [ ...getNodeDefaultIntegrations ( options ) , new AWSServices ( { optional : true } ) ] ;
77+ return [ ...getNodeDefaultIntegrations ( options ) , awsServicesIntegration ( { optional : true } ) ] ;
8078}
8179
8280interface AWSLambdaOptions extends NodeOptions {
0 commit comments