File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ import { isProduction } from '../config/common';
22
22
import { toJson } from '../utils/logger' ;
23
23
import { createEventDebugLogger } from './logger' ;
24
24
import { ArgumentError } from '../utils/errors' ;
25
+ import { xrayCaptureAllHttpTraffic } from '../utils/xray' ;
25
26
26
27
const debug = createEventDebugLogger ( 'apollo' ) ;
27
28
const trace = createEventDebugLogger ( 'apollo:trace' ) ;
@@ -112,6 +113,8 @@ const apolloLambdaHandler: APIGatewayProxyHandler = server.createHandler(buildAp
112
113
113
114
// noinspection JSUnusedGlobalSymbols
114
115
export const handler = async ( event : APIGatewayProxyEvent , context : LambdaContext ) : Promise < APIGatewayProxyResult > => {
116
+ xrayCaptureAllHttpTraffic ( ) ;
117
+
115
118
try {
116
119
const result = await apolloLambdaHandler ( event , context , ( ) => { } ) ;
117
120
if ( ! result ) {
You can’t perform that action at this time.
0 commit comments