Skip to content

Commit a080c3a

Browse files
committed
chore: add sray capture
1 parent 1cd9d28 commit a080c3a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/events/apollo.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ import { isProduction } from '../config/common';
2222
import { toJson } from '../utils/logger';
2323
import { createEventDebugLogger } from './logger';
2424
import { ArgumentError } from '../utils/errors';
25+
import { xrayCaptureAllHttpTraffic } from '../utils/xray';
2526

2627
const debug = createEventDebugLogger('apollo');
2728
const trace = createEventDebugLogger('apollo:trace');
@@ -112,6 +113,8 @@ const apolloLambdaHandler: APIGatewayProxyHandler = server.createHandler(buildAp
112113

113114
// noinspection JSUnusedGlobalSymbols
114115
export const handler = async (event: APIGatewayProxyEvent, context: LambdaContext): Promise<APIGatewayProxyResult> => {
116+
xrayCaptureAllHttpTraffic();
117+
115118
try {
116119
const result = await apolloLambdaHandler(event, context, () => {});
117120
if (!result) {

0 commit comments

Comments
 (0)