DEV Community

Discussion on: Using New Relic APM with Rails on AWS Lambda

Collapse
 
d3 profile image
D3

Thank you @metaskills for this guide.

It seems to work, but with one downside - if using the implementation as per Lambda Punch guide, then it does not send info to New Relic:

def handler(event:, context:)
  Lamby.handler $app, event, context, rack: :http
ensure
  LambdaPunch.push { NewRelic::Agent.agent.flush_pipe_data }
  LambdaPunch.handled!(context)
end
Enter fullscreen mode Exit fullscreen mode

But when omitting LambdaPunch.handled!(context) as per your guide, requests take up additional 2s :)

Did you face same drawbacks or were you able to somehow overcome them?