apm-agent-nodejs icon indicating copy to clipboard operation
apm-agent-nodejs copied to clipboard

Lambda: fill the HTTP context for API Gateway-triggered functions

Open astorm opened this issue 4 years ago • 1 comments

https://github.com/elastic/apm-agent-nodejs/pull/2194#discussion_r742328035

Also the spec says:

The agent should use the information in the request and response objects to fill the HTTP context (context.request and context.response) fields in the same way it is done for HTTP transactions. Perhaps a separate issue to add transaction.context.{request,response} fields? We won't be able to re-use the parsers.getContextFrom{Request,Response}() functions that take core http objects.

astorm avatar Nov 04 '21 17:11 astorm

Relevant spec section: https://github.com/elastic/apm/blob/main/specs/agents/tracing-instrumentation-aws-lambda.md#api-gateway-v1--v2

trentm avatar Mar 04 '22 22:03 trentm

See https://github.com/elastic/apm-agent-nodejs/issues/3000 that I think might just be handled by doing this one.

trentm avatar Oct 24 '22 21:10 trentm