Skip to content

Commit 4ec5231

Browse files
committed
update dd-trace to 2.25.1
1 parent d490517 commit 4ec5231

31 files changed

+55
-23
lines changed

integration_tests/snapshots/logs/async-metrics_node12.log

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
INIT_START Runtime Version: nodejs:12.v28 Runtime Version ARN: arn:aws:lambda:eu-west-1::runtime:77abd29a376492953263fdbbd771e2b863be367d591311a62a99db79d326dc26
12
START
23
{
34
"e": XXXX,

integration_tests/snapshots/logs/async-metrics_node14.log

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
INIT_START Runtime Version: nodejs:14.v28 Runtime Version ARN: arn:aws:lambda:eu-west-1::runtime:be4a32da6aeaa90583d476cb548ced79ae2c9aa7b14a45129198bbd13ea5822d
12
START
23
{
34
"e": XXXX,

integration_tests/snapshots/logs/async-metrics_node16.log

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
INIT_START Runtime Version: nodejs:16.v11 Runtime Version ARN: arn:aws:lambda:eu-west-1::runtime:ee071345fbee0f4751fcbcd47a5784052d8f7d4256ca7f31e6056b294cee515c
12
START
23
{
34
"e": XXXX,

integration_tests/snapshots/logs/async-metrics_node18.log

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
INIT_START Runtime Version: nodejs:18.v4 Runtime Version ARN: arn:aws:lambda:eu-west-1::runtime:f2af14107aa47577b6391cef2e58e6032a5520042f7d27a21ab33c9ee5a18adb
12
START
23
{
34
"e": XXXX,

integration_tests/snapshots/logs/esm_node12.log

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
INIT_START Runtime Version: nodejs:12.v28 Runtime Version ARN: arn:aws:lambda:eu-west-1::runtime:77abd29a376492953263fdbbd771e2b863be367d591311a62a99db79d326dc26
12
XXXX-XX-XX XX:XX:XX.XXX ERROR Uncaught Exception {"errorType":"Runtime.ImportModuleError","errorMessage":"Error: Cannot find module 'esm'\nRequire stack:\n- /opt/nodejs/node_modules/datadog-lambda-js/runtime/user-function.js\n- /opt/nodejs/node_modules/datadog-lambda-js/runtime/index.js\n- /opt/nodejs/node_modules/datadog-lambda-js/handler.js\n- /var/runtime/UserFunction.js\n- /var/runtime/index.js","stack":["Runtime.ImportModuleError: Error: Cannot find module 'esm'","Require stack:","- /opt/nodejs/node_modules/datadog-lambda-js/runtime/user-function.js","- /opt/nodejs/node_modules/datadog-lambda-js/runtime/index.js","- /opt/nodejs/node_modules/datadog-lambda-js/handler.js","- /var/runtime/UserFunction.js","- /var/runtime/index.js"," at ImportModuleError.ExtendedError [as constructor] (/opt/nodejs/node_modules/datadog-lambda-js/runtime/errors.js:XXX:XXX)"," at new ImportModuleError (/opt/nodejs/node_modules/datadog-lambda-js/runtime/errors.js:XXX:XXX)"," at _loadUserAppSync (/opt/nodejs/node_modules/datadog-lambda-js/runtime/user-function.js:XXX:XXX)"," at loadSync (/opt/nodejs/node_modules/datadog-lambda-js/runtime/user-function.js:XXX:XXX)"," at Object.<anonymous> (/opt/nodejs/node_modules/datadog-lambda-js/handler.js:XXX:XXX)"," at Module._compile (internal/modules/cjs/loader.js:XXX:XXX)"," at Object.Module._extensions..js (internal/modules/cjs/loader.js:XXX:XXX)"," at Module.load (internal/modules/cjs/loader.js:XXX:XXX)"," at Function.Module._load (internal/modules/cjs/loader.js:XXX:XXX)"," at Module.require (internal/modules/cjs/loader.js:XXX:XXX)"]}
23
{
34
"traces": [
@@ -213,6 +214,7 @@ START
213214
Unknown application error occurred
214215
Runtime.ImportModuleError
215216
END Duration: XXXX ms Memory Used: XXXX MB
217+
INIT_START Runtime Version: nodejs:12.v28 Runtime Version ARN: arn:aws:lambda:eu-west-1::runtime:77abd29a376492953263fdbbd771e2b863be367d591311a62a99db79d326dc26
216218
XXXX-XX-XX XX:XX:XX.XXX ERROR Uncaught Exception {"errorType":"Runtime.ImportModuleError","errorMessage":"Error: Cannot find module 'esm'\nRequire stack:\n- /opt/nodejs/node_modules/datadog-lambda-js/runtime/user-function.js\n- /opt/nodejs/node_modules/datadog-lambda-js/runtime/index.js\n- /opt/nodejs/node_modules/datadog-lambda-js/handler.js\n- /var/runtime/UserFunction.js\n- /var/runtime/index.js","stack":["Runtime.ImportModuleError: Error: Cannot find module 'esm'","Require stack:","- /opt/nodejs/node_modules/datadog-lambda-js/runtime/user-function.js","- /opt/nodejs/node_modules/datadog-lambda-js/runtime/index.js","- /opt/nodejs/node_modules/datadog-lambda-js/handler.js","- /var/runtime/UserFunction.js","- /var/runtime/index.js"," at ImportModuleError.ExtendedError [as constructor] (/opt/nodejs/node_modules/datadog-lambda-js/runtime/errors.js:XXX:XXX)"," at new ImportModuleError (/opt/nodejs/node_modules/datadog-lambda-js/runtime/errors.js:XXX:XXX)"," at _loadUserAppSync (/opt/nodejs/node_modules/datadog-lambda-js/runtime/user-function.js:XXX:XXX)"," at loadSync (/opt/nodejs/node_modules/datadog-lambda-js/runtime/user-function.js:XXX:XXX)"," at Object.<anonymous> (/opt/nodejs/node_modules/datadog-lambda-js/handler.js:XXX:XXX)"," at Module._compile (internal/modules/cjs/loader.js:XXX:XXX)"," at Object.Module._extensions..js (internal/modules/cjs/loader.js:XXX:XXX)"," at Module.load (internal/modules/cjs/loader.js:XXX:XXX)"," at Function.Module._load (internal/modules/cjs/loader.js:XXX:XXX)"," at Module.require (internal/modules/cjs/loader.js:XXX:XXX)"]}
217219
{
218220
"traces": [
@@ -355,6 +357,7 @@ START
355357
Unknown application error occurred
356358
Runtime.ImportModuleError
357359
END Duration: XXXX ms Memory Used: XXXX MB
360+
INIT_START Runtime Version: nodejs:12.v28 Runtime Version ARN: arn:aws:lambda:eu-west-1::runtime:77abd29a376492953263fdbbd771e2b863be367d591311a62a99db79d326dc26
358361
XXXX-XX-XX XX:XX:XX.XXX ERROR Uncaught Exception {"errorType":"Runtime.ImportModuleError","errorMessage":"Error: Cannot find module 'esm'\nRequire stack:\n- /opt/nodejs/node_modules/datadog-lambda-js/runtime/user-function.js\n- /opt/nodejs/node_modules/datadog-lambda-js/runtime/index.js\n- /opt/nodejs/node_modules/datadog-lambda-js/handler.js\n- /var/runtime/UserFunction.js\n- /var/runtime/index.js","stack":["Runtime.ImportModuleError: Error: Cannot find module 'esm'","Require stack:","- /opt/nodejs/node_modules/datadog-lambda-js/runtime/user-function.js","- /opt/nodejs/node_modules/datadog-lambda-js/runtime/index.js","- /opt/nodejs/node_modules/datadog-lambda-js/handler.js","- /var/runtime/UserFunction.js","- /var/runtime/index.js"," at ImportModuleError.ExtendedError [as constructor] (/opt/nodejs/node_modules/datadog-lambda-js/runtime/errors.js:XXX:XXX)"," at new ImportModuleError (/opt/nodejs/node_modules/datadog-lambda-js/runtime/errors.js:XXX:XXX)"," at _loadUserAppSync (/opt/nodejs/node_modules/datadog-lambda-js/runtime/user-function.js:XXX:XXX)"," at loadSync (/opt/nodejs/node_modules/datadog-lambda-js/runtime/user-function.js:XXX:XXX)"," at Object.<anonymous> (/opt/nodejs/node_modules/datadog-lambda-js/handler.js:XXX:XXX)"," at Module._compile (internal/modules/cjs/loader.js:XXX:XXX)"," at Object.Module._extensions..js (internal/modules/cjs/loader.js:XXX:XXX)"," at Module.load (internal/modules/cjs/loader.js:XXX:XXX)"," at Function.Module._load (internal/modules/cjs/loader.js:XXX:XXX)"," at Module.require (internal/modules/cjs/loader.js:XXX:XXX)"]}
359362
{
360363
"traces": [

integration_tests/snapshots/logs/esm_node14.log

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
INIT_START Runtime Version: nodejs:14.v28 Runtime Version ARN: arn:aws:lambda:eu-west-1::runtime:be4a32da6aeaa90583d476cb548ced79ae2c9aa7b14a45129198bbd13ea5822d
12
START
23
{
34
"e": XXXX,

integration_tests/snapshots/logs/esm_node16.log

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
INIT_START Runtime Version: nodejs:16.v11 Runtime Version ARN: arn:aws:lambda:eu-west-1::runtime:ee071345fbee0f4751fcbcd47a5784052d8f7d4256ca7f31e6056b294cee515c
12
START
23
{
34
"e": XXXX,

integration_tests/snapshots/logs/esm_node18.log

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
INIT_START Runtime Version: nodejs:18.v4 Runtime Version ARN: arn:aws:lambda:eu-west-1::runtime:f2af14107aa47577b6391cef2e58e6032a5520042f7d27a21ab33c9ee5a18adb
12
START
23
{
34
"e": XXXX,

integration_tests/snapshots/logs/http-requests_node12.log

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
INIT_START Runtime Version: nodejs:12.v28 Runtime Version ARN: arn:aws:lambda:eu-west-1::runtime:77abd29a376492953263fdbbd771e2b863be367d591311a62a99db79d326dc26
12
START
23
{
34
"e": XXXX,

integration_tests/snapshots/logs/http-requests_node14.log

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
INIT_START Runtime Version: nodejs:14.v28 Runtime Version ARN: arn:aws:lambda:eu-west-1::runtime:be4a32da6aeaa90583d476cb548ced79ae2c9aa7b14a45129198bbd13ea5822d
12
START
23
{
34
"e": XXXX,

integration_tests/snapshots/logs/http-requests_node16.log

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
INIT_START Runtime Version: nodejs:16.v11 Runtime Version ARN: arn:aws:lambda:eu-west-1::runtime:ee071345fbee0f4751fcbcd47a5784052d8f7d4256ca7f31e6056b294cee515c
12
START
23
{
34
"e": XXXX,

integration_tests/snapshots/logs/http-requests_node18.log

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
INIT_START Runtime Version: nodejs:18.v4 Runtime Version ARN: arn:aws:lambda:eu-west-1::runtime:f2af14107aa47577b6391cef2e58e6032a5520042f7d27a21ab33c9ee5a18adb
12
START
23
{
34
"e": XXXX,

integration_tests/snapshots/logs/process-input-traced_node12.log

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
INIT_START Runtime Version: nodejs:12.v28 Runtime Version ARN: arn:aws:lambda:eu-west-1::runtime:77abd29a376492953263fdbbd771e2b863be367d591311a62a99db79d326dc26
12
START
23
{
34
"e": XXXX,

integration_tests/snapshots/logs/process-input-traced_node14.log

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
INIT_START Runtime Version: nodejs:14.v28 Runtime Version ARN: arn:aws:lambda:eu-west-1::runtime:be4a32da6aeaa90583d476cb548ced79ae2c9aa7b14a45129198bbd13ea5822d
12
START
23
{
34
"e": XXXX,

integration_tests/snapshots/logs/process-input-traced_node16.log

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
INIT_START Runtime Version: nodejs:16.v11 Runtime Version ARN: arn:aws:lambda:eu-west-1::runtime:ee071345fbee0f4751fcbcd47a5784052d8f7d4256ca7f31e6056b294cee515c
12
START
23
{
34
"e": XXXX,

integration_tests/snapshots/logs/process-input-traced_node18.log

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
INIT_START Runtime Version: nodejs:18.v4 Runtime Version ARN: arn:aws:lambda:eu-west-1::runtime:f2af14107aa47577b6391cef2e58e6032a5520042f7d27a21ab33c9ee5a18adb
12
START
23
{
34
"e": XXXX,

integration_tests/snapshots/logs/status-code-500s_node12.log

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
INIT_START Runtime Version: nodejs:12.v28 Runtime Version ARN: arn:aws:lambda:eu-west-1::runtime:77abd29a376492953263fdbbd771e2b863be367d591311a62a99db79d326dc26
12
START
23
{
34
"e": XXXX,

integration_tests/snapshots/logs/status-code-500s_node14.log

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
INIT_START Runtime Version: nodejs:14.v28 Runtime Version ARN: arn:aws:lambda:eu-west-1::runtime:be4a32da6aeaa90583d476cb548ced79ae2c9aa7b14a45129198bbd13ea5822d
12
START
23
{
34
"e": XXXX,

integration_tests/snapshots/logs/status-code-500s_node16.log

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
INIT_START Runtime Version: nodejs:16.v11 Runtime Version ARN: arn:aws:lambda:eu-west-1::runtime:ee071345fbee0f4751fcbcd47a5784052d8f7d4256ca7f31e6056b294cee515c
12
START
23
{
34
"e": XXXX,

integration_tests/snapshots/logs/status-code-500s_node18.log

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
INIT_START Runtime Version: nodejs:18.v4 Runtime Version ARN: arn:aws:lambda:eu-west-1::runtime:f2af14107aa47577b6391cef2e58e6032a5520042f7d27a21ab33c9ee5a18adb
12
START
23
{
34
"e": XXXX,

integration_tests/snapshots/logs/sync-metrics_node12.log

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
INIT_START Runtime Version: nodejs:12.v28 Runtime Version ARN: arn:aws:lambda:eu-west-1::runtime:77abd29a376492953263fdbbd771e2b863be367d591311a62a99db79d326dc26
12
START
23
{
34
"e": XXXX,

integration_tests/snapshots/logs/sync-metrics_node14.log

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
INIT_START Runtime Version: nodejs:14.v28 Runtime Version ARN: arn:aws:lambda:eu-west-1::runtime:be4a32da6aeaa90583d476cb548ced79ae2c9aa7b14a45129198bbd13ea5822d
12
START
23
{
34
"e": XXXX,
@@ -18,6 +19,7 @@ XXXX-XX-XX XX:XX:XX.XXX INFO [dd.trace_id=XXXX dd.span_id=XXXX] Processed APIGat
1819
HTTP POST https://api.datadoghq.com/api/v1/distribution_points?api_key=XXXX TraceHeaders: ["x-datadog-parent-id:XXXX","x-datadog-sampling-priority:-1","x-datadog-trace-id:XXXX"]
1920
END Duration: XXXX ms (init: XXXX ms) Memory Used: XXXX MB
2021
START
22+
XXXX-XX-XX XX:XX:XX.XXX INFO [dd.trace_id=XXXX dd.span_id=XXXX] Processed SNS request
2123
{
2224
"e": XXXX,
2325
"m": "aws.lambda.enhanced.invocations",
@@ -33,10 +35,10 @@ START
3335
],
3436
"v": 1
3537
}
36-
XXXX-XX-XX XX:XX:XX.XXX INFO [dd.trace_id=XXXX dd.span_id=XXXX] Processed SNS request
3738
HTTP POST https://api.datadoghq.com/api/v1/distribution_points?api_key=XXXX TraceHeaders: ["x-datadog-parent-id:XXXX","x-datadog-sampling-priority:-1","x-datadog-trace-id:XXXX"]
3839
END Duration: XXXX ms Memory Used: XXXX MB
3940
START
41+
XXXX-XX-XX XX:XX:XX.XXX INFO [dd.trace_id=XXXX dd.span_id=XXXX] Processed SQS request
4042
{
4143
"e": XXXX,
4244
"m": "aws.lambda.enhanced.invocations",
@@ -52,6 +54,5 @@ START
5254
],
5355
"v": 1
5456
}
55-
XXXX-XX-XX XX:XX:XX.XXX INFO [dd.trace_id=XXXX dd.span_id=XXXX] Processed SQS request
5657
HTTP POST https://api.datadoghq.com/api/v1/distribution_points?api_key=XXXX TraceHeaders: ["x-datadog-parent-id:XXXX","x-datadog-sampling-priority:-1","x-datadog-trace-id:XXXX"]
5758
END Duration: XXXX ms Memory Used: XXXX MB

integration_tests/snapshots/logs/sync-metrics_node16.log

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
INIT_START Runtime Version: nodejs:16.v11 Runtime Version ARN: arn:aws:lambda:eu-west-1::runtime:ee071345fbee0f4751fcbcd47a5784052d8f7d4256ca7f31e6056b294cee515c
12
START
23
{
34
"e": XXXX,

integration_tests/snapshots/logs/sync-metrics_node18.log

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
INIT_START Runtime Version: nodejs:18.v4 Runtime Version ARN: arn:aws:lambda:eu-west-1::runtime:f2af14107aa47577b6391cef2e58e6032a5520042f7d27a21ab33c9ee5a18adb
12
START
23
{
34
"e": XXXX,
@@ -37,6 +38,7 @@ XXXX-XX-XX XX:XX:XX.XXX INFO [dd.trace_id=XXXX dd.span_id=XXXX] Processed SNS re
3738
HTTP POST https://api.datadoghq.com/api/v1/distribution_points?api_key=XXXX TraceHeaders: ["x-datadog-parent-id:XXXX","x-datadog-sampling-priority:-1","x-datadog-trace-id:XXXX"]
3839
END Duration: XXXX ms Memory Used: XXXX MB
3940
START
41+
XXXX-XX-XX XX:XX:XX.XXX INFO [dd.trace_id=XXXX dd.span_id=XXXX] Processed SQS request
4042
{
4143
"e": XXXX,
4244
"m": "aws.lambda.enhanced.invocations",
@@ -52,6 +54,5 @@ START
5254
],
5355
"v": 1
5456
}
55-
XXXX-XX-XX XX:XX:XX.XXX INFO [dd.trace_id=XXXX dd.span_id=XXXX] Processed SQS request
5657
HTTP POST https://api.datadoghq.com/api/v1/distribution_points?api_key=XXXX TraceHeaders: ["x-datadog-parent-id:XXXX","x-datadog-sampling-priority:-1","x-datadog-trace-id:XXXX"]
5758
END Duration: XXXX ms Memory Used: XXXX MB

integration_tests/snapshots/logs/throw-error-traced_node12.log

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
INIT_START Runtime Version: nodejs:12.v28 Runtime Version ARN: arn:aws:lambda:eu-west-1::runtime:77abd29a376492953263fdbbd771e2b863be367d591311a62a99db79d326dc26
12
START
23
{
34
"e": XXXX,
@@ -65,7 +66,6 @@ START
6566
XXXX-XX-XX XX:XX:XX.XXX ERROR [dd.trace_id=XXXX dd.span_id=XXXX] Invoke Error {"errorType":"Error","errorMessage":"Hello","stack":["Error: Hello"," at handle (/var/task/throw-error-traced.js:XXX:XXX)"," at /opt/nodejs/node_modules/datadog-lambda-js/utils/handler.js:XXX:XXX"," at /opt/nodejs/node_modules/datadog-lambda-js/index.js:XXX:XXX"," at step (/opt/nodejs/node_modules/datadog-lambda-js/index.js:XXX:XXX)"," at Object.next (/opt/nodejs/node_modules/datadog-lambda-js/index.js:XXX:XXX)"," at /opt/nodejs/node_modules/datadog-lambda-js/index.js:XXX:XXX"," at new Promise (<anonymous>)"," at __awaiter (/opt/nodejs/node_modules/datadog-lambda-js/index.js:XXX:XXX)"," at /opt/nodejs/node_modules/datadog-lambda-js/index.js:XXX:XXX"," at /opt/nodejs/node_modules/datadog-lambda-js/index.js:XXX:XXX"]}
6667
END Duration: XXXX ms Memory Used: XXXX MB
6768
START
68-
XXXX-XX-XX XX:XX:XX.XXX ERROR [dd.trace_id=XXXX dd.span_id=XXXX] Invoke Error {"errorType":"Error","errorMessage":"Hello","stack":["Error: Hello"," at handle (/var/task/throw-error-traced.js:XXX:XXX)"," at /opt/nodejs/node_modules/datadog-lambda-js/utils/handler.js:XXX:XXX"," at /opt/nodejs/node_modules/datadog-lambda-js/index.js:XXX:XXX"," at step (/opt/nodejs/node_modules/datadog-lambda-js/index.js:XXX:XXX)"," at Object.next (/opt/nodejs/node_modules/datadog-lambda-js/index.js:XXX:XXX)"," at /opt/nodejs/node_modules/datadog-lambda-js/index.js:XXX:XXX"," at new Promise (<anonymous>)"," at __awaiter (/opt/nodejs/node_modules/datadog-lambda-js/index.js:XXX:XXX)"," at /opt/nodejs/node_modules/datadog-lambda-js/index.js:XXX:XXX"," at /opt/nodejs/node_modules/datadog-lambda-js/index.js:XXX:XXX"]}
6969
{
7070
"e": XXXX,
7171
"m": "aws.lambda.enhanced.invocations",
@@ -96,4 +96,5 @@ XXXX-XX-XX XX:XX:XX.XXX ERROR [dd.trace_id=XXXX dd.span_id=XXXX] Invoke Error {
9696
],
9797
"v": 1
9898
}
99+
XXXX-XX-XX XX:XX:XX.XXX ERROR [dd.trace_id=XXXX dd.span_id=XXXX] Invoke Error {"errorType":"Error","errorMessage":"Hello","stack":["Error: Hello"," at handle (/var/task/throw-error-traced.js:XXX:XXX)"," at /opt/nodejs/node_modules/datadog-lambda-js/utils/handler.js:XXX:XXX"," at /opt/nodejs/node_modules/datadog-lambda-js/index.js:XXX:XXX"," at step (/opt/nodejs/node_modules/datadog-lambda-js/index.js:XXX:XXX)"," at Object.next (/opt/nodejs/node_modules/datadog-lambda-js/index.js:XXX:XXX)"," at /opt/nodejs/node_modules/datadog-lambda-js/index.js:XXX:XXX"," at new Promise (<anonymous>)"," at __awaiter (/opt/nodejs/node_modules/datadog-lambda-js/index.js:XXX:XXX)"," at /opt/nodejs/node_modules/datadog-lambda-js/index.js:XXX:XXX"," at /opt/nodejs/node_modules/datadog-lambda-js/index.js:XXX:XXX"]}
99100
END Duration: XXXX ms Memory Used: XXXX MB

integration_tests/snapshots/logs/throw-error-traced_node14.log

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
INIT_START Runtime Version: nodejs:14.v28 Runtime Version ARN: arn:aws:lambda:eu-west-1::runtime:be4a32da6aeaa90583d476cb548ced79ae2c9aa7b14a45129198bbd13ea5822d
12
START
23
{
34
"e": XXXX,
@@ -65,6 +66,7 @@ START
6566
XXXX-XX-XX XX:XX:XX.XXX ERROR [dd.trace_id=XXXX dd.span_id=XXXX] Invoke Error {"errorType":"Error","errorMessage":"Hello","stack":["Error: Hello"," at handle (/var/task/throw-error-traced.js:XXX:XXX)"," at /opt/nodejs/node_modules/datadog-lambda-js/utils/handler.js:XXX:XXX"," at /opt/nodejs/node_modules/datadog-lambda-js/index.js:XXX:XXX"," at step (/opt/nodejs/node_modules/datadog-lambda-js/index.js:XXX:XXX)"," at Object.next (/opt/nodejs/node_modules/datadog-lambda-js/index.js:XXX:XXX)"," at /opt/nodejs/node_modules/datadog-lambda-js/index.js:XXX:XXX"," at new Promise (<anonymous>)"," at __awaiter (/opt/nodejs/node_modules/datadog-lambda-js/index.js:XXX:XXX)"," at /opt/nodejs/node_modules/datadog-lambda-js/index.js:XXX:XXX"," at /opt/nodejs/node_modules/datadog-lambda-js/index.js:XXX:XXX"]}
6667
END Duration: XXXX ms Memory Used: XXXX MB
6768
START
69+
XXXX-XX-XX XX:XX:XX.XXX ERROR [dd.trace_id=XXXX dd.span_id=XXXX] Invoke Error {"errorType":"Error","errorMessage":"Hello","stack":["Error: Hello"," at handle (/var/task/throw-error-traced.js:XXX:XXX)"," at /opt/nodejs/node_modules/datadog-lambda-js/utils/handler.js:XXX:XXX"," at /opt/nodejs/node_modules/datadog-lambda-js/index.js:XXX:XXX"," at step (/opt/nodejs/node_modules/datadog-lambda-js/index.js:XXX:XXX)"," at Object.next (/opt/nodejs/node_modules/datadog-lambda-js/index.js:XXX:XXX)"," at /opt/nodejs/node_modules/datadog-lambda-js/index.js:XXX:XXX"," at new Promise (<anonymous>)"," at __awaiter (/opt/nodejs/node_modules/datadog-lambda-js/index.js:XXX:XXX)"," at /opt/nodejs/node_modules/datadog-lambda-js/index.js:XXX:XXX"," at /opt/nodejs/node_modules/datadog-lambda-js/index.js:XXX:XXX"]}
6870
{
6971
"e": XXXX,
7072
"m": "aws.lambda.enhanced.invocations",
@@ -95,5 +97,4 @@ START
9597
],
9698
"v": 1
9799
}
98-
XXXX-XX-XX XX:XX:XX.XXX ERROR [dd.trace_id=XXXX dd.span_id=XXXX] Invoke Error {"errorType":"Error","errorMessage":"Hello","stack":["Error: Hello"," at handle (/var/task/throw-error-traced.js:XXX:XXX)"," at /opt/nodejs/node_modules/datadog-lambda-js/utils/handler.js:XXX:XXX"," at /opt/nodejs/node_modules/datadog-lambda-js/index.js:XXX:XXX"," at step (/opt/nodejs/node_modules/datadog-lambda-js/index.js:XXX:XXX)"," at Object.next (/opt/nodejs/node_modules/datadog-lambda-js/index.js:XXX:XXX)"," at /opt/nodejs/node_modules/datadog-lambda-js/index.js:XXX:XXX"," at new Promise (<anonymous>)"," at __awaiter (/opt/nodejs/node_modules/datadog-lambda-js/index.js:XXX:XXX)"," at /opt/nodejs/node_modules/datadog-lambda-js/index.js:XXX:XXX"," at /opt/nodejs/node_modules/datadog-lambda-js/index.js:XXX:XXX"]}
99100
END Duration: XXXX ms Memory Used: XXXX MB

integration_tests/snapshots/logs/throw-error-traced_node16.log

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
INIT_START Runtime Version: nodejs:16.v11 Runtime Version ARN: arn:aws:lambda:eu-west-1::runtime:ee071345fbee0f4751fcbcd47a5784052d8f7d4256ca7f31e6056b294cee515c
12
START
23
{
34
"e": XXXX,

integration_tests/snapshots/logs/throw-error-traced_node18.log

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
INIT_START Runtime Version: nodejs:18.v4 Runtime Version ARN: arn:aws:lambda:eu-west-1::runtime:f2af14107aa47577b6391cef2e58e6032a5520042f7d27a21ab33c9ee5a18adb
12
START
23
{
34
"e": XXXX,

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
"@types/node": "^15.6.1",
2626
"@types/promise-retry": "^1.1.3",
2727
"@types/shimmer": "^1.0.1",
28-
"dd-trace": "^2.24.0",
28+
"dd-trace": "^2.25.1",
2929
"jest": "^27.0.1",
3030
"mock-fs": "4.14.0",
3131
"nock": "13.0.11",

0 commit comments

Comments
 (0)