rails-lambda / lamby

🐑🛤 Simple Rails & AWS Lambda Integration
https://lamby.cloud
MIT License
602 stars 29 forks source link

Add New Relic Request Queue Header #108

Closed metaskills closed 3 years ago

metaskills commented 3 years ago

My guess here is this is the right data point available to us. Here is the documenation from a New Relic perspective (https://docs.newrelic.com/docs/apm/applications-menu/features/configure-request-queue-reporting/) and here are the docs on request time epoch from API Gateway (https://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-mapping-template-reference.html). My hope is that this is the time the requet starts and is prior to cold start or init phase.

NOTE: There is no data for this time epoch in an ALB only integration.

metaskills commented 3 years ago

Thanks, will see if this works.

metaskills commented 3 years ago

Had to do a v3.1.1 fix here since the data is in a few places. https://github.com/customink/lamby/commit/f69ac341a0dc0be54c74e30dade9ad9b89bf3ed4. Also thanks to @avinash-vllbh this is a great resource for the payload format. https://docs.aws.amazon.com/apigateway/latest/developerguide/http-api-develop-integrations-lambda.html