/// <inheritdoc /> /// <summary> /// This overriding method is what the Lambda function handler points to. /// </summary> public override async Task <APIGatewayProxyResponse> FunctionHandlerAsync(APIGatewayProxyRequest request, ILambdaContext lambdaContext) { if (!TelemetryConfiguration.TracingEnabled && !TelemetryConfiguration.MetricsEnabled) { return(await base.FunctionHandlerAsync(request, lambdaContext).ConfigureAwait(false)); } return(await s_functionWrapper.InvokeAPIGatewayProxyAsync( base.FunctionHandlerAsync, request, lambdaContext).ConfigureAwait(false)); }