We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent da42f87 commit d9e4dc6Copy full SHA for d9e4dc6
src/instrumentation/core/http.js
@@ -15,7 +15,7 @@ function wrapEmitWithTransaction(agent, emit) {
15
const statusCode = String(response.statusCode)
16
const path = transaction.path || request.path
17
if (/^\d+$/.test(statusCode)) {
18
- const context = request.headers['x-apigateway-context']
+ const context = request.__SLS_CONTEXT__
19
const latency = Date.now() - transaction.start
20
const data = {
21
latency,
0 commit comments