in lib/aws_lambda_ric.rb [67:80]
def wait_for_invocation
request_id, raw_request = @lambda_server.next_invocation
$_global_aws_request_id = request_id
if (trace_id = raw_request['Lambda-Runtime-Trace-Id'])
ENV['_X_AMZN_TRACE_ID'] = trace_id
end
request = AwsLambda::Marshaller.marshall_request(raw_request)
LambdaInvocationRequest.new(request_id, raw_request, request, trace_id)
rescue LambdaErrors::InvocationError => e
@runtime_loop_active = false
raise e
end