From 7973f5adc091507f4b01d32ed95d283bbbd0a4cc Mon Sep 17 00:00:00 2001 From: Nicolas Hinsch Date: Tue, 9 Nov 2021 09:16:50 -0500 Subject: [PATCH] Add errors test (#35) --- integration_tests/run.sh | 16 ++++++------ integration_tests/serverless.yml | 23 +++++++++++++++++ .../snapshots/enhanced-metric-node | 1 + .../snapshots/enhanced-metric-python | 1 + integration_tests/snapshots/error-node | 12 +++++++++ integration_tests/snapshots/error-python | 12 +++++++++ integration_tests/snapshots/log-go | 10 -------- integration_tests/snapshots/log-node | 4 +++ integration_tests/snapshots/log-python | 4 +++ .../snapshots/simple-trace-python | 1 + integration_tests/snapshots/timeout-go | 20 ++++++--------- integration_tests/snapshots/timeout-node | 12 ++++----- integration_tests/snapshots/with-ddlambda-go | 23 +++++++++-------- .../snapshots/without-ddlambda-go | 25 ++++++++++--------- integration_tests/src/metric.js | 7 +++++- integration_tests/src/metricPython.py | 3 +++ 16 files changed, 115 insertions(+), 59 deletions(-) create mode 100644 integration_tests/snapshots/error-node create mode 100644 integration_tests/snapshots/error-python delete mode 100644 integration_tests/snapshots/log-go diff --git a/integration_tests/run.sh b/integration_tests/run.sh index 65afce35..d29cde28 100755 --- a/integration_tests/run.sh +++ b/integration_tests/run.sh @@ -8,7 +8,7 @@ LOGS_WAIT_SECONDS=45 -DEFAULT_NODE_LAYER_VERSION=64 +DEFAULT_NODE_LAYER_VERSION=66 DEFAULT_PYTHON_LAYER_VERSION=49 set -e @@ -79,12 +79,9 @@ NODE_LAYER_VERSION=${NODE_LAYER_VERSION} \ serverless deploy --stage ${stage} # invoke functions - -python_node_function_names=("enhanced-metric-node" "enhanced-metric-python" "no-enhanced-metric-node" "no-enhanced-metric-python" "timeout-python" "timeout-node") +python_node_function_names=("enhanced-metric-node" "enhanced-metric-python" "no-enhanced-metric-node" "no-enhanced-metric-python" "timeout-python" "timeout-node" "error-node" "error-python") python_node_log_function_names=("log-node" "log-python") - go_function_names=("with-ddlambda-go" "without-ddlambda-go" "timeout-go") - trace_function_names=("simple-trace-node" "simple-trace-python" "simple-trace-go") all_functions=("${python_node_function_names[@]}" "${python_node_log_function_names[@]}" "${go_function_names[@]}" "${trace_function_names[@]}") @@ -98,7 +95,7 @@ for function_name in "${all_functions[@]}"; do # Compare new return value to snapshot diff_output=$(echo "$return_value" | diff - "./snapshots/expectedInvocationResult") - if [ $? -eq 1 ] && [ ${function_name:0:7} != timeout ]; then + if [ "$?" -eq 1 ] && [ [ "${function_name:0:7}" != timeout ] || [ "${function_name:0:5}" != error ] ]; then echo "Failed: Return value for $function_name does not match snapshot:" echo "$diff_output" mismatch_found=true @@ -224,9 +221,14 @@ for function_name in "${all_functions[@]}"; do done -if [ "$mismatch_found" = true ]; then +echo +if [ "$UPDATE_SNAPSHOTS" == "true" ]; then + echo "DONE: Snapshots were updated for all functions." + exit 0 +elif [ "$mismatch_found" == true ]; then echo "FAILURE: A mismatch between new data and a snapshot was found and printed above." exit 1 fi echo "SUCCESS: No difference found between snapshots and new return values or logs" +echo diff --git a/integration_tests/serverless.yml b/integration_tests/serverless.yml index 60967902..98f238b7 100644 --- a/integration_tests/serverless.yml +++ b/integration_tests/serverless.yml @@ -53,6 +53,17 @@ functions: DD_TAGS: tagA:valueA tagB:valueB DD_EXTRA_TAGS: tagC:valueC tagD:valueD + error-node: + runtime: nodejs14.x + handler: src/metric.errorTest + layers: + - arn:aws:lambda:${self:provider.region}:464622532012:layer:Datadog-Node14-x:${env:NODE_LAYER_VERSION} + - { Ref: RecorderExtensionLambdaLayer } + - { Ref: DatadogExtensionIntegrationTestLambdaLayer } + environment: + DD_TAGS: tagA:valueA tagB:valueB + DD_EXTRA_TAGS: tagC:valueC tagD:valueD + enhanced-metric-python: runtime: python3.8 handler: datadog_lambda.handler.handler @@ -65,6 +76,18 @@ functions: DD_EXTRA_TAGS: tagC:valueC tagD:valueD DD_LAMBDA_HANDLER: src/metricPython.metric + error-python: + runtime: python3.8 + handler: datadog_lambda.handler.handler + layers: + - arn:aws:lambda:${self:provider.region}:464622532012:layer:Datadog-Python38:${env:PYTHON_LAYER_VERSION} + - { Ref: RecorderExtensionLambdaLayer } + - { Ref: DatadogExtensionIntegrationTestLambdaLayer } + environment: + DD_TAGS: tagA:valueA tagB:valueB + DD_EXTRA_TAGS: tagC:valueC tagD:valueD + DD_LAMBDA_HANDLER: src/metricPython.error + with-ddlambda-go: runtime: provided.al2 handler: src/bin/with-ddlambda diff --git a/integration_tests/snapshots/enhanced-metric-node b/integration_tests/snapshots/enhanced-metric-node index 9adebcee..d0c1fe60 100644 --- a/integration_tests/snapshots/enhanced-metric-node +++ b/integration_tests/snapshots/enhanced-metric-node @@ -6,5 +6,6 @@ [sketch] {"metric":"aws.lambda.enhanced.invocations","distributions":null,"tags":["account_id:601427279990","architecture:x86_64","aws_account:601427279990","cold_start:true","datadog_lambda:vX.X.X","dd_extension_version:123","env:integration-tests-env","function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-XXXXXX-enhanced-metric-node","functionname:integration-tests-extension-XXXXXX-enhanced-metric-node","memorysize:1024","region:sa-east-1","resource:integration-tests-extension-XXXXXX-enhanced-metric-node","runtime:nodejs14.x","service:integration-tests-service","taga:valuea","tagb:valueb","tagc:valuec","tagd:valued","version:integration-tests-version"],"dogsketches":[{"ts":XXX,"cnt":1,"min":1,"max":1,"avg":1,"sum":1,"k":[XXX],"n":[1]}]} [sketch] {"metric":"aws.lambda.enhanced.max_memory_used","distributions":null,"tags":["account_id:601427279990","architecture:x86_64","aws_account:601427279990","cold_start:true","dd_extension_version:123","env:integration-tests-env","function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-XXXXXX-enhanced-metric-node","functionname:integration-tests-extension-XXXXXX-enhanced-metric-node","memorysize:1024","region:sa-east-1","resource:integration-tests-extension-XXXXXX-enhanced-metric-node","service:integration-tests-service","taga:valuea","tagb:valueb","tagc:valuec","tagd:valued","version:integration-tests-version"],"dogsketches":[{"ts":XXX,"cnt":1,"min":XXX,"max":XXX,"avg":XXX,"sum":XXX,"k":[XXX],"n":[1]}]} [sketch] {"metric":"aws.lambda.enhanced.memorysize","distributions":null,"tags":["account_id:601427279990","architecture:x86_64","aws_account:601427279990","cold_start:true","dd_extension_version:123","env:integration-tests-env","function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-XXXXXX-enhanced-metric-node","functionname:integration-tests-extension-XXXXXX-enhanced-metric-node","memorysize:1024","region:sa-east-1","resource:integration-tests-extension-XXXXXX-enhanced-metric-node","service:integration-tests-service","taga:valuea","tagb:valueb","tagc:valuec","tagd:valued","version:integration-tests-version"],"dogsketches":[{"ts":XXX,"cnt":1,"min":XXX,"max":XXX,"avg":XXX,"sum":XXX,"k":[XXX],"n":[1]}]} +[sketch] {"metric":"aws.lambda.enhanced.runtime_duration","distributions":null,"tags":["account_id:601427279990","architecture:x86_64","aws_account:601427279990","cold_start:false","dd_extension_version:123","env:integration-tests-env","function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-XXXXXX-enhanced-metric-node","functionname:integration-tests-extension-XXXXXX-enhanced-metric-node","memorysize:1024","region:sa-east-1","resource:integration-tests-extension-XXXXXX-enhanced-metric-node","service:integration-tests-service","taga:valuea","tagb:valueb","tagc:valuec","tagd:valued","version:integration-tests-version"],"dogsketches":[{"ts":XXX,"cnt":1,"min":XXX,"max":XXX,"avg":XXX,"sum":XXX,"k":[XXX],"n":[1]}]} [sketch] {"metric":"aws.lambda.enhanced.runtime_duration","distributions":null,"tags":["account_id:601427279990","architecture:x86_64","aws_account:601427279990","cold_start:true","dd_extension_version:123","env:integration-tests-env","function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-XXXXXX-enhanced-metric-node","functionname:integration-tests-extension-XXXXXX-enhanced-metric-node","memorysize:1024","region:sa-east-1","resource:integration-tests-extension-XXXXXX-enhanced-metric-node","service:integration-tests-service","taga:valuea","tagb:valueb","tagc:valuec","tagd:valued","version:integration-tests-version"],"dogsketches":[{"ts":XXX,"cnt":1,"min":XXX,"max":XXX,"avg":XXX,"sum":XXX,"k":[XXX],"n":[1]}]} [sketch] {"metric":"serverless.lambda-extension.integration-test.count","distributions":null,"tags":["account_id:601427279990","architecture:x86_64","aws_account:601427279990","dd_extension_version:123","dd_lambda_layer:datadog-nodevX.X.X","env:integration-tests-env","function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-XXXXXX-enhanced-metric-node","functionname:integration-tests-extension-XXXXXX-enhanced-metric-node","memorysize:1024","region:sa-east-1","resource:integration-tests-extension-XXXXXX-enhanced-metric-node","service:integration-tests-service","taga:valuea","tagb:valueb","tagc:valuec","tagd:valued","version:integration-tests-version"],"dogsketches":[{"ts":XXX,"cnt":1,"min":1,"max":1,"avg":1,"sum":1,"k":[XXX],"n":[1]}]} diff --git a/integration_tests/snapshots/enhanced-metric-python b/integration_tests/snapshots/enhanced-metric-python index 1f2c36e3..01516c4f 100644 --- a/integration_tests/snapshots/enhanced-metric-python +++ b/integration_tests/snapshots/enhanced-metric-python @@ -6,5 +6,6 @@ [sketch] {"metric":"aws.lambda.enhanced.invocations","distributions":null,"tags":["account_id:601427279990","architecture:x86_64","aws_account:601427279990","cold_start:true","datadog_lambda:vX.X.X","dd_extension_version:123","dd_lambda_layer:datadog-pythonX.X.X","env:integration-tests-env","function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-XXXXXX-enhanced-metric-python","functionname:integration-tests-extension-XXXXXX-enhanced-metric-python","memorysize:1024","region:sa-east-1","resource:integration-tests-extension-XXXXXX-enhanced-metric-python","runtime:python3.8","service:integration-tests-service","taga:valuea","tagb:valueb","tagc:valuec","tagd:valued","version:integration-tests-version"],"dogsketches":[{"ts":XXX,"cnt":1,"min":1,"max":1,"avg":1,"sum":1,"k":[XXX],"n":[1]}]} [sketch] {"metric":"aws.lambda.enhanced.max_memory_used","distributions":null,"tags":["account_id:601427279990","architecture:x86_64","aws_account:601427279990","cold_start:true","dd_extension_version:123","env:integration-tests-env","function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-XXXXXX-enhanced-metric-python","functionname:integration-tests-extension-XXXXXX-enhanced-metric-python","memorysize:1024","region:sa-east-1","resource:integration-tests-extension-XXXXXX-enhanced-metric-python","service:integration-tests-service","taga:valuea","tagb:valueb","tagc:valuec","tagd:valued","version:integration-tests-version"],"dogsketches":[{"ts":XXX,"cnt":1,"min":XXX,"max":XXX,"avg":XXX,"sum":XXX,"k":[XXX],"n":[1]}]} [sketch] {"metric":"aws.lambda.enhanced.memorysize","distributions":null,"tags":["account_id:601427279990","architecture:x86_64","aws_account:601427279990","cold_start:true","dd_extension_version:123","env:integration-tests-env","function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-XXXXXX-enhanced-metric-python","functionname:integration-tests-extension-XXXXXX-enhanced-metric-python","memorysize:1024","region:sa-east-1","resource:integration-tests-extension-XXXXXX-enhanced-metric-python","service:integration-tests-service","taga:valuea","tagb:valueb","tagc:valuec","tagd:valued","version:integration-tests-version"],"dogsketches":[{"ts":XXX,"cnt":1,"min":XXX,"max":XXX,"avg":XXX,"sum":XXX,"k":[XXX],"n":[1]}]} +[sketch] {"metric":"aws.lambda.enhanced.runtime_duration","distributions":null,"tags":["account_id:601427279990","architecture:x86_64","aws_account:601427279990","cold_start:false","dd_extension_version:123","env:integration-tests-env","function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-XXXXXX-enhanced-metric-python","functionname:integration-tests-extension-XXXXXX-enhanced-metric-python","memorysize:1024","region:sa-east-1","resource:integration-tests-extension-XXXXXX-enhanced-metric-python","service:integration-tests-service","taga:valuea","tagb:valueb","tagc:valuec","tagd:valued","version:integration-tests-version"],"dogsketches":[{"ts":XXX,"cnt":1,"min":3,"max":3,"avg":3,"sum":3,"k":[XXX],"n":[1]}]} [sketch] {"metric":"aws.lambda.enhanced.runtime_duration","distributions":null,"tags":["account_id:601427279990","architecture:x86_64","aws_account:601427279990","cold_start:true","dd_extension_version:123","env:integration-tests-env","function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-XXXXXX-enhanced-metric-python","functionname:integration-tests-extension-XXXXXX-enhanced-metric-python","memorysize:1024","region:sa-east-1","resource:integration-tests-extension-XXXXXX-enhanced-metric-python","service:integration-tests-service","taga:valuea","tagb:valueb","tagc:valuec","tagd:valued","version:integration-tests-version"],"dogsketches":[{"ts":XXX,"cnt":1,"min":XXX,"max":XXX,"avg":XXX,"sum":XXX,"k":[XXX],"n":[1]}]} [sketch] {"metric":"serverless.lambda-extension.integration-test.count","distributions":null,"tags":["account_id:601427279990","architecture:x86_64","aws_account:601427279990","dd_extension_version:123","dd_lambda_layer:datadog-pythonX.X.X","env:integration-tests-env","function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-XXXXXX-enhanced-metric-python","functionname:integration-tests-extension-XXXXXX-enhanced-metric-python","memorysize:1024","region:sa-east-1","resource:integration-tests-extension-XXXXXX-enhanced-metric-python","service:integration-tests-service","taga:valuea","tagb:valueb","tagc:valuec","tagd:valued","version:integration-tests-version"],"dogsketches":[{"ts":XXX,"cnt":1,"min":1,"max":1,"avg":1,"sum":1,"k":[XXX],"n":[1]}]} diff --git a/integration_tests/snapshots/error-node b/integration_tests/snapshots/error-node new file mode 100644 index 00000000..465780f6 --- /dev/null +++ b/integration_tests/snapshots/error-node @@ -0,0 +1,12 @@ +[sketch] {"metric":"aws.lambda.enhanced.billed_duration","distributions":null,"tags":["account_id:601427279990","architecture:x86_64","aws_account:601427279990","cold_start:true","dd_extension_version:123","env:integration-tests-env","function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-XXXXXX-error-node","functionname:integration-tests-extension-XXXXXX-error-node","memorysize:1024","region:sa-east-1","resource:integration-tests-extension-XXXXXX-error-node","service:integration-tests-service","taga:valuea","tagb:valueb","tagc:valuec","tagd:valued","version:integration-tests-version"],"dogsketches":[{"ts":XXX,"cnt":1,"min":XXX,"max":XXX,"avg":XXX,"sum":XXX,"k":[XXX],"n":[1]}]} +[sketch] {"metric":"aws.lambda.enhanced.duration","distributions":null,"tags":["account_id:601427279990","architecture:x86_64","aws_account:601427279990","cold_start:true","dd_extension_version:123","env:integration-tests-env","function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-XXXXXX-error-node","functionname:integration-tests-extension-XXXXXX-error-node","memorysize:1024","region:sa-east-1","resource:integration-tests-extension-XXXXXX-error-node","service:integration-tests-service","taga:valuea","tagb:valueb","tagc:valuec","tagd:valued","version:integration-tests-version"],"dogsketches":[{"ts":XXX,"cnt":1,"min":XXX,"max":XXX,"avg":XXX,"sum":XXX,"k":[XXX],"n":[1]}]} +[sketch] {"metric":"aws.lambda.enhanced.errors","distributions":null,"tags":["account_id:601427279990","architecture:x86_64","aws_account:601427279990","cold_start:false","datadog_lambda:vX.X.X","dd_extension_version:123","env:integration-tests-env","function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-XXXXXX-error-node","functionname:integration-tests-extension-XXXXXX-error-node","memorysize:1024","region:sa-east-1","resource:integration-tests-extension-XXXXXX-error-node","runtime:nodejs14.x","service:integration-tests-service","taga:valuea","tagb:valueb","tagc:valuec","tagd:valued","version:integration-tests-version"],"dogsketches":[{"ts":XXX,"cnt":1,"min":1,"max":1,"avg":1,"sum":1,"k":[XXX],"n":[1]}]} +[sketch] {"metric":"aws.lambda.enhanced.errors","distributions":null,"tags":["account_id:601427279990","architecture:x86_64","aws_account:601427279990","cold_start:true","datadog_lambda:vX.X.X","dd_extension_version:123","env:integration-tests-env","function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-XXXXXX-error-node","functionname:integration-tests-extension-XXXXXX-error-node","memorysize:1024","region:sa-east-1","resource:integration-tests-extension-XXXXXX-error-node","runtime:nodejs14.x","service:integration-tests-service","taga:valuea","tagb:valueb","tagc:valuec","tagd:valued","version:integration-tests-version"],"dogsketches":[{"ts":XXX,"cnt":1,"min":1,"max":1,"avg":1,"sum":1,"k":[XXX],"n":[1]}]} +[sketch] {"metric":"aws.lambda.enhanced.estimated_cost","distributions":null,"tags":["account_id:601427279990","architecture:x86_64","aws_account:601427279990","cold_start:true","dd_extension_version:123","env:integration-tests-env","function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-XXXXXX-error-node","functionname:integration-tests-extension-XXXXXX-error-node","memorysize:1024","region:sa-east-1","resource:integration-tests-extension-XXXXXX-error-node","service:integration-tests-service","taga:valuea","tagb:valueb","tagc:valuec","tagd:valued","version:integration-tests-version"],"dogsketches":[{"ts":XXX,"cnt":1,"min":XXX,"max":XXX,"avg":XXX,"sum":XXX,"k":[XXX],"n":[1]}]} +[sketch] {"metric":"aws.lambda.enhanced.init_duration","distributions":null,"tags":["account_id:601427279990","architecture:x86_64","aws_account:601427279990","cold_start:true","dd_extension_version:123","env:integration-tests-env","function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-XXXXXX-error-node","functionname:integration-tests-extension-XXXXXX-error-node","memorysize:1024","region:sa-east-1","resource:integration-tests-extension-XXXXXX-error-node","service:integration-tests-service","taga:valuea","tagb:valueb","tagc:valuec","tagd:valued","version:integration-tests-version"],"dogsketches":[{"ts":XXX,"cnt":1,"min":XXX,"max":XXX,"avg":XXX,"sum":XXX,"k":[XXX],"n":[1]}]} +[sketch] {"metric":"aws.lambda.enhanced.invocations","distributions":null,"tags":["account_id:601427279990","architecture:x86_64","aws_account:601427279990","cold_start:false","datadog_lambda:vX.X.X","dd_extension_version:123","env:integration-tests-env","function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-XXXXXX-error-node","functionname:integration-tests-extension-XXXXXX-error-node","memorysize:1024","region:sa-east-1","resource:integration-tests-extension-XXXXXX-error-node","runtime:nodejs14.x","service:integration-tests-service","taga:valuea","tagb:valueb","tagc:valuec","tagd:valued","version:integration-tests-version"],"dogsketches":[{"ts":XXX,"cnt":1,"min":1,"max":1,"avg":1,"sum":1,"k":[XXX],"n":[1]}]} +[sketch] {"metric":"aws.lambda.enhanced.invocations","distributions":null,"tags":["account_id:601427279990","architecture:x86_64","aws_account:601427279990","cold_start:true","datadog_lambda:vX.X.X","dd_extension_version:123","env:integration-tests-env","function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-XXXXXX-error-node","functionname:integration-tests-extension-XXXXXX-error-node","memorysize:1024","region:sa-east-1","resource:integration-tests-extension-XXXXXX-error-node","runtime:nodejs14.x","service:integration-tests-service","taga:valuea","tagb:valueb","tagc:valuec","tagd:valued","version:integration-tests-version"],"dogsketches":[{"ts":XXX,"cnt":1,"min":1,"max":1,"avg":1,"sum":1,"k":[XXX],"n":[1]}]} +[sketch] {"metric":"aws.lambda.enhanced.max_memory_used","distributions":null,"tags":["account_id:601427279990","architecture:x86_64","aws_account:601427279990","cold_start:true","dd_extension_version:123","env:integration-tests-env","function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-XXXXXX-error-node","functionname:integration-tests-extension-XXXXXX-error-node","memorysize:1024","region:sa-east-1","resource:integration-tests-extension-XXXXXX-error-node","service:integration-tests-service","taga:valuea","tagb:valueb","tagc:valuec","tagd:valued","version:integration-tests-version"],"dogsketches":[{"ts":XXX,"cnt":1,"min":XXX,"max":XXX,"avg":XXX,"sum":XXX,"k":[XXX],"n":[1]}]} +[sketch] {"metric":"aws.lambda.enhanced.memorysize","distributions":null,"tags":["account_id:601427279990","architecture:x86_64","aws_account:601427279990","cold_start:true","dd_extension_version:123","env:integration-tests-env","function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-XXXXXX-error-node","functionname:integration-tests-extension-XXXXXX-error-node","memorysize:1024","region:sa-east-1","resource:integration-tests-extension-XXXXXX-error-node","service:integration-tests-service","taga:valuea","tagb:valueb","tagc:valuec","tagd:valued","version:integration-tests-version"],"dogsketches":[{"ts":XXX,"cnt":1,"min":XXX,"max":XXX,"avg":XXX,"sum":XXX,"k":[XXX],"n":[1]}]} +[sketch] {"metric":"aws.lambda.enhanced.runtime_duration","distributions":null,"tags":["account_id:601427279990","architecture:x86_64","aws_account:601427279990","cold_start:false","dd_extension_version:123","env:integration-tests-env","function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-XXXXXX-error-node","functionname:integration-tests-extension-XXXXXX-error-node","memorysize:1024","region:sa-east-1","resource:integration-tests-extension-XXXXXX-error-node","service:integration-tests-service","taga:valuea","tagb:valueb","tagc:valuec","tagd:valued","version:integration-tests-version"],"dogsketches":[{"ts":XXX,"cnt":1,"min":8,"max":8,"avg":8,"sum":8,"k":[XXX],"n":[1]}]} +[sketch] {"metric":"aws.lambda.enhanced.runtime_duration","distributions":null,"tags":["account_id:601427279990","architecture:x86_64","aws_account:601427279990","cold_start:true","dd_extension_version:123","env:integration-tests-env","function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-XXXXXX-error-node","functionname:integration-tests-extension-XXXXXX-error-node","memorysize:1024","region:sa-east-1","resource:integration-tests-extension-XXXXXX-error-node","service:integration-tests-service","taga:valuea","tagb:valueb","tagc:valuec","tagd:valued","version:integration-tests-version"],"dogsketches":[{"ts":XXX,"cnt":1,"min":XXX,"max":XXX,"avg":XXX,"sum":XXX,"k":[XXX],"n":[1]}]} diff --git a/integration_tests/snapshots/error-python b/integration_tests/snapshots/error-python new file mode 100644 index 00000000..753d321c --- /dev/null +++ b/integration_tests/snapshots/error-python @@ -0,0 +1,12 @@ +[sketch] {"metric":"aws.lambda.enhanced.billed_duration","distributions":null,"tags":["account_id:601427279990","architecture:x86_64","aws_account:601427279990","cold_start:true","dd_extension_version:123","env:integration-tests-env","function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-XXXXXX-error-python","functionname:integration-tests-extension-XXXXXX-error-python","memorysize:1024","region:sa-east-1","resource:integration-tests-extension-XXXXXX-error-python","service:integration-tests-service","taga:valuea","tagb:valueb","tagc:valuec","tagd:valued","version:integration-tests-version"],"dogsketches":[{"ts":XXX,"cnt":1,"min":XXX,"max":XXX,"avg":XXX,"sum":XXX,"k":[XXX],"n":[1]}]} +[sketch] {"metric":"aws.lambda.enhanced.duration","distributions":null,"tags":["account_id:601427279990","architecture:x86_64","aws_account:601427279990","cold_start:true","dd_extension_version:123","env:integration-tests-env","function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-XXXXXX-error-python","functionname:integration-tests-extension-XXXXXX-error-python","memorysize:1024","region:sa-east-1","resource:integration-tests-extension-XXXXXX-error-python","service:integration-tests-service","taga:valuea","tagb:valueb","tagc:valuec","tagd:valued","version:integration-tests-version"],"dogsketches":[{"ts":XXX,"cnt":1,"min":XXX,"max":XXX,"avg":XXX,"sum":XXX,"k":[XXX],"n":[1]}]} +[sketch] {"metric":"aws.lambda.enhanced.errors","distributions":null,"tags":["account_id:601427279990","architecture:x86_64","aws_account:601427279990","cold_start:false","datadog_lambda:vX.X.X","dd_extension_version:123","dd_lambda_layer:datadog-pythonX.X.X","env:integration-tests-env","function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-XXXXXX-error-python","functionname:integration-tests-extension-XXXXXX-error-python","memorysize:1024","region:sa-east-1","resource:integration-tests-extension-XXXXXX-error-python","runtime:python3.8","service:integration-tests-service","taga:valuea","tagb:valueb","tagc:valuec","tagd:valued","version:integration-tests-version"],"dogsketches":[{"ts":XXX,"cnt":1,"min":1,"max":1,"avg":1,"sum":1,"k":[XXX],"n":[1]}]} +[sketch] {"metric":"aws.lambda.enhanced.errors","distributions":null,"tags":["account_id:601427279990","architecture:x86_64","aws_account:601427279990","cold_start:true","datadog_lambda:vX.X.X","dd_extension_version:123","dd_lambda_layer:datadog-pythonX.X.X","env:integration-tests-env","function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-XXXXXX-error-python","functionname:integration-tests-extension-XXXXXX-error-python","memorysize:1024","region:sa-east-1","resource:integration-tests-extension-XXXXXX-error-python","runtime:python3.8","service:integration-tests-service","taga:valuea","tagb:valueb","tagc:valuec","tagd:valued","version:integration-tests-version"],"dogsketches":[{"ts":XXX,"cnt":1,"min":1,"max":1,"avg":1,"sum":1,"k":[XXX],"n":[1]}]} +[sketch] {"metric":"aws.lambda.enhanced.estimated_cost","distributions":null,"tags":["account_id:601427279990","architecture:x86_64","aws_account:601427279990","cold_start:true","dd_extension_version:123","env:integration-tests-env","function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-XXXXXX-error-python","functionname:integration-tests-extension-XXXXXX-error-python","memorysize:1024","region:sa-east-1","resource:integration-tests-extension-XXXXXX-error-python","service:integration-tests-service","taga:valuea","tagb:valueb","tagc:valuec","tagd:valued","version:integration-tests-version"],"dogsketches":[{"ts":XXX,"cnt":1,"min":XXX,"max":XXX,"avg":XXX,"sum":XXX,"k":[XXX],"n":[1]}]} +[sketch] {"metric":"aws.lambda.enhanced.init_duration","distributions":null,"tags":["account_id:601427279990","architecture:x86_64","aws_account:601427279990","cold_start:true","dd_extension_version:123","env:integration-tests-env","function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-XXXXXX-error-python","functionname:integration-tests-extension-XXXXXX-error-python","memorysize:1024","region:sa-east-1","resource:integration-tests-extension-XXXXXX-error-python","service:integration-tests-service","taga:valuea","tagb:valueb","tagc:valuec","tagd:valued","version:integration-tests-version"],"dogsketches":[{"ts":XXX,"cnt":1,"min":XXX,"max":XXX,"avg":XXX,"sum":XXX,"k":[XXX],"n":[1]}]} +[sketch] {"metric":"aws.lambda.enhanced.invocations","distributions":null,"tags":["account_id:601427279990","architecture:x86_64","aws_account:601427279990","cold_start:false","datadog_lambda:vX.X.X","dd_extension_version:123","dd_lambda_layer:datadog-pythonX.X.X","env:integration-tests-env","function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-XXXXXX-error-python","functionname:integration-tests-extension-XXXXXX-error-python","memorysize:1024","region:sa-east-1","resource:integration-tests-extension-XXXXXX-error-python","runtime:python3.8","service:integration-tests-service","taga:valuea","tagb:valueb","tagc:valuec","tagd:valued","version:integration-tests-version"],"dogsketches":[{"ts":XXX,"cnt":1,"min":1,"max":1,"avg":1,"sum":1,"k":[XXX],"n":[1]}]} +[sketch] {"metric":"aws.lambda.enhanced.invocations","distributions":null,"tags":["account_id:601427279990","architecture:x86_64","aws_account:601427279990","cold_start:true","datadog_lambda:vX.X.X","dd_extension_version:123","dd_lambda_layer:datadog-pythonX.X.X","env:integration-tests-env","function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-XXXXXX-error-python","functionname:integration-tests-extension-XXXXXX-error-python","memorysize:1024","region:sa-east-1","resource:integration-tests-extension-XXXXXX-error-python","runtime:python3.8","service:integration-tests-service","taga:valuea","tagb:valueb","tagc:valuec","tagd:valued","version:integration-tests-version"],"dogsketches":[{"ts":XXX,"cnt":1,"min":1,"max":1,"avg":1,"sum":1,"k":[XXX],"n":[1]}]} +[sketch] {"metric":"aws.lambda.enhanced.max_memory_used","distributions":null,"tags":["account_id:601427279990","architecture:x86_64","aws_account:601427279990","cold_start:true","dd_extension_version:123","env:integration-tests-env","function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-XXXXXX-error-python","functionname:integration-tests-extension-XXXXXX-error-python","memorysize:1024","region:sa-east-1","resource:integration-tests-extension-XXXXXX-error-python","service:integration-tests-service","taga:valuea","tagb:valueb","tagc:valuec","tagd:valued","version:integration-tests-version"],"dogsketches":[{"ts":XXX,"cnt":1,"min":XXX,"max":XXX,"avg":XXX,"sum":XXX,"k":[XXX],"n":[1]}]} +[sketch] {"metric":"aws.lambda.enhanced.memorysize","distributions":null,"tags":["account_id:601427279990","architecture:x86_64","aws_account:601427279990","cold_start:true","dd_extension_version:123","env:integration-tests-env","function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-XXXXXX-error-python","functionname:integration-tests-extension-XXXXXX-error-python","memorysize:1024","region:sa-east-1","resource:integration-tests-extension-XXXXXX-error-python","service:integration-tests-service","taga:valuea","tagb:valueb","tagc:valuec","tagd:valued","version:integration-tests-version"],"dogsketches":[{"ts":XXX,"cnt":1,"min":XXX,"max":XXX,"avg":XXX,"sum":XXX,"k":[XXX],"n":[1]}]} +[sketch] {"metric":"aws.lambda.enhanced.runtime_duration","distributions":null,"tags":["account_id:601427279990","architecture:x86_64","aws_account:601427279990","cold_start:false","dd_extension_version:123","env:integration-tests-env","function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-XXXXXX-error-python","functionname:integration-tests-extension-XXXXXX-error-python","memorysize:1024","region:sa-east-1","resource:integration-tests-extension-XXXXXX-error-python","service:integration-tests-service","taga:valuea","tagb:valueb","tagc:valuec","tagd:valued","version:integration-tests-version"],"dogsketches":[{"ts":XXX,"cnt":1,"min":4,"max":4,"avg":4,"sum":4,"k":[XXX],"n":[1]}]} +[sketch] {"metric":"aws.lambda.enhanced.runtime_duration","distributions":null,"tags":["account_id:601427279990","architecture:x86_64","aws_account:601427279990","cold_start:true","dd_extension_version:123","env:integration-tests-env","function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-XXXXXX-error-python","functionname:integration-tests-extension-XXXXXX-error-python","memorysize:1024","region:sa-east-1","resource:integration-tests-extension-XXXXXX-error-python","service:integration-tests-service","taga:valuea","tagb:valueb","tagc:valuec","tagd:valued","version:integration-tests-version"],"dogsketches":[{"ts":XXX,"cnt":1,"min":XXX,"max":XXX,"avg":XXX,"sum":XXX,"k":[XXX],"n":[1]}]} diff --git a/integration_tests/snapshots/log-go b/integration_tests/snapshots/log-go deleted file mode 100644 index bf3fb6d9..00000000 --- a/integration_tests/snapshots/log-go +++ /dev/null @@ -1,10 +0,0 @@ -[log] {"message":{"message":"START XXX"}} -[log] {"message":{"message":"XXX LOG 0 XXX\n","lambda":{"arn":"arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-STAGE-log-go"}},"status":"info","timestamp":TIMESTAMP,"hostname":"arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-STAGE-log-go","service":"integration-tests-service","ddsource":"lambda","ddtags":"account_id:601427279990,account_id:601427279990,account_id:601427279990,architecture:x86_64,architecture:x86_64,architecture:x86_64,aws_account:601427279990,aws_account:601427279990,aws_account:601427279990,dd_extension_version:123,dd_extension_version:123,dd_extension_version:123,env:integration-tests-env,env:integration-tests-env,env:integration-tests-env,function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-STAGE-log-go,function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-STAGE-log-go,function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-STAGE-log-go,functionname:integration-tests-extension-STAGE-log-go,functionname:integration-tests-extension-STAGE-log-go,functionname:integration-tests-extension-STAGE-log-go,memorysize:1024,memorysize:1024,memorysize:1024,region:sa-east-1,region:sa-east-1,region:sa-east-1,resource:integration-tests-extension-STAGE-log-go,resource:integration-tests-extension-STAGE-log-go,resource:integration-tests-extension-STAGE-log-go,service:integration-tests-service,service:integration-tests-service,service:integration-tests-service,taga:valuea,taga:valuea,taga:valuea,tagb:valueb,tagb:valueb,tagb:valueb,tagc:valuec,tagc:valuec,tagc:valuec,tagd:valued,tagd:valued,tagd:valued,version:integration-tests-version,version:integration-tests-version,version:integration-tests-version"} -[log] {"message":{"message":"XXX LOG 1 XXX\n","lambda":{"arn":"arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-STAGE-log-go"}},"status":"info","timestamp":TIMESTAMP,"hostname":"arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-STAGE-log-go","service":"integration-tests-service","ddsource":"lambda","ddtags":"account_id:601427279990,account_id:601427279990,account_id:601427279990,architecture:x86_64,architecture:x86_64,architecture:x86_64,aws_account:601427279990,aws_account:601427279990,aws_account:601427279990,dd_extension_version:123,dd_extension_version:123,dd_extension_version:123,env:integration-tests-env,env:integration-tests-env,env:integration-tests-env,function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-STAGE-log-go,function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-STAGE-log-go,function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-STAGE-log-go,functionname:integration-tests-extension-STAGE-log-go,functionname:integration-tests-extension-STAGE-log-go,functionname:integration-tests-extension-STAGE-log-go,memorysize:1024,memorysize:1024,memorysize:1024,region:sa-east-1,region:sa-east-1,region:sa-east-1,resource:integration-tests-extension-STAGE-log-go,resource:integration-tests-extension-STAGE-log-go,resource:integration-tests-extension-STAGE-log-go,service:integration-tests-service,service:integration-tests-service,service:integration-tests-service,taga:valuea,taga:valuea,taga:valuea,tagb:valueb,tagb:valueb,tagb:valueb,tagc:valuec,tagc:valuec,tagc:valuec,tagd:valued,tagd:valued,tagd:valued,version:integration-tests-version,version:integration-tests-version,version:integration-tests-version"} -[log] {"message":{"message":"XXX LOG 2 XXX\n","lambda":{"arn":"arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-STAGE-log-go"}},"status":"info","timestamp":TIMESTAMP,"hostname":"arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-STAGE-log-go","service":"integration-tests-service","ddsource":"lambda","ddtags":"account_id:601427279990,account_id:601427279990,account_id:601427279990,architecture:x86_64,architecture:x86_64,architecture:x86_64,aws_account:601427279990,aws_account:601427279990,aws_account:601427279990,dd_extension_version:123,dd_extension_version:123,dd_extension_version:123,env:integration-tests-env,env:integration-tests-env,env:integration-tests-env,function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-STAGE-log-go,function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-STAGE-log-go,function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-STAGE-log-go,functionname:integration-tests-extension-STAGE-log-go,functionname:integration-tests-extension-STAGE-log-go,functionname:integration-tests-extension-STAGE-log-go,memorysize:1024,memorysize:1024,memorysize:1024,region:sa-east-1,region:sa-east-1,region:sa-east-1,resource:integration-tests-extension-STAGE-log-go,resource:integration-tests-extension-STAGE-log-go,resource:integration-tests-extension-STAGE-log-go,service:integration-tests-service,service:integration-tests-service,service:integration-tests-service,taga:valuea,taga:valuea,taga:valuea,tagb:valueb,tagb:valueb,tagb:valueb,tagc:valuec,tagc:valuec,tagc:valuec,tagd:valued,tagd:valued,tagd:valued,version:integration-tests-version,version:integration-tests-version,version:integration-tests-version"} -[log] {"message":{"message":"START XXX"}} -[log] {"message":{"message":"XXX LOG 0 XXX\n","lambda":{"arn":"arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-STAGE-log-go"}},"status":"info","timestamp":TIMESTAMP,"hostname":"arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-STAGE-log-go","service":"integration-tests-service","ddsource":"lambda","ddtags":"account_id:601427279990,account_id:601427279990,account_id:601427279990,architecture:x86_64,architecture:x86_64,architecture:x86_64,aws_account:601427279990,aws_account:601427279990,aws_account:601427279990,dd_extension_version:123,dd_extension_version:123,dd_extension_version:123,env:integration-tests-env,env:integration-tests-env,env:integration-tests-env,function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-STAGE-log-go,function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-STAGE-log-go,function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-STAGE-log-go,functionname:integration-tests-extension-STAGE-log-go,functionname:integration-tests-extension-STAGE-log-go,functionname:integration-tests-extension-STAGE-log-go,memorysize:1024,memorysize:1024,memorysize:1024,region:sa-east-1,region:sa-east-1,region:sa-east-1,resource:integration-tests-extension-STAGE-log-go,resource:integration-tests-extension-STAGE-log-go,resource:integration-tests-extension-STAGE-log-go,service:integration-tests-service,service:integration-tests-service,service:integration-tests-service,taga:valuea,taga:valuea,taga:valuea,tagb:valueb,tagb:valueb,tagb:valueb,tagc:valuec,tagc:valuec,tagc:valuec,tagd:valued,tagd:valued,tagd:valued,version:integration-tests-version,version:integration-tests-version,version:integration-tests-version"} -[log] {"message":{"message":"XXX LOG 1 XXX\n","lambda":{"arn":"arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-STAGE-log-go"}},"status":"info","timestamp":TIMESTAMP,"hostname":"arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-STAGE-log-go","service":"integration-tests-service","ddsource":"lambda","ddtags":"account_id:601427279990,account_id:601427279990,account_id:601427279990,architecture:x86_64,architecture:x86_64,architecture:x86_64,aws_account:601427279990,aws_account:601427279990,aws_account:601427279990,dd_extension_version:123,dd_extension_version:123,dd_extension_version:123,env:integration-tests-env,env:integration-tests-env,env:integration-tests-env,function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-STAGE-log-go,function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-STAGE-log-go,function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-STAGE-log-go,functionname:integration-tests-extension-STAGE-log-go,functionname:integration-tests-extension-STAGE-log-go,functionname:integration-tests-extension-STAGE-log-go,memorysize:1024,memorysize:1024,memorysize:1024,region:sa-east-1,region:sa-east-1,region:sa-east-1,resource:integration-tests-extension-STAGE-log-go,resource:integration-tests-extension-STAGE-log-go,resource:integration-tests-extension-STAGE-log-go,service:integration-tests-service,service:integration-tests-service,service:integration-tests-service,taga:valuea,taga:valuea,taga:valuea,tagb:valueb,tagb:valueb,tagb:valueb,tagc:valuec,tagc:valuec,tagc:valuec,tagd:valued,tagd:valued,tagd:valued,version:integration-tests-version,version:integration-tests-version,version:integration-tests-version"} -[log] {"message":{"message":"XXX LOG 2 XXX\n","lambda":{"arn":"arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-STAGE-log-go"}},"status":"info","timestamp":TIMESTAMP,"hostname":"arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-STAGE-log-go","service":"integration-tests-service","ddsource":"lambda","ddtags":"account_id:601427279990,account_id:601427279990,account_id:601427279990,architecture:x86_64,architecture:x86_64,architecture:x86_64,aws_account:601427279990,aws_account:601427279990,aws_account:601427279990,dd_extension_version:123,dd_extension_version:123,dd_extension_version:123,env:integration-tests-env,env:integration-tests-env,env:integration-tests-env,function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-STAGE-log-go,function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-STAGE-log-go,function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-STAGE-log-go,functionname:integration-tests-extension-STAGE-log-go,functionname:integration-tests-extension-STAGE-log-go,functionname:integration-tests-extension-STAGE-log-go,memorysize:1024,memorysize:1024,memorysize:1024,region:sa-east-1,region:sa-east-1,region:sa-east-1,resource:integration-tests-extension-STAGE-log-go,resource:integration-tests-extension-STAGE-log-go,resource:integration-tests-extension-STAGE-log-go,service:integration-tests-service,service:integration-tests-service,service:integration-tests-service,taga:valuea,taga:valuea,taga:valuea,tagb:valueb,tagb:valueb,tagb:valueb,tagc:valuec,tagc:valuec,tagc:valuec,tagd:valued,tagd:valued,tagd:valued,version:integration-tests-version,version:integration-tests-version,version:integration-tests-version"} -[log] {"message":{"message":"END XXX"}} -[log] {"message":{"message":"REPORT XXX"}} diff --git a/integration_tests/snapshots/log-node b/integration_tests/snapshots/log-node index 704907de..aa91ac54 100644 --- a/integration_tests/snapshots/log-node +++ b/integration_tests/snapshots/log-node @@ -4,3 +4,7 @@ [log] {"message":{"message":"XXX LOG 2 XXX\n","lambda":{"arn":"arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-STAGE-log-node"}},"status":"info","timestamp":TIMESTAMP,"hostname":"arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-STAGE-log-node","service":"integration-tests-service","ddsource":"lambda","ddtags":"account_id:601427279990,account_id:601427279990,account_id:601427279990,architecture:x86_64,architecture:x86_64,architecture:x86_64,aws_account:601427279990,aws_account:601427279990,aws_account:601427279990,dd_extension_version:123,dd_extension_version:123,dd_extension_version:123,env:integration-tests-env,env:integration-tests-env,env:integration-tests-env,function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-STAGE-log-node,function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-STAGE-log-node,function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-STAGE-log-node,functionname:integration-tests-extension-STAGE-log-node,functionname:integration-tests-extension-STAGE-log-node,functionname:integration-tests-extension-STAGE-log-node,memorysize:1024,memorysize:1024,memorysize:1024,region:sa-east-1,region:sa-east-1,region:sa-east-1,resource:integration-tests-extension-STAGE-log-node,resource:integration-tests-extension-STAGE-log-node,resource:integration-tests-extension-STAGE-log-node,service:integration-tests-service,service:integration-tests-service,service:integration-tests-service,taga:valuea,taga:valuea,taga:valuea,tagb:valueb,tagb:valueb,tagb:valueb,tagc:valuec,tagc:valuec,tagc:valuec,tagd:valued,tagd:valued,tagd:valued,version:integration-tests-version,version:integration-tests-version,version:integration-tests-version"} [log] {"message":{"message":"END XXX"}} [log] {"message":{"message":"REPORT XXX"}} +[log] {"message":{"message":"START XXX"}} +[log] {"message":{"message":"XXX LOG 0 XXX\n","lambda":{"arn":"arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-STAGE-log-node"}},"status":"info","timestamp":TIMESTAMP,"hostname":"arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-STAGE-log-node","service":"integration-tests-service","ddsource":"lambda","ddtags":"account_id:601427279990,account_id:601427279990,account_id:601427279990,architecture:x86_64,architecture:x86_64,architecture:x86_64,aws_account:601427279990,aws_account:601427279990,aws_account:601427279990,dd_extension_version:123,dd_extension_version:123,dd_extension_version:123,env:integration-tests-env,env:integration-tests-env,env:integration-tests-env,function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-STAGE-log-node,function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-STAGE-log-node,function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-STAGE-log-node,functionname:integration-tests-extension-STAGE-log-node,functionname:integration-tests-extension-STAGE-log-node,functionname:integration-tests-extension-STAGE-log-node,memorysize:1024,memorysize:1024,memorysize:1024,region:sa-east-1,region:sa-east-1,region:sa-east-1,resource:integration-tests-extension-STAGE-log-node,resource:integration-tests-extension-STAGE-log-node,resource:integration-tests-extension-STAGE-log-node,service:integration-tests-service,service:integration-tests-service,service:integration-tests-service,taga:valuea,taga:valuea,taga:valuea,tagb:valueb,tagb:valueb,tagb:valueb,tagc:valuec,tagc:valuec,tagc:valuec,tagd:valued,tagd:valued,tagd:valued,version:integration-tests-version,version:integration-tests-version,version:integration-tests-version"} +[log] {"message":{"message":"XXX LOG 1 XXX\n","lambda":{"arn":"arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-STAGE-log-node"}},"status":"info","timestamp":TIMESTAMP,"hostname":"arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-STAGE-log-node","service":"integration-tests-service","ddsource":"lambda","ddtags":"account_id:601427279990,account_id:601427279990,account_id:601427279990,architecture:x86_64,architecture:x86_64,architecture:x86_64,aws_account:601427279990,aws_account:601427279990,aws_account:601427279990,dd_extension_version:123,dd_extension_version:123,dd_extension_version:123,env:integration-tests-env,env:integration-tests-env,env:integration-tests-env,function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-STAGE-log-node,function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-STAGE-log-node,function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-STAGE-log-node,functionname:integration-tests-extension-STAGE-log-node,functionname:integration-tests-extension-STAGE-log-node,functionname:integration-tests-extension-STAGE-log-node,memorysize:1024,memorysize:1024,memorysize:1024,region:sa-east-1,region:sa-east-1,region:sa-east-1,resource:integration-tests-extension-STAGE-log-node,resource:integration-tests-extension-STAGE-log-node,resource:integration-tests-extension-STAGE-log-node,service:integration-tests-service,service:integration-tests-service,service:integration-tests-service,taga:valuea,taga:valuea,taga:valuea,tagb:valueb,tagb:valueb,tagb:valueb,tagc:valuec,tagc:valuec,tagc:valuec,tagd:valued,tagd:valued,tagd:valued,version:integration-tests-version,version:integration-tests-version,version:integration-tests-version"} +[log] {"message":{"message":"XXX LOG 2 XXX\n","lambda":{"arn":"arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-STAGE-log-node"}},"status":"info","timestamp":TIMESTAMP,"hostname":"arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-STAGE-log-node","service":"integration-tests-service","ddsource":"lambda","ddtags":"account_id:601427279990,account_id:601427279990,account_id:601427279990,architecture:x86_64,architecture:x86_64,architecture:x86_64,aws_account:601427279990,aws_account:601427279990,aws_account:601427279990,dd_extension_version:123,dd_extension_version:123,dd_extension_version:123,env:integration-tests-env,env:integration-tests-env,env:integration-tests-env,function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-STAGE-log-node,function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-STAGE-log-node,function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-STAGE-log-node,functionname:integration-tests-extension-STAGE-log-node,functionname:integration-tests-extension-STAGE-log-node,functionname:integration-tests-extension-STAGE-log-node,memorysize:1024,memorysize:1024,memorysize:1024,region:sa-east-1,region:sa-east-1,region:sa-east-1,resource:integration-tests-extension-STAGE-log-node,resource:integration-tests-extension-STAGE-log-node,resource:integration-tests-extension-STAGE-log-node,service:integration-tests-service,service:integration-tests-service,service:integration-tests-service,taga:valuea,taga:valuea,taga:valuea,tagb:valueb,tagb:valueb,tagb:valueb,tagc:valuec,tagc:valuec,tagc:valuec,tagd:valued,tagd:valued,tagd:valued,version:integration-tests-version,version:integration-tests-version,version:integration-tests-version"} diff --git a/integration_tests/snapshots/log-python b/integration_tests/snapshots/log-python index ddb942cf..e0d2ed6e 100644 --- a/integration_tests/snapshots/log-python +++ b/integration_tests/snapshots/log-python @@ -4,3 +4,7 @@ [log] {"message":{"message":"XXX LOG 2 XXX\n","lambda":{"arn":"arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-STAGE-log-python"}},"status":"info","timestamp":TIMESTAMP,"hostname":"arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-STAGE-log-python","service":"integration-tests-service","ddsource":"lambda","ddtags":"account_id:601427279990,account_id:601427279990,account_id:601427279990,architecture:x86_64,architecture:x86_64,architecture:x86_64,aws_account:601427279990,aws_account:601427279990,aws_account:601427279990,dd_extension_version:123,dd_extension_version:123,dd_extension_version:123,env:integration-tests-env,env:integration-tests-env,env:integration-tests-env,function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-STAGE-log-python,function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-STAGE-log-python,function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-STAGE-log-python,functionname:integration-tests-extension-STAGE-log-python,functionname:integration-tests-extension-STAGE-log-python,functionname:integration-tests-extension-STAGE-log-python,memorysize:1024,memorysize:1024,memorysize:1024,region:sa-east-1,region:sa-east-1,region:sa-east-1,resource:integration-tests-extension-STAGE-log-python,resource:integration-tests-extension-STAGE-log-python,resource:integration-tests-extension-STAGE-log-python,service:integration-tests-service,service:integration-tests-service,service:integration-tests-service,taga:valuea,taga:valuea,taga:valuea,tagb:valueb,tagb:valueb,tagb:valueb,tagc:valuec,tagc:valuec,tagc:valuec,tagd:valued,tagd:valued,tagd:valued,version:integration-tests-version,version:integration-tests-version,version:integration-tests-version"} [log] {"message":{"message":"END XXX"}} [log] {"message":{"message":"REPORT XXX"}} +[log] {"message":{"message":"START XXX"}} +[log] {"message":{"message":"XXX LOG 0 XXX\n","lambda":{"arn":"arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-STAGE-log-python"}},"status":"info","timestamp":TIMESTAMP,"hostname":"arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-STAGE-log-python","service":"integration-tests-service","ddsource":"lambda","ddtags":"account_id:601427279990,account_id:601427279990,account_id:601427279990,architecture:x86_64,architecture:x86_64,architecture:x86_64,aws_account:601427279990,aws_account:601427279990,aws_account:601427279990,dd_extension_version:123,dd_extension_version:123,dd_extension_version:123,env:integration-tests-env,env:integration-tests-env,env:integration-tests-env,function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-STAGE-log-python,function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-STAGE-log-python,function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-STAGE-log-python,functionname:integration-tests-extension-STAGE-log-python,functionname:integration-tests-extension-STAGE-log-python,functionname:integration-tests-extension-STAGE-log-python,memorysize:1024,memorysize:1024,memorysize:1024,region:sa-east-1,region:sa-east-1,region:sa-east-1,resource:integration-tests-extension-STAGE-log-python,resource:integration-tests-extension-STAGE-log-python,resource:integration-tests-extension-STAGE-log-python,service:integration-tests-service,service:integration-tests-service,service:integration-tests-service,taga:valuea,taga:valuea,taga:valuea,tagb:valueb,tagb:valueb,tagb:valueb,tagc:valuec,tagc:valuec,tagc:valuec,tagd:valued,tagd:valued,tagd:valued,version:integration-tests-version,version:integration-tests-version,version:integration-tests-version"} +[log] {"message":{"message":"XXX LOG 1 XXX\n","lambda":{"arn":"arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-STAGE-log-python"}},"status":"info","timestamp":TIMESTAMP,"hostname":"arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-STAGE-log-python","service":"integration-tests-service","ddsource":"lambda","ddtags":"account_id:601427279990,account_id:601427279990,account_id:601427279990,architecture:x86_64,architecture:x86_64,architecture:x86_64,aws_account:601427279990,aws_account:601427279990,aws_account:601427279990,dd_extension_version:123,dd_extension_version:123,dd_extension_version:123,env:integration-tests-env,env:integration-tests-env,env:integration-tests-env,function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-STAGE-log-python,function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-STAGE-log-python,function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-STAGE-log-python,functionname:integration-tests-extension-STAGE-log-python,functionname:integration-tests-extension-STAGE-log-python,functionname:integration-tests-extension-STAGE-log-python,memorysize:1024,memorysize:1024,memorysize:1024,region:sa-east-1,region:sa-east-1,region:sa-east-1,resource:integration-tests-extension-STAGE-log-python,resource:integration-tests-extension-STAGE-log-python,resource:integration-tests-extension-STAGE-log-python,service:integration-tests-service,service:integration-tests-service,service:integration-tests-service,taga:valuea,taga:valuea,taga:valuea,tagb:valueb,tagb:valueb,tagb:valueb,tagc:valuec,tagc:valuec,tagc:valuec,tagd:valued,tagd:valued,tagd:valued,version:integration-tests-version,version:integration-tests-version,version:integration-tests-version"} +[log] {"message":{"message":"XXX LOG 2 XXX\n","lambda":{"arn":"arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-STAGE-log-python"}},"status":"info","timestamp":TIMESTAMP,"hostname":"arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-STAGE-log-python","service":"integration-tests-service","ddsource":"lambda","ddtags":"account_id:601427279990,account_id:601427279990,account_id:601427279990,architecture:x86_64,architecture:x86_64,architecture:x86_64,aws_account:601427279990,aws_account:601427279990,aws_account:601427279990,dd_extension_version:123,dd_extension_version:123,dd_extension_version:123,env:integration-tests-env,env:integration-tests-env,env:integration-tests-env,function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-STAGE-log-python,function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-STAGE-log-python,function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-STAGE-log-python,functionname:integration-tests-extension-STAGE-log-python,functionname:integration-tests-extension-STAGE-log-python,functionname:integration-tests-extension-STAGE-log-python,memorysize:1024,memorysize:1024,memorysize:1024,region:sa-east-1,region:sa-east-1,region:sa-east-1,resource:integration-tests-extension-STAGE-log-python,resource:integration-tests-extension-STAGE-log-python,resource:integration-tests-extension-STAGE-log-python,service:integration-tests-service,service:integration-tests-service,service:integration-tests-service,taga:valuea,taga:valuea,taga:valuea,tagb:valueb,tagb:valueb,tagb:valueb,tagc:valuec,tagc:valuec,tagc:valuec,tagd:valued,tagd:valued,tagd:valued,version:integration-tests-version,version:integration-tests-version,version:integration-tests-version"} diff --git a/integration_tests/snapshots/simple-trace-python b/integration_tests/snapshots/simple-trace-python index f2a7f4d4..01abe142 100644 --- a/integration_tests/snapshots/simple-trace-python +++ b/integration_tests/snapshots/simple-trace-python @@ -1 +1,2 @@ +[trace] {"traceID":XXX,"spans":[{"service":"aws.lambda","name":"aws.lambda","resource":"integration-tests-extension-XXXXXX-simple-trace-python","trace_id":XXX,"span_id":XXX,"parent_id":XXX,"start":XXX,"duration":XXX,"error":0,"meta":{"_dd.compute_stats":"1","_dd.origin":"lambda","account_id":"601427279990","architecture":"x86_64","aws_account":"601427279990","cold_start":"false","datadog_lambda":"X.X.X","dd_extension_version":"123","dd_trace":"X.X.X","env":"integration-tests-env","function_arn":"arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-XXXXXX-simple-trace-python","function_version":"$LATEST","functionname":"integration-tests-extension-XXXXXX-simple-trace-python","memorysize":"1024","region":"sa-east-1","request_id":"XXX","resource_names":"integration-tests-extension-XXXXXX-simple-trace-python","runtime-id":"XXX","service":"integration-tests-service","tagA":"valueA","tagB":"valueB","taga":"valuea","tagb":"valueb","tagc":"valuec","tagd":"valued","version":"integration-tests-version"},"metrics":{"_dd.agent_psr":1,"_dd.tracer_kr":1,"_sampling_priority_v1":1,"_top_level":1,"system.pid":XXX},"type":"serverless"},{"service":"aws.lambda","name":"integration_test","resource":"integration-test","trace_id":XXX,"span_id":XXX,"parent_id":XXX,"start":XXX,"duration":XXX,"error":0,"meta":{"_dd.compute_stats":"1","_dd.origin":"lambda","account_id":"601427279990","architecture":"x86_64","aws_account":"601427279990","dd_extension_version":"123","env":"integration-tests-env","function_arn":"arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-XXXXXX-simple-trace-python","functionname":"integration-tests-extension-XXXXXX-simple-trace-python","memorysize":"1024","region":"sa-east-1","service":"integration-tests-service","tagA":"valueA","tagB":"valueB","taga":"valuea","tagb":"valueb","tagc":"valuec","tagd":"valued","version":"integration-tests-version"},"metrics":null,"type":""}],"startTime":XXX,"endTime":XXX} [trace] {"traceID":XXX,"spans":[{"service":"aws.lambda","name":"aws.lambda","resource":"integration-tests-extension-XXXXXX-simple-trace-python","trace_id":XXX,"span_id":XXX,"parent_id":XXX,"start":XXX,"duration":XXX,"error":0,"meta":{"_dd.compute_stats":"1","_dd.origin":"lambda","account_id":"601427279990","architecture":"x86_64","aws_account":"601427279990","cold_start":"true","datadog_lambda":"X.X.X","dd_extension_version":"123","dd_trace":"X.X.X","env":"integration-tests-env","function_arn":"arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-XXXXXX-simple-trace-python","function_version":"$LATEST","functionname":"integration-tests-extension-XXXXXX-simple-trace-python","memorysize":"1024","region":"sa-east-1","request_id":"XXX","resource_names":"integration-tests-extension-XXXXXX-simple-trace-python","runtime-id":"XXX","service":"integration-tests-service","tagA":"valueA","tagB":"valueB","taga":"valuea","tagb":"valueb","tagc":"valuec","tagd":"valued","version":"integration-tests-version"},"metrics":{"_dd.agent_psr":1,"_dd.tracer_kr":1,"_sampling_priority_v1":1,"_top_level":1,"system.pid":XXX},"type":"serverless"},{"service":"aws.lambda","name":"integration_test","resource":"integration-test","trace_id":XXX,"span_id":XXX,"parent_id":XXX,"start":XXX,"duration":XXX,"error":0,"meta":{"_dd.compute_stats":"1","_dd.origin":"lambda","account_id":"601427279990","architecture":"x86_64","aws_account":"601427279990","dd_extension_version":"123","env":"integration-tests-env","function_arn":"arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-XXXXXX-simple-trace-python","functionname":"integration-tests-extension-XXXXXX-simple-trace-python","memorysize":"1024","region":"sa-east-1","service":"integration-tests-service","tagA":"valueA","tagB":"valueB","taga":"valuea","tagb":"valueb","tagc":"valuec","tagd":"valued","version":"integration-tests-version"},"metrics":null,"type":""}],"startTime":XXX,"endTime":XXX} diff --git a/integration_tests/snapshots/timeout-go b/integration_tests/snapshots/timeout-go index c491aaaf..6e044efa 100644 --- a/integration_tests/snapshots/timeout-go +++ b/integration_tests/snapshots/timeout-go @@ -1,14 +1,10 @@ -[sketch] {"metric":"serverless.lambda-extension.integration-test.count","distributions":null,"tags":["account_id:601427279990","architecture:x86_64","aws_account:601427279990","dd_extension_version:123","dd_lambda_layer:datadog-go1.17","env:integration-tests-env","function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-XXXXXX-timeout-go","functionname:integration-tests-extension-XXXXXX-timeout-go","memorysize:1024","region:sa-east-1","resource:integration-tests-extension-XXXXXX-timeout-go","service:integration-tests-service","version:integration-tests-version"],"dogsketches":[{"ts":XXX,"cnt":1,"min":1,"max":1,"avg":1,"sum":1,"k":[XXX],"n":[1]}]} -[sketch] {"metric":"aws.lambda.enhanced.invocations","distributions":null,"tags":["account_id:601427279990","architecture:x86_64","aws_account:601427279990","cold_start:true","datadog_lambda:vX.X.X","dd_extension_version:123","dd_lambda_layer:datadog-go1.17","env:integration-tests-env","function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-XXXXXX-timeout-go","functionname:integration-tests-extension-XXXXXX-timeout-go","memorysize:1024","region:sa-east-1","resource:integration-tests-extension-XXXXXX-timeout-go","service:integration-tests-service","version:integration-tests-version"],"dogsketches":[{"ts":XXX,"cnt":1,"min":1,"max":1,"avg":1,"sum":1,"k":[XXX],"n":[1]}]} -[sketch] {"metric":"aws.lambda.enhanced.timeouts","distributions":null,"tags":["account_id:601427279990","architecture:x86_64","aws_account:601427279990","cold_start:true","dd_extension_version:123","env:integration-tests-env","function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-XXXXXX-timeout-go","functionname:integration-tests-extension-XXXXXX-timeout-go","memorysize:1024","region:sa-east-1","resource:integration-tests-extension-XXXXXX-timeout-go","service:integration-tests-service","version:integration-tests-version"],"dogsketches":[{"ts":XXX,"cnt":1,"min":1,"max":1,"avg":1,"sum":1,"k":[XXX],"n":[1]}]} +[sketch] {"metric":"aws.lambda.enhanced.invocations","distributions":null,"tags":["account_id:601427279990","architecture:x86_64","aws_account:601427279990","cold_start:true","datadog_lambda:vX.X.X","dd_extension_version:123","dd_lambda_layer:datadog-go1.16.4","env:integration-tests-env","function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-XXXXXX-timeout-go","functionname:integration-tests-extension-XXXXXX-timeout-go","memorysize:1024","region:sa-east-1","resource:integration-tests-extension-XXXXXX-timeout-go","service:integration-tests-service","version:integration-tests-version"],"dogsketches":[{"ts":XXX,"cnt":1,"min":1,"max":1,"avg":1,"sum":1,"k":[XXX],"n":[1]}]} [sketch] {"metric":"aws.lambda.enhanced.runtime_duration","distributions":null,"tags":["account_id:601427279990","architecture:x86_64","aws_account:601427279990","cold_start:true","dd_extension_version:123","env:integration-tests-env","function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-XXXXXX-timeout-go","functionname:integration-tests-extension-XXXXXX-timeout-go","memorysize:1024","region:sa-east-1","resource:integration-tests-extension-XXXXXX-timeout-go","service:integration-tests-service","version:integration-tests-version"],"dogsketches":[{"ts":XXX,"cnt":1,"min":XXX,"max":XXX,"avg":XXX,"sum":XXX,"k":[XXX],"n":[1]}]} -[sketch] {"metric":"serverless.lambda-extension.integration-test.count","distributions":null,"tags":["account_id:601427279990","architecture:x86_64","aws_account:601427279990","dd_extension_version:123","dd_lambda_layer:datadog-go1.17","env:integration-tests-env","function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-XXXXXX-timeout-go","functionname:integration-tests-extension-XXXXXX-timeout-go","memorysize:1024","region:sa-east-1","resource:integration-tests-extension-XXXXXX-timeout-go","service:integration-tests-service","version:integration-tests-version"],"dogsketches":[{"ts":XXX,"cnt":1,"min":1,"max":1,"avg":1,"sum":1,"k":[XXX],"n":[1]}]} -[sketch] {"metric":"aws.lambda.enhanced.memorysize","distributions":null,"tags":["account_id:601427279990","architecture:x86_64","aws_account:601427279990","cold_start:true","dd_extension_version:123","env:integration-tests-env","function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-XXXXXX-timeout-go","functionname:integration-tests-extension-XXXXXX-timeout-go","memorysize:1024","region:sa-east-1","resource:integration-tests-extension-XXXXXX-timeout-go","service:integration-tests-service","version:integration-tests-version"],"dogsketches":[{"ts":XXX,"cnt":2,"min":XXX,"max":XXX,"avg":XXX,"sum":XXX,"k":[XXX],"n":[2]}]} -[sketch] {"metric":"aws.lambda.enhanced.timeouts","distributions":null,"tags":["account_id:601427279990","architecture:x86_64","aws_account:601427279990","cold_start:false","dd_extension_version:123","env:integration-tests-env","function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-XXXXXX-timeout-go","functionname:integration-tests-extension-XXXXXX-timeout-go","memorysize:1024","region:sa-east-1","resource:integration-tests-extension-XXXXXX-timeout-go","service:integration-tests-service","version:integration-tests-version"],"dogsketches":[{"ts":XXX,"cnt":1,"min":1,"max":1,"avg":1,"sum":1,"k":[XXX],"n":[1]}]} -[sketch] {"metric":"aws.lambda.enhanced.estimated_cost","distributions":null,"tags":["account_id:601427279990","architecture:x86_64","aws_account:601427279990","cold_start:true","dd_extension_version:123","env:integration-tests-env","function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-XXXXXX-timeout-go","functionname:integration-tests-extension-XXXXXX-timeout-go","memorysize:1024","region:sa-east-1","resource:integration-tests-extension-XXXXXX-timeout-go","service:integration-tests-service","version:integration-tests-version"],"dogsketches":[{"ts":XXX,"cnt":2,"min":XXX,"max":XXX,"avg":XXX,"sum":XXX,"k":[XXX],"n":[2]}]} -[sketch] {"metric":"aws.lambda.enhanced.init_duration","distributions":null,"tags":["account_id:601427279990","architecture:x86_64","aws_account:601427279990","cold_start:true","dd_extension_version:123","env:integration-tests-env","function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-XXXXXX-timeout-go","functionname:integration-tests-extension-XXXXXX-timeout-go","memorysize:1024","region:sa-east-1","resource:integration-tests-extension-XXXXXX-timeout-go","service:integration-tests-service","version:integration-tests-version"],"dogsketches":[{"ts":XXX,"cnt":2,"min":XXX,"max":XXX,"avg":XXX,"sum":XXX,"k":[XXX],"n":[2]}]} -[sketch] {"metric":"aws.lambda.enhanced.invocations","distributions":null,"tags":["account_id:601427279990","architecture:x86_64","aws_account:601427279990","cold_start:true","datadog_lambda:vX.X.X","dd_extension_version:123","dd_lambda_layer:datadog-go1.17","env:integration-tests-env","function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-XXXXXX-timeout-go","functionname:integration-tests-extension-XXXXXX-timeout-go","memorysize:1024","region:sa-east-1","resource:integration-tests-extension-XXXXXX-timeout-go","service:integration-tests-service","version:integration-tests-version"],"dogsketches":[{"ts":XXX,"cnt":1,"min":1,"max":1,"avg":1,"sum":1,"k":[XXX],"n":[1]}]} -[sketch] {"metric":"aws.lambda.enhanced.max_memory_used","distributions":null,"tags":["account_id:601427279990","architecture:x86_64","aws_account:601427279990","cold_start:true","dd_extension_version:123","env:integration-tests-env","function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-XXXXXX-timeout-go","functionname:integration-tests-extension-XXXXXX-timeout-go","memorysize:1024","region:sa-east-1","resource:integration-tests-extension-XXXXXX-timeout-go","service:integration-tests-service","version:integration-tests-version"],"dogsketches":[{"ts":XXX,"cnt":2,"min":XXX,"max":XXX,"avg":XXX,"sum":XXX,"k":[XXX],"n":[2]}]} +[sketch] {"metric":"aws.lambda.enhanced.invocations","distributions":null,"tags":["account_id:601427279990","architecture:x86_64","aws_account:601427279990","cold_start:false","datadog_lambda:vX.X.X","dd_extension_version:123","dd_lambda_layer:datadog-go1.16.4","env:integration-tests-env","function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-XXXXXX-timeout-go","functionname:integration-tests-extension-XXXXXX-timeout-go","memorysize:1024","region:sa-east-1","resource:integration-tests-extension-XXXXXX-timeout-go","service:integration-tests-service","version:integration-tests-version"],"dogsketches":[{"ts":XXX,"cnt":1,"min":1,"max":1,"avg":1,"sum":1,"k":[XXX],"n":[1]}]} [sketch] {"metric":"aws.lambda.enhanced.runtime_duration","distributions":null,"tags":["account_id:601427279990","architecture:x86_64","aws_account:601427279990","cold_start:false","dd_extension_version:123","env:integration-tests-env","function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-XXXXXX-timeout-go","functionname:integration-tests-extension-XXXXXX-timeout-go","memorysize:1024","region:sa-east-1","resource:integration-tests-extension-XXXXXX-timeout-go","service:integration-tests-service","version:integration-tests-version"],"dogsketches":[{"ts":XXX,"cnt":1,"min":XXX,"max":XXX,"avg":XXX,"sum":XXX,"k":[XXX],"n":[1]}]} -[sketch] {"metric":"aws.lambda.enhanced.billed_duration","distributions":null,"tags":["account_id:601427279990","architecture:x86_64","aws_account:601427279990","cold_start:true","dd_extension_version:123","env:integration-tests-env","function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-XXXXXX-timeout-go","functionname:integration-tests-extension-XXXXXX-timeout-go","memorysize:1024","region:sa-east-1","resource:integration-tests-extension-XXXXXX-timeout-go","service:integration-tests-service","version:integration-tests-version"],"dogsketches":[{"ts":XXX,"cnt":2,"min":XXX,"max":XXX,"avg":XXX,"sum":XXX,"k":[XXX],"n":[2]}]} -[sketch] {"metric":"aws.lambda.enhanced.duration","distributions":null,"tags":["account_id:601427279990","architecture:x86_64","aws_account:601427279990","cold_start:true","dd_extension_version:123","env:integration-tests-env","function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-XXXXXX-timeout-go","functionname:integration-tests-extension-XXXXXX-timeout-go","memorysize:1024","region:sa-east-1","resource:integration-tests-extension-XXXXXX-timeout-go","service:integration-tests-service","version:integration-tests-version"],"dogsketches":[{"ts":XXX,"cnt":2,"min":XXX,"max":XXX,"avg":XXX,"sum":XXX,"k":[XXX],"n":[2]}]} +[sketch] {"metric":"aws.lambda.enhanced.max_memory_used","distributions":null,"tags":["account_id:601427279990","architecture:x86_64","aws_account:601427279990","cold_start:true","dd_extension_version:123","env:integration-tests-env","function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-XXXXXX-timeout-go","functionname:integration-tests-extension-XXXXXX-timeout-go","memorysize:1024","region:sa-east-1","resource:integration-tests-extension-XXXXXX-timeout-go","service:integration-tests-service","version:integration-tests-version"],"dogsketches":[{"ts":XXX,"cnt":1,"min":XXX,"max":XXX,"avg":XXX,"sum":XXX,"k":[XXX],"n":[1]}]} +[sketch] {"metric":"aws.lambda.enhanced.memorysize","distributions":null,"tags":["account_id:601427279990","architecture:x86_64","aws_account:601427279990","cold_start:true","dd_extension_version:123","env:integration-tests-env","function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-XXXXXX-timeout-go","functionname:integration-tests-extension-XXXXXX-timeout-go","memorysize:1024","region:sa-east-1","resource:integration-tests-extension-XXXXXX-timeout-go","service:integration-tests-service","version:integration-tests-version"],"dogsketches":[{"ts":XXX,"cnt":1,"min":XXX,"max":XXX,"avg":XXX,"sum":XXX,"k":[XXX],"n":[1]}]} +[sketch] {"metric":"aws.lambda.enhanced.billed_duration","distributions":null,"tags":["account_id:601427279990","architecture:x86_64","aws_account:601427279990","cold_start:true","dd_extension_version:123","env:integration-tests-env","function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-XXXXXX-timeout-go","functionname:integration-tests-extension-XXXXXX-timeout-go","memorysize:1024","region:sa-east-1","resource:integration-tests-extension-XXXXXX-timeout-go","service:integration-tests-service","version:integration-tests-version"],"dogsketches":[{"ts":XXX,"cnt":1,"min":XXX,"max":XXX,"avg":XXX,"sum":XXX,"k":[XXX],"n":[1]}]} +[sketch] {"metric":"aws.lambda.enhanced.duration","distributions":null,"tags":["account_id:601427279990","architecture:x86_64","aws_account:601427279990","cold_start:true","dd_extension_version:123","env:integration-tests-env","function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-XXXXXX-timeout-go","functionname:integration-tests-extension-XXXXXX-timeout-go","memorysize:1024","region:sa-east-1","resource:integration-tests-extension-XXXXXX-timeout-go","service:integration-tests-service","version:integration-tests-version"],"dogsketches":[{"ts":XXX,"cnt":1,"min":XXX,"max":XXX,"avg":XXX,"sum":XXX,"k":[XXX],"n":[1]}]} +[sketch] {"metric":"aws.lambda.enhanced.estimated_cost","distributions":null,"tags":["account_id:601427279990","architecture:x86_64","aws_account:601427279990","cold_start:true","dd_extension_version:123","env:integration-tests-env","function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-XXXXXX-timeout-go","functionname:integration-tests-extension-XXXXXX-timeout-go","memorysize:1024","region:sa-east-1","resource:integration-tests-extension-XXXXXX-timeout-go","service:integration-tests-service","version:integration-tests-version"],"dogsketches":[{"ts":XXX,"cnt":1,"min":XXX,"max":XXX,"avg":XXX,"sum":XXX,"k":[XXX],"n":[1]}]} +[sketch] {"metric":"aws.lambda.enhanced.init_duration","distributions":null,"tags":["account_id:601427279990","architecture:x86_64","aws_account:601427279990","cold_start:true","dd_extension_version:123","env:integration-tests-env","function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-XXXXXX-timeout-go","functionname:integration-tests-extension-XXXXXX-timeout-go","memorysize:1024","region:sa-east-1","resource:integration-tests-extension-XXXXXX-timeout-go","service:integration-tests-service","version:integration-tests-version"],"dogsketches":[{"ts":XXX,"cnt":1,"min":XXX,"max":XXX,"avg":XXX,"sum":XXX,"k":[XXX],"n":[1]}]} diff --git a/integration_tests/snapshots/timeout-node b/integration_tests/snapshots/timeout-node index 3b785df0..0e9f5a6e 100644 --- a/integration_tests/snapshots/timeout-node +++ b/integration_tests/snapshots/timeout-node @@ -1,11 +1,11 @@ -[sketch] {"metric":"aws.lambda.enhanced.billed_duration","distributions":null,"tags":["account_id:601427279990","architecture:x86_64","aws_account:601427279990","cold_start:true","dd_extension_version:123","env:integration-tests-env","function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-XXXXXX-timeout-node","functionname:integration-tests-extension-XXXXXX-timeout-node","memorysize:1024","region:sa-east-1","resource:integration-tests-extension-XXXXXX-timeout-node","service:integration-tests-service","version:integration-tests-version"],"dogsketches":[{"ts":XXX,"cnt":2,"min":XXX,"max":XXX,"avg":XXX,"sum":XXX,"k":[XXX],"n":[2]}]} -[sketch] {"metric":"aws.lambda.enhanced.duration","distributions":null,"tags":["account_id:601427279990","architecture:x86_64","aws_account:601427279990","cold_start:true","dd_extension_version:123","env:integration-tests-env","function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-XXXXXX-timeout-node","functionname:integration-tests-extension-XXXXXX-timeout-node","memorysize:1024","region:sa-east-1","resource:integration-tests-extension-XXXXXX-timeout-node","service:integration-tests-service","version:integration-tests-version"],"dogsketches":[{"ts":XXX,"cnt":2,"min":XXX,"max":XXX,"avg":XXX,"sum":XXX,"k":[XXX],"n":[2]}]} -[sketch] {"metric":"aws.lambda.enhanced.estimated_cost","distributions":null,"tags":["account_id:601427279990","architecture:x86_64","aws_account:601427279990","cold_start:true","dd_extension_version:123","env:integration-tests-env","function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-XXXXXX-timeout-node","functionname:integration-tests-extension-XXXXXX-timeout-node","memorysize:1024","region:sa-east-1","resource:integration-tests-extension-XXXXXX-timeout-node","service:integration-tests-service","version:integration-tests-version"],"dogsketches":[{"ts":XXX,"cnt":2,"min":XXX,"max":XXX,"avg":XXX,"sum":XXX,"k":[XXX],"n":[2]}]} -[sketch] {"metric":"aws.lambda.enhanced.init_duration","distributions":null,"tags":["account_id:601427279990","architecture:x86_64","aws_account:601427279990","cold_start:true","dd_extension_version:123","env:integration-tests-env","function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-XXXXXX-timeout-node","functionname:integration-tests-extension-XXXXXX-timeout-node","memorysize:1024","region:sa-east-1","resource:integration-tests-extension-XXXXXX-timeout-node","service:integration-tests-service","version:integration-tests-version"],"dogsketches":[{"ts":XXX,"cnt":2,"min":XXX,"max":XXX,"avg":XXX,"sum":XXX,"k":[XXX],"n":[2]}]} +[sketch] {"metric":"aws.lambda.enhanced.billed_duration","distributions":null,"tags":["account_id:601427279990","architecture:x86_64","aws_account:601427279990","cold_start:true","dd_extension_version:123","env:integration-tests-env","function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-XXXXXX-timeout-node","functionname:integration-tests-extension-XXXXXX-timeout-node","memorysize:1024","region:sa-east-1","resource:integration-tests-extension-XXXXXX-timeout-node","service:integration-tests-service","version:integration-tests-version"],"dogsketches":[{"ts":XXX,"cnt":1,"min":XXX,"max":XXX,"avg":XXX,"sum":XXX,"k":[XXX],"n":[1]}]} +[sketch] {"metric":"aws.lambda.enhanced.duration","distributions":null,"tags":["account_id:601427279990","architecture:x86_64","aws_account:601427279990","cold_start:true","dd_extension_version:123","env:integration-tests-env","function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-XXXXXX-timeout-node","functionname:integration-tests-extension-XXXXXX-timeout-node","memorysize:1024","region:sa-east-1","resource:integration-tests-extension-XXXXXX-timeout-node","service:integration-tests-service","version:integration-tests-version"],"dogsketches":[{"ts":XXX,"cnt":1,"min":XXX,"max":XXX,"avg":XXX,"sum":XXX,"k":[XXX],"n":[1]}]} +[sketch] {"metric":"aws.lambda.enhanced.estimated_cost","distributions":null,"tags":["account_id:601427279990","architecture:x86_64","aws_account:601427279990","cold_start:true","dd_extension_version:123","env:integration-tests-env","function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-XXXXXX-timeout-node","functionname:integration-tests-extension-XXXXXX-timeout-node","memorysize:1024","region:sa-east-1","resource:integration-tests-extension-XXXXXX-timeout-node","service:integration-tests-service","version:integration-tests-version"],"dogsketches":[{"ts":XXX,"cnt":1,"min":XXX,"max":XXX,"avg":XXX,"sum":XXX,"k":[XXX],"n":[1]}]} +[sketch] {"metric":"aws.lambda.enhanced.init_duration","distributions":null,"tags":["account_id:601427279990","architecture:x86_64","aws_account:601427279990","cold_start:true","dd_extension_version:123","env:integration-tests-env","function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-XXXXXX-timeout-node","functionname:integration-tests-extension-XXXXXX-timeout-node","memorysize:1024","region:sa-east-1","resource:integration-tests-extension-XXXXXX-timeout-node","service:integration-tests-service","version:integration-tests-version"],"dogsketches":[{"ts":XXX,"cnt":1,"min":XXX,"max":XXX,"avg":XXX,"sum":XXX,"k":[XXX],"n":[1]}]} [sketch] {"metric":"aws.lambda.enhanced.invocations","distributions":null,"tags":["account_id:601427279990","architecture:x86_64","aws_account:601427279990","cold_start:true","datadog_lambda:vX.X.X","dd_extension_version:123","env:integration-tests-env","function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-XXXXXX-timeout-node","functionname:integration-tests-extension-XXXXXX-timeout-node","memorysize:1024","region:sa-east-1","resource:integration-tests-extension-XXXXXX-timeout-node","runtime:nodejs14.x","service:integration-tests-service","version:integration-tests-version"],"dogsketches":[{"ts":XXX,"cnt":1,"min":1,"max":1,"avg":1,"sum":1,"k":[XXX],"n":[1]}]} [sketch] {"metric":"aws.lambda.enhanced.invocations","distributions":null,"tags":["account_id:601427279990","architecture:x86_64","aws_account:601427279990","cold_start:true","datadog_lambda:vX.X.X","dd_extension_version:123","env:integration-tests-env","function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-XXXXXX-timeout-node","functionname:integration-tests-extension-XXXXXX-timeout-node","memorysize:1024","region:sa-east-1","resource:integration-tests-extension-XXXXXX-timeout-node","runtime:nodejs14.x","service:integration-tests-service","version:integration-tests-version"],"dogsketches":[{"ts":XXX,"cnt":1,"min":1,"max":1,"avg":1,"sum":1,"k":[XXX],"n":[1]}]} -[sketch] {"metric":"aws.lambda.enhanced.max_memory_used","distributions":null,"tags":["account_id:601427279990","architecture:x86_64","aws_account:601427279990","cold_start:true","dd_extension_version:123","env:integration-tests-env","function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-XXXXXX-timeout-node","functionname:integration-tests-extension-XXXXXX-timeout-node","memorysize:1024","region:sa-east-1","resource:integration-tests-extension-XXXXXX-timeout-node","service:integration-tests-service","version:integration-tests-version"],"dogsketches":[{"ts":XXX,"cnt":2,"min":XXX,"max":XXX,"avg":XXX,"sum":XXX,"k":[XXX],"n":[2]}]} -[sketch] {"metric":"aws.lambda.enhanced.memorysize","distributions":null,"tags":["account_id:601427279990","architecture:x86_64","aws_account:601427279990","cold_start:true","dd_extension_version:123","env:integration-tests-env","function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-XXXXXX-timeout-node","functionname:integration-tests-extension-XXXXXX-timeout-node","memorysize:1024","region:sa-east-1","resource:integration-tests-extension-XXXXXX-timeout-node","service:integration-tests-service","version:integration-tests-version"],"dogsketches":[{"ts":XXX,"cnt":2,"min":XXX,"max":XXX,"avg":XXX,"sum":XXX,"k":[XXX],"n":[2]}]} +[sketch] {"metric":"aws.lambda.enhanced.max_memory_used","distributions":null,"tags":["account_id:601427279990","architecture:x86_64","aws_account:601427279990","cold_start:true","dd_extension_version:123","env:integration-tests-env","function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-XXXXXX-timeout-node","functionname:integration-tests-extension-XXXXXX-timeout-node","memorysize:1024","region:sa-east-1","resource:integration-tests-extension-XXXXXX-timeout-node","service:integration-tests-service","version:integration-tests-version"],"dogsketches":[{"ts":XXX,"cnt":1,"min":XXX,"max":XXX,"avg":XXX,"sum":XXX,"k":[XXX],"n":[1]}]} +[sketch] {"metric":"aws.lambda.enhanced.memorysize","distributions":null,"tags":["account_id:601427279990","architecture:x86_64","aws_account:601427279990","cold_start:true","dd_extension_version:123","env:integration-tests-env","function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-XXXXXX-timeout-node","functionname:integration-tests-extension-XXXXXX-timeout-node","memorysize:1024","region:sa-east-1","resource:integration-tests-extension-XXXXXX-timeout-node","service:integration-tests-service","version:integration-tests-version"],"dogsketches":[{"ts":XXX,"cnt":1,"min":XXX,"max":XXX,"avg":XXX,"sum":XXX,"k":[XXX],"n":[1]}]} [sketch] {"metric":"aws.lambda.enhanced.runtime_duration","distributions":null,"tags":["account_id:601427279990","architecture:x86_64","aws_account:601427279990","cold_start:false","dd_extension_version:123","env:integration-tests-env","function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-XXXXXX-timeout-node","functionname:integration-tests-extension-XXXXXX-timeout-node","memorysize:1024","region:sa-east-1","resource:integration-tests-extension-XXXXXX-timeout-node","service:integration-tests-service","version:integration-tests-version"],"dogsketches":[{"ts":XXX,"cnt":1,"min":XXX,"max":XXX,"avg":XXX,"sum":XXX,"k":[XXX],"n":[1]}]} [sketch] {"metric":"aws.lambda.enhanced.runtime_duration","distributions":null,"tags":["account_id:601427279990","architecture:x86_64","aws_account:601427279990","cold_start:true","dd_extension_version:123","env:integration-tests-env","function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-XXXXXX-timeout-node","functionname:integration-tests-extension-XXXXXX-timeout-node","memorysize:1024","region:sa-east-1","resource:integration-tests-extension-XXXXXX-timeout-node","service:integration-tests-service","version:integration-tests-version"],"dogsketches":[{"ts":XXX,"cnt":1,"min":XXX,"max":XXX,"avg":XXX,"sum":XXX,"k":[XXX],"n":[1]}]} [sketch] {"metric":"aws.lambda.enhanced.timeouts","distributions":null,"tags":["account_id:601427279990","architecture:x86_64","aws_account:601427279990","cold_start:false","dd_extension_version:123","env:integration-tests-env","function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-XXXXXX-timeout-node","functionname:integration-tests-extension-XXXXXX-timeout-node","memorysize:1024","region:sa-east-1","resource:integration-tests-extension-XXXXXX-timeout-node","service:integration-tests-service","version:integration-tests-version"],"dogsketches":[{"ts":XXX,"cnt":1,"min":1,"max":1,"avg":1,"sum":1,"k":[XXX],"n":[1]}]} diff --git a/integration_tests/snapshots/with-ddlambda-go b/integration_tests/snapshots/with-ddlambda-go index 6e6c8fc0..b6efec18 100644 --- a/integration_tests/snapshots/with-ddlambda-go +++ b/integration_tests/snapshots/with-ddlambda-go @@ -1,19 +1,20 @@ -[sketch] {"metric":"aws.lambda.enhanced.max_memory_used","distributions":null,"tags":["account_id:601427279990","architecture:x86_64","aws_account:601427279990","cold_start:true","dd_extension_version:123","env:integration-tests-env","function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-XXXXXX-with-ddlambda-go","functionname:integration-tests-extension-XXXXXX-with-ddlambda-go","memorysize:1024","region:sa-east-1","resource:integration-tests-extension-XXXXXX-with-ddlambda-go","service:integration-tests-service","taga:valuea","tagb:valueb","tagc:valuec","tagd:valued","version:integration-tests-version"],"dogsketches":[{"ts":XXX,"cnt":1,"min":XXX,"max":XXX,"avg":XXX,"sum":XXX,"k":[XXX],"n":[1]}]} -[sketch] {"metric":"serverless.lambda-extension.integration-test.count","distributions":null,"tags":["account_id:601427279990","architecture:x86_64","aws_account:601427279990","dd_extension_version:123","dd_lambda_layer:datadog-go1.17","env:integration-tests-env","function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-XXXXXX-with-ddlambda-go","functionname:integration-tests-extension-XXXXXX-with-ddlambda-go","memorysize:1024","region:sa-east-1","resource:integration-tests-extension-XXXXXX-with-ddlambda-go","service:integration-tests-service","taga:valuea","tagb:valueb","tagc:valuec","tagd:valued","version:integration-tests-version"],"dogsketches":[{"ts":XXX,"cnt":1,"min":1,"max":1,"avg":1,"sum":1,"k":[XXX],"n":[1]}]} -[sketch] {"metric":"aws.lambda.enhanced.memorysize","distributions":null,"tags":["account_id:601427279990","architecture:x86_64","aws_account:601427279990","cold_start:true","dd_extension_version:123","env:integration-tests-env","function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-XXXXXX-with-ddlambda-go","functionname:integration-tests-extension-XXXXXX-with-ddlambda-go","memorysize:1024","region:sa-east-1","resource:integration-tests-extension-XXXXXX-with-ddlambda-go","service:integration-tests-service","taga:valuea","tagb:valueb","tagc:valuec","tagd:valued","version:integration-tests-version"],"dogsketches":[{"ts":XXX,"cnt":1,"min":XXX,"max":XXX,"avg":XXX,"sum":XXX,"k":[XXX],"n":[1]}]} -[sketch] {"metric":"aws.lambda.enhanced.invocations","distributions":null,"tags":["account_id:601427279990","architecture:x86_64","aws_account:601427279990","cold_start:true","datadog_lambda:vX.X.X","dd_extension_version:123","dd_lambda_layer:datadog-go1.17","env:integration-tests-env","function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-XXXXXX-with-ddlambda-go","functionname:integration-tests-extension-XXXXXX-with-ddlambda-go","memorysize:1024","region:sa-east-1","resource:integration-tests-extension-XXXXXX-with-ddlambda-go","service:integration-tests-service","taga:valuea","tagb:valueb","tagc:valuec","tagd:valued","version:integration-tests-version"],"dogsketches":[{"ts":XXX,"cnt":1,"min":1,"max":1,"avg":1,"sum":1,"k":[XXX],"n":[1]}]} +[sketch] {"metric":"aws.lambda.enhanced.invocations","distributions":null,"tags":["account_id:601427279990","architecture:x86_64","aws_account:601427279990","cold_start:true","datadog_lambda:vX.X.X","dd_extension_version:123","dd_lambda_layer:datadog-go1.16.4","env:integration-tests-env","function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-XXXXXX-with-ddlambda-go","functionname:integration-tests-extension-XXXXXX-with-ddlambda-go","memorysize:1024","region:sa-east-1","resource:integration-tests-extension-XXXXXX-with-ddlambda-go","service:integration-tests-service","taga:valuea","tagb:valueb","tagc:valuec","tagd:valued","version:integration-tests-version"],"dogsketches":[{"ts":XXX,"cnt":1,"min":1,"max":1,"avg":1,"sum":1,"k":[XXX],"n":[1]}]} [sketch] {"metric":"aws.lambda.enhanced.runtime_duration","distributions":null,"tags":["account_id:601427279990","architecture:x86_64","aws_account:601427279990","cold_start:true","dd_extension_version:123","env:integration-tests-env","function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-XXXXXX-with-ddlambda-go","functionname:integration-tests-extension-XXXXXX-with-ddlambda-go","memorysize:1024","region:sa-east-1","resource:integration-tests-extension-XXXXXX-with-ddlambda-go","service:integration-tests-service","taga:valuea","tagb:valueb","tagc:valuec","tagd:valued","version:integration-tests-version"],"dogsketches":[{"ts":XXX,"cnt":1,"min":XXX,"max":XXX,"avg":XXX,"sum":XXX,"k":[XXX],"n":[1]}]} -[sketch] {"metric":"aws.lambda.enhanced.estimated_cost","distributions":null,"tags":["account_id:601427279990","architecture:x86_64","aws_account:601427279990","cold_start:true","dd_extension_version:123","env:integration-tests-env","function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-XXXXXX-with-ddlambda-go","functionname:integration-tests-extension-XXXXXX-with-ddlambda-go","memorysize:1024","region:sa-east-1","resource:integration-tests-extension-XXXXXX-with-ddlambda-go","service:integration-tests-service","taga:valuea","tagb:valueb","tagc:valuec","tagd:valued","version:integration-tests-version"],"dogsketches":[{"ts":XXX,"cnt":1,"min":XXX,"max":XXX,"avg":XXX,"sum":XXX,"k":[XXX],"n":[1]}]} -[sketch] {"metric":"aws.lambda.enhanced.init_duration","distributions":null,"tags":["account_id:601427279990","architecture:x86_64","aws_account:601427279990","cold_start:true","dd_extension_version:123","env:integration-tests-env","function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-XXXXXX-with-ddlambda-go","functionname:integration-tests-extension-XXXXXX-with-ddlambda-go","memorysize:1024","region:sa-east-1","resource:integration-tests-extension-XXXXXX-with-ddlambda-go","service:integration-tests-service","taga:valuea","tagb:valueb","tagc:valuec","tagd:valued","version:integration-tests-version"],"dogsketches":[{"ts":XXX,"cnt":1,"min":XXX,"max":XXX,"avg":XXX,"sum":XXX,"k":[XXX],"n":[1]}]} -[sketch] {"metric":"aws.lambda.enhanced.billed_duration","distributions":null,"tags":["account_id:601427279990","architecture:x86_64","aws_account:601427279990","cold_start:true","dd_extension_version:123","env:integration-tests-env","function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-XXXXXX-with-ddlambda-go","functionname:integration-tests-extension-XXXXXX-with-ddlambda-go","memorysize:1024","region:sa-east-1","resource:integration-tests-extension-XXXXXX-with-ddlambda-go","service:integration-tests-service","taga:valuea","tagb:valueb","tagc:valuec","tagd:valued","version:integration-tests-version"],"dogsketches":[{"ts":XXX,"cnt":1,"min":XXX,"max":XXX,"avg":XXX,"sum":XXX,"k":[XXX],"n":[1]}]} -[sketch] {"metric":"aws.lambda.enhanced.duration","distributions":null,"tags":["account_id:601427279990","architecture:x86_64","aws_account:601427279990","cold_start:true","dd_extension_version:123","env:integration-tests-env","function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-XXXXXX-with-ddlambda-go","functionname:integration-tests-extension-XXXXXX-with-ddlambda-go","memorysize:1024","region:sa-east-1","resource:integration-tests-extension-XXXXXX-with-ddlambda-go","service:integration-tests-service","taga:valuea","tagb:valueb","tagc:valuec","tagd:valued","version:integration-tests-version"],"dogsketches":[{"ts":XXX,"cnt":1,"min":XXX,"max":XXX,"avg":XXX,"sum":XXX,"k":[XXX],"n":[1]}]} [log] {"message":{"message":"START XXX"}} [log] {"message":{"message":"","lambda":{"arn":"arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-XXXXXX-with-ddlambda-go"}},"status":"info","timestamp":TIMESTAMP,"hostname":"arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-XXXXXX-with-ddlambda-go","service":"integration-tests-service","ddsource":"lambda","ddtags":"account_id:601427279990,account_id:601427279990,account_id:601427279990,architecture:x86_64,architecture:x86_64,architecture:x86_64,aws_account:601427279990,aws_account:601427279990,aws_account:601427279990,dd_extension_version:123,dd_extension_version:123,dd_extension_version:123,env:integration-tests-env,env:integration-tests-env,env:integration-tests-env,function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-XXXXXX-with-ddlambda-go,function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-XXXXXX-with-ddlambda-go,function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-XXXXXX-with-ddlambda-go,functionname:integration-tests-extension-XXXXXX-with-ddlambda-go,functionname:integration-tests-extension-XXXXXX-with-ddlambda-go,functionname:integration-tests-extension-XXXXXX-with-ddlambda-go,memorysize:1024,memorysize:1024,memorysize:1024,region:sa-east-1,region:sa-east-1,region:sa-east-1,resource:integration-tests-extension-XXXXXX-with-ddlambda-go,resource:integration-tests-extension-XXXXXX-with-ddlambda-go,resource:integration-tests-extension-XXXXXX-with-ddlambda-go,service:integration-tests-service,service:integration-tests-service,service:integration-tests-service,taga:valuea,taga:valuea,taga:valuea,tagb:valueb,tagb:valueb,tagb:valueb,tagc:valuec,tagc:valuec,tagc:valuec,tagd:valued,tagd:valued,tagd:valued,version:integration-tests-version,version:integration-tests-version,version:integration-tests-version"} [log] {"message":{"message":"","lambda":{"arn":"arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-XXXXXX-with-ddlambda-go"}},"status":"info","timestamp":TIMESTAMP,"hostname":"arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-XXXXXX-with-ddlambda-go","service":"integration-tests-service","ddsource":"lambda","ddtags":"account_id:601427279990,account_id:601427279990,account_id:601427279990,architecture:x86_64,architecture:x86_64,architecture:x86_64,aws_account:601427279990,aws_account:601427279990,aws_account:601427279990,dd_extension_version:123,dd_extension_version:123,dd_extension_version:123,env:integration-tests-env,env:integration-tests-env,env:integration-tests-env,function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-XXXXXX-with-ddlambda-go,function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-XXXXXX-with-ddlambda-go,function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-XXXXXX-with-ddlambda-go,functionname:integration-tests-extension-XXXXXX-with-ddlambda-go,functionname:integration-tests-extension-XXXXXX-with-ddlambda-go,functionname:integration-tests-extension-XXXXXX-with-ddlambda-go,memorysize:1024,memorysize:1024,memorysize:1024,region:sa-east-1,region:sa-east-1,region:sa-east-1,resource:integration-tests-extension-XXXXXX-with-ddlambda-go,resource:integration-tests-extension-XXXXXX-with-ddlambda-go,resource:integration-tests-extension-XXXXXX-with-ddlambda-go,service:integration-tests-service,service:integration-tests-service,service:integration-tests-service,taga:valuea,taga:valuea,taga:valuea,tagb:valueb,tagb:valueb,tagb:valueb,tagc:valuec,tagc:valuec,tagc:valuec,tagd:valued,tagd:valued,tagd:valued,version:integration-tests-version,version:integration-tests-version,version:integration-tests-version"} [log] {"message":{"message":"","lambda":{"arn":"arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-XXXXXX-with-ddlambda-go"}},"status":"info","timestamp":TIMESTAMP,"hostname":"arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-XXXXXX-with-ddlambda-go","service":"integration-tests-service","ddsource":"lambda","ddtags":"account_id:601427279990,account_id:601427279990,account_id:601427279990,architecture:x86_64,architecture:x86_64,architecture:x86_64,aws_account:601427279990,aws_account:601427279990,aws_account:601427279990,dd_extension_version:123,dd_extension_version:123,dd_extension_version:123,env:integration-tests-env,env:integration-tests-env,env:integration-tests-env,function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-XXXXXX-with-ddlambda-go,function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-XXXXXX-with-ddlambda-go,function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-XXXXXX-with-ddlambda-go,functionname:integration-tests-extension-XXXXXX-with-ddlambda-go,functionname:integration-tests-extension-XXXXXX-with-ddlambda-go,functionname:integration-tests-extension-XXXXXX-with-ddlambda-go,memorysize:1024,memorysize:1024,memorysize:1024,region:sa-east-1,region:sa-east-1,region:sa-east-1,resource:integration-tests-extension-XXXXXX-with-ddlambda-go,resource:integration-tests-extension-XXXXXX-with-ddlambda-go,resource:integration-tests-extension-XXXXXX-with-ddlambda-go,service:integration-tests-service,service:integration-tests-service,service:integration-tests-service,taga:valuea,taga:valuea,taga:valuea,tagb:valueb,tagb:valueb,tagb:valueb,tagc:valuec,tagc:valuec,tagc:valuec,tagd:valued,tagd:valued,tagd:valued,version:integration-tests-version,version:integration-tests-version,version:integration-tests-version"} -[log] {"message":{"message":"XXX LOG 0 XXX\n","lambda":{"arn":"arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-XXXXXX-with-ddlambda-go"}},"status":"info","timestamp":TIMESTAMP,"hostname":"arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-XXXXXX-with-ddlambda-go","service":"integration-tests-service","ddsource":"lambda","ddtags":"account_id:601427279990,account_id:601427279990,account_id:601427279990,architecture:x86_64,architecture:x86_64,architecture:x86_64,aws_account:601427279990,aws_account:601427279990,aws_account:601427279990,dd_extension_version:123,dd_extension_version:123,dd_extension_version:123,env:integration-tests-env,env:integration-tests-env,env:integration-tests-env,function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-XXXXXX-with-ddlambda-go,function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-XXXXXX-with-ddlambda-go,function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-XXXXXX-with-ddlambda-go,functionname:integration-tests-extension-XXXXXX-with-ddlambda-go,functionname:integration-tests-extension-XXXXXX-with-ddlambda-go,functionname:integration-tests-extension-XXXXXX-with-ddlambda-go,memorysize:1024,memorysize:1024,memorysize:1024,region:sa-east-1,region:sa-east-1,region:sa-east-1,resource:integration-tests-extension-XXXXXX-with-ddlambda-go,resource:integration-tests-extension-XXXXXX-with-ddlambda-go,resource:integration-tests-extension-XXXXXX-with-ddlambda-go,service:integration-tests-service,service:integration-tests-service,service:integration-tests-service,taga:valuea,taga:valuea,taga:valuea,tagb:valueb,tagb:valueb,tagb:valueb,tagc:valuec,tagc:valuec,tagc:valuec,tagd:valued,tagd:valued,tagd:valued,version:integration-tests-version,version:integration-tests-version,version:integration-tests-version"} -[log] {"message":{"message":"XXX LOG 1 XXX\n","lambda":{"arn":"arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-XXXXXX-with-ddlambda-go"}},"status":"info","timestamp":TIMESTAMP,"hostname":"arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-XXXXXX-with-ddlambda-go","service":"integration-tests-service","ddsource":"lambda","ddtags":"account_id:601427279990,account_id:601427279990,account_id:601427279990,architecture:x86_64,architecture:x86_64,architecture:x86_64,aws_account:601427279990,aws_account:601427279990,aws_account:601427279990,dd_extension_version:123,dd_extension_version:123,dd_extension_version:123,env:integration-tests-env,env:integration-tests-env,env:integration-tests-env,function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-XXXXXX-with-ddlambda-go,function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-XXXXXX-with-ddlambda-go,function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-XXXXXX-with-ddlambda-go,functionname:integration-tests-extension-XXXXXX-with-ddlambda-go,functionname:integration-tests-extension-XXXXXX-with-ddlambda-go,functionname:integration-tests-extension-XXXXXX-with-ddlambda-go,memorysize:1024,memorysize:1024,memorysize:1024,region:sa-east-1,region:sa-east-1,region:sa-east-1,resource:integration-tests-extension-XXXXXX-with-ddlambda-go,resource:integration-tests-extension-XXXXXX-with-ddlambda-go,resource:integration-tests-extension-XXXXXX-with-ddlambda-go,service:integration-tests-service,service:integration-tests-service,service:integration-tests-service,taga:valuea,taga:valuea,taga:valuea,tagb:valueb,tagb:valueb,tagb:valueb,tagc:valuec,tagc:valuec,tagc:valuec,tagd:valued,tagd:valued,tagd:valued,version:integration-tests-version,version:integration-tests-version,version:integration-tests-version"} -[log] {"message":{"message":"XXX LOG 2 XXX\n","lambda":{"arn":"arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-XXXXXX-with-ddlambda-go"}},"status":"info","timestamp":TIMESTAMP,"hostname":"arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-XXXXXX-with-ddlambda-go","service":"integration-tests-service","ddsource":"lambda","ddtags":"account_id:601427279990,account_id:601427279990,account_id:601427279990,architecture:x86_64,architecture:x86_64,architecture:x86_64,aws_account:601427279990,aws_account:601427279990,aws_account:601427279990,dd_extension_version:123,dd_extension_version:123,dd_extension_version:123,env:integration-tests-env,env:integration-tests-env,env:integration-tests-env,function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-XXXXXX-with-ddlambda-go,function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-XXXXXX-with-ddlambda-go,function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-XXXXXX-with-ddlambda-go,functionname:integration-tests-extension-XXXXXX-with-ddlambda-go,functionname:integration-tests-extension-XXXXXX-with-ddlambda-go,functionname:integration-tests-extension-XXXXXX-with-ddlambda-go,memorysize:1024,memorysize:1024,memorysize:1024,region:sa-east-1,region:sa-east-1,region:sa-east-1,resource:integration-tests-extension-XXXXXX-with-ddlambda-go,resource:integration-tests-extension-XXXXXX-with-ddlambda-go,resource:integration-tests-extension-XXXXXX-with-ddlambda-go,service:integration-tests-service,service:integration-tests-service,service:integration-tests-service,taga:valuea,taga:valuea,taga:valuea,tagb:valueb,tagb:valueb,tagb:valueb,tagc:valuec,tagc:valuec,tagc:valuec,tagd:valued,tagd:valued,tagd:valued,version:integration-tests-version,version:integration-tests-version,version:integration-tests-version"} [log] {"message":{"message":"","lambda":{"arn":"arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-XXXXXX-with-ddlambda-go"}},"status":"info","timestamp":TIMESTAMP,"hostname":"arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-XXXXXX-with-ddlambda-go","service":"integration-tests-service","ddsource":"lambda","ddtags":"account_id:601427279990,account_id:601427279990,account_id:601427279990,architecture:x86_64,architecture:x86_64,architecture:x86_64,aws_account:601427279990,aws_account:601427279990,aws_account:601427279990,dd_extension_version:123,dd_extension_version:123,dd_extension_version:123,env:integration-tests-env,env:integration-tests-env,env:integration-tests-env,function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-XXXXXX-with-ddlambda-go,function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-XXXXXX-with-ddlambda-go,function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-XXXXXX-with-ddlambda-go,functionname:integration-tests-extension-XXXXXX-with-ddlambda-go,functionname:integration-tests-extension-XXXXXX-with-ddlambda-go,functionname:integration-tests-extension-XXXXXX-with-ddlambda-go,memorysize:1024,memorysize:1024,memorysize:1024,region:sa-east-1,region:sa-east-1,region:sa-east-1,resource:integration-tests-extension-XXXXXX-with-ddlambda-go,resource:integration-tests-extension-XXXXXX-with-ddlambda-go,resource:integration-tests-extension-XXXXXX-with-ddlambda-go,service:integration-tests-service,service:integration-tests-service,service:integration-tests-service,taga:valuea,taga:valuea,taga:valuea,tagb:valueb,tagb:valueb,tagb:valueb,tagc:valuec,tagc:valuec,tagc:valuec,tagd:valued,tagd:valued,tagd:valued,version:integration-tests-version,version:integration-tests-version,version:integration-tests-version"} +[sketch] {"metric":"aws.lambda.enhanced.init_duration","distributions":null,"tags":["account_id:601427279990","architecture:x86_64","aws_account:601427279990","cold_start:true","dd_extension_version:123","env:integration-tests-env","function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-XXXXXX-with-ddlambda-go","functionname:integration-tests-extension-XXXXXX-with-ddlambda-go","memorysize:1024","region:sa-east-1","resource:integration-tests-extension-XXXXXX-with-ddlambda-go","service:integration-tests-service","taga:valuea","tagb:valueb","tagc:valuec","tagd:valued","version:integration-tests-version"],"dogsketches":[{"ts":XXX,"cnt":1,"min":XXX,"max":XXX,"avg":XXX,"sum":XXX,"k":[XXX],"n":[1]}]} +[sketch] {"metric":"aws.lambda.enhanced.invocations","distributions":null,"tags":["account_id:601427279990","architecture:x86_64","aws_account:601427279990","cold_start:false","datadog_lambda:vX.X.X","dd_extension_version:123","dd_lambda_layer:datadog-go1.16.4","env:integration-tests-env","function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-XXXXXX-with-ddlambda-go","functionname:integration-tests-extension-XXXXXX-with-ddlambda-go","memorysize:1024","region:sa-east-1","resource:integration-tests-extension-XXXXXX-with-ddlambda-go","service:integration-tests-service","taga:valuea","tagb:valueb","tagc:valuec","tagd:valued","version:integration-tests-version"],"dogsketches":[{"ts":XXX,"cnt":1,"min":1,"max":1,"avg":1,"sum":1,"k":[XXX],"n":[1]}]} +[sketch] {"metric":"aws.lambda.enhanced.runtime_duration","distributions":null,"tags":["account_id:601427279990","architecture:x86_64","aws_account:601427279990","cold_start:false","dd_extension_version:123","env:integration-tests-env","function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-XXXXXX-with-ddlambda-go","functionname:integration-tests-extension-XXXXXX-with-ddlambda-go","memorysize:1024","region:sa-east-1","resource:integration-tests-extension-XXXXXX-with-ddlambda-go","service:integration-tests-service","taga:valuea","tagb:valueb","tagc:valuec","tagd:valued","version:integration-tests-version"],"dogsketches":[{"ts":XXX,"cnt":1,"min":XXX,"max":XXX,"avg":XXX,"sum":XXX,"k":[XXX],"n":[1]}]} +[sketch] {"metric":"aws.lambda.enhanced.max_memory_used","distributions":null,"tags":["account_id:601427279990","architecture:x86_64","aws_account:601427279990","cold_start:true","dd_extension_version:123","env:integration-tests-env","function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-XXXXXX-with-ddlambda-go","functionname:integration-tests-extension-XXXXXX-with-ddlambda-go","memorysize:1024","region:sa-east-1","resource:integration-tests-extension-XXXXXX-with-ddlambda-go","service:integration-tests-service","taga:valuea","tagb:valueb","tagc:valuec","tagd:valued","version:integration-tests-version"],"dogsketches":[{"ts":XXX,"cnt":1,"min":XXX,"max":XXX,"avg":XXX,"sum":XXX,"k":[XXX],"n":[1]}]} +[sketch] {"metric":"aws.lambda.enhanced.memorysize","distributions":null,"tags":["account_id:601427279990","architecture:x86_64","aws_account:601427279990","cold_start:true","dd_extension_version:123","env:integration-tests-env","function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-XXXXXX-with-ddlambda-go","functionname:integration-tests-extension-XXXXXX-with-ddlambda-go","memorysize:1024","region:sa-east-1","resource:integration-tests-extension-XXXXXX-with-ddlambda-go","service:integration-tests-service","taga:valuea","tagb:valueb","tagc:valuec","tagd:valued","version:integration-tests-version"],"dogsketches":[{"ts":XXX,"cnt":1,"min":XXX,"max":XXX,"avg":XXX,"sum":XXX,"k":[XXX],"n":[1]}]} +[sketch] {"metric":"aws.lambda.enhanced.billed_duration","distributions":null,"tags":["account_id:601427279990","architecture:x86_64","aws_account:601427279990","cold_start:true","dd_extension_version:123","env:integration-tests-env","function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-XXXXXX-with-ddlambda-go","functionname:integration-tests-extension-XXXXXX-with-ddlambda-go","memorysize:1024","region:sa-east-1","resource:integration-tests-extension-XXXXXX-with-ddlambda-go","service:integration-tests-service","taga:valuea","tagb:valueb","tagc:valuec","tagd:valued","version:integration-tests-version"],"dogsketches":[{"ts":XXX,"cnt":1,"min":XXX,"max":XXX,"avg":XXX,"sum":XXX,"k":[XXX],"n":[1]}]} +[sketch] {"metric":"aws.lambda.enhanced.duration","distributions":null,"tags":["account_id:601427279990","architecture:x86_64","aws_account:601427279990","cold_start:true","dd_extension_version:123","env:integration-tests-env","function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-XXXXXX-with-ddlambda-go","functionname:integration-tests-extension-XXXXXX-with-ddlambda-go","memorysize:1024","region:sa-east-1","resource:integration-tests-extension-XXXXXX-with-ddlambda-go","service:integration-tests-service","taga:valuea","tagb:valueb","tagc:valuec","tagd:valued","version:integration-tests-version"],"dogsketches":[{"ts":XXX,"cnt":1,"min":XXX,"max":XXX,"avg":XXX,"sum":XXX,"k":[XXX],"n":[1]}]} +[sketch] {"metric":"aws.lambda.enhanced.estimated_cost","distributions":null,"tags":["account_id:601427279990","architecture:x86_64","aws_account:601427279990","cold_start:true","dd_extension_version:123","env:integration-tests-env","function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-XXXXXX-with-ddlambda-go","functionname:integration-tests-extension-XXXXXX-with-ddlambda-go","memorysize:1024","region:sa-east-1","resource:integration-tests-extension-XXXXXX-with-ddlambda-go","service:integration-tests-service","taga:valuea","tagb:valueb","tagc:valuec","tagd:valued","version:integration-tests-version"],"dogsketches":[{"ts":XXX,"cnt":1,"min":XXX,"max":XXX,"avg":XXX,"sum":XXX,"k":[XXX],"n":[1]}]} +[log] {"message":{"message":"[sketch] {\"metric\":\"aws.lambda.enhanced.invocations\",\"distributions\":null,\"tags\":[\"account_id:601427279990\",\"architecture:x86_64\",\"aws_account:601427279990\",\"cold_start:true\",\"datadog_lambda:vX.X.X\",\"dd_extension_version:123\",\"dd_lambda_layer:datadog-go1.16.4\",\"env:integration-tests-env\",\"function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-XXXXXX-with-ddlambda-go\",\"functionname:integration-tests-extension-XXXXXX-with-ddlambda-go\",\"memorysize:1024\",\"region:sa-east-1\",\"resource:integration-tests-extension-XXXXXX-with-ddlambda-go\",\"service:integration-tests-service\",\"taga:valuea\",\"tagb:valueb\",\"tagc:valuec\",\"tagd:valued\",\"version:integration-tests-version\"],\"dogsketches\":[{\"ts\":1636407910,\"cnt\":1,\"min\":1,\"max\":1,\"avg\":1,\"sum\":1,\"k\":[1338],\"n\":[1]}]} \n","lambda":{"arn":"arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-XXXXXX-with-ddlambda-go"}},"status":"info","timestamp":TIMESTAMP,"hostname":"arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-XXXXXX-with-ddlambda-go","service":"integration-tests-service","ddsource":"lambda","ddtags":"account_id:601427279990,account_id:601427279990,account_id:601427279990,architecture:x86_64,architecture:x86_64,architecture:x86_64,aws_account:601427279990,aws_account:601427279990,aws_account:601427279990,dd_extension_version:123,dd_extension_version:123,dd_extension_version:123,env:integration-tests-env,env:integration-tests-env,env:integration-tests-env,function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-XXXXXX-with-ddlambda-go,function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-XXXXXX-with-ddlambda-go,function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-XXXXXX-with-ddlambda-go,functionname:integration-tests-extension-XXXXXX-with-ddlambda-go,functionname:integration-tests-extension-XXXXXX-with-ddlambda-go,functionname:integration-tests-extension-XXXXXX-with-ddlambda-go,memorysize:1024,memorysize:1024,memorysize:1024,region:sa-east-1,region:sa-east-1,region:sa-east-1,resource:integration-tests-extension-XXXXXX-with-ddlambda-go,resource:integration-tests-extension-XXXXXX-with-ddlambda-go,resource:integration-tests-extension-XXXXXX-with-ddlambda-go,service:integration-tests-service,service:integration-tests-service,service:integration-tests-service,taga:valuea,taga:valuea,taga:valuea,tagb:valueb,tagb:valueb,tagb:valueb,tagc:valuec,tagc:valuec,tagc:valuec,tagd:valued,tagd:valued,tagd:valued,version:integration-tests-version,version:integration-tests-version,version:integration-tests-version"} +[log] {"message":{"message":"[sketch] {\"metric\":\"aws.lambda.enhanced.runtime_duration\",\"distributions\":null,\"tags\":[\"account_id:601427279990\",\"architecture:x86_64\",\"aws_account:601427279990\",\"cold_start:true\",\"dd_extension_version:123\",\"env:integration-tests-env\",\"function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-XXXXXX-with-ddlambda-go\",\"functionname:integration-tests-extension-XXXXXX-with-ddlambda-go\",\"memorysize:1024\",\"region:sa-east-1\",\"resource:integration-tests-extension-XXXXXX-with-ddlambda-go\",\"service:integration-tests-service\",\"taga:valuea\",\"tagb:valueb\",\"tagc:valuec\",\"tagd:valued\",\"version:integration-tests-version\"],\"dogsketches\":[{\"ts\":1636407910,\"cnt\":1,\"min\":336,\"max\":336,\"avg\":336,\"sum\":336,\"k\":[1713],\"n\":[1]}]} \n","lambda":{"arn":"arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-XXXXXX-with-ddlambda-go"}},"status":"info","timestamp":TIMESTAMP,"hostname":"arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-XXXXXX-with-ddlambda-go","service":"integration-tests-service","ddsource":"lambda","ddtags":"account_id:601427279990,account_id:601427279990,account_id:601427279990,architecture:x86_64,architecture:x86_64,architecture:x86_64,aws_account:601427279990,aws_account:601427279990,aws_account:601427279990,dd_extension_version:123,dd_extension_version:123,dd_extension_version:123,env:integration-tests-env,env:integration-tests-env,env:integration-tests-env,function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-XXXXXX-with-ddlambda-go,function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-XXXXXX-with-ddlambda-go,function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-XXXXXX-with-ddlambda-go,functionname:integration-tests-extension-XXXXXX-with-ddlambda-go,functionname:integration-tests-extension-XXXXXX-with-ddlambda-go,functionname:integration-tests-extension-XXXXXX-with-ddlambda-go,memorysize:1024,memorysize:1024,memorysize:1024,region:sa-east-1,region:sa-east-1,region:sa-east-1,resource:integration-tests-extension-XXXXXX-with-ddlambda-go,resource:integration-tests-extension-XXXXXX-with-ddlambda-go,resource:integration-tests-extension-XXXXXX-with-ddlambda-go,service:integration-tests-service,service:integration-tests-service,service:integration-tests-service,taga:valuea,taga:valuea,taga:valuea,tagb:valueb,tagb:valueb,tagb:valueb,tagc:valuec,tagc:valuec,tagc:valuec,tagd:valued,tagd:valued,tagd:valued,version:integration-tests-version,version:integration-tests-version,version:integration-tests-version"} [log] {"message":{"message":"END XXX"}} [log] {"message":{"message":"REPORT XXX"}} +[log] {"message":{"message":"","lambda":{"arn":"arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-XXXXXX-with-ddlambda-go"}},"status":"info","timestamp":TIMESTAMP,"hostname":"arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-XXXXXX-with-ddlambda-go","service":"integration-tests-service","ddsource":"lambda","ddtags":"account_id:601427279990,account_id:601427279990,account_id:601427279990,architecture:x86_64,architecture:x86_64,architecture:x86_64,aws_account:601427279990,aws_account:601427279990,aws_account:601427279990,dd_extension_version:123,dd_extension_version:123,dd_extension_version:123,env:integration-tests-env,env:integration-tests-env,env:integration-tests-env,function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-XXXXXX-with-ddlambda-go,function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-XXXXXX-with-ddlambda-go,function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-XXXXXX-with-ddlambda-go,functionname:integration-tests-extension-XXXXXX-with-ddlambda-go,functionname:integration-tests-extension-XXXXXX-with-ddlambda-go,functionname:integration-tests-extension-XXXXXX-with-ddlambda-go,memorysize:1024,memorysize:1024,memorysize:1024,region:sa-east-1,region:sa-east-1,region:sa-east-1,resource:integration-tests-extension-XXXXXX-with-ddlambda-go,resource:integration-tests-extension-XXXXXX-with-ddlambda-go,resource:integration-tests-extension-XXXXXX-with-ddlambda-go,service:integration-tests-service,service:integration-tests-service,service:integration-tests-service,taga:valuea,taga:valuea,taga:valuea,tagb:valueb,tagb:valueb,tagb:valueb,tagc:valuec,tagc:valuec,tagc:valuec,tagd:valued,tagd:valued,tagd:valued,version:integration-tests-version,version:integration-tests-version,version:integration-tests-version"} diff --git a/integration_tests/snapshots/without-ddlambda-go b/integration_tests/snapshots/without-ddlambda-go index 2bab208a..d687f27f 100644 --- a/integration_tests/snapshots/without-ddlambda-go +++ b/integration_tests/snapshots/without-ddlambda-go @@ -1,18 +1,19 @@ [sketch] {"metric":"aws.lambda.enhanced.runtime_duration","distributions":null,"tags":["account_id:601427279990","architecture:x86_64","aws_account:601427279990","cold_start:true","dd_extension_version:123","env:integration-tests-env","function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-XXXXXX-without-ddlambda-go","functionname:integration-tests-extension-XXXXXX-without-ddlambda-go","memorysize:1024","region:sa-east-1","resource:integration-tests-extension-XXXXXX-without-ddlambda-go","service:integration-tests-service","taga:valuea","tagb:valueb","tagc:valuec","tagd:valued","version:integration-tests-version"],"dogsketches":[{"ts":XXX,"cnt":1,"min":XXX,"max":XXX,"avg":XXX,"sum":XXX,"k":[XXX],"n":[1]}]} +[sketch] {"metric":"aws.lambda.enhanced.invocations","distributions":null,"tags":["account_id:601427279990","architecture:x86_64","aws_account:601427279990","cold_start:true","datadog_lambda:vX.X.X","dd_extension_version:123","dd_lambda_layer:datadog-go1.16.4","env:integration-tests-env","function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-XXXXXX-without-ddlambda-go","functionname:integration-tests-extension-XXXXXX-without-ddlambda-go","memorysize:1024","region:sa-east-1","resource:integration-tests-extension-XXXXXX-without-ddlambda-go","service:integration-tests-service","taga:valuea","tagb:valueb","tagc:valuec","tagd:valued","version:integration-tests-version"],"dogsketches":[{"ts":XXX,"cnt":1,"min":1,"max":1,"avg":1,"sum":1,"k":[XXX],"n":[1]}]} [log] {"message":{"message":"START XXX"}} [log] {"message":{"message":"","lambda":{"arn":"arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-XXXXXX-without-ddlambda-go"}},"status":"info","timestamp":TIMESTAMP,"hostname":"arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-XXXXXX-without-ddlambda-go","service":"integration-tests-service","ddsource":"lambda","ddtags":"account_id:601427279990,account_id:601427279990,account_id:601427279990,architecture:x86_64,architecture:x86_64,architecture:x86_64,aws_account:601427279990,aws_account:601427279990,aws_account:601427279990,dd_extension_version:123,dd_extension_version:123,dd_extension_version:123,env:integration-tests-env,env:integration-tests-env,env:integration-tests-env,function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-XXXXXX-without-ddlambda-go,function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-XXXXXX-without-ddlambda-go,function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-XXXXXX-without-ddlambda-go,functionname:integration-tests-extension-XXXXXX-without-ddlambda-go,functionname:integration-tests-extension-XXXXXX-without-ddlambda-go,functionname:integration-tests-extension-XXXXXX-without-ddlambda-go,memorysize:1024,memorysize:1024,memorysize:1024,region:sa-east-1,region:sa-east-1,region:sa-east-1,resource:integration-tests-extension-XXXXXX-without-ddlambda-go,resource:integration-tests-extension-XXXXXX-without-ddlambda-go,resource:integration-tests-extension-XXXXXX-without-ddlambda-go,service:integration-tests-service,service:integration-tests-service,service:integration-tests-service,taga:valuea,taga:valuea,taga:valuea,tagb:valueb,tagb:valueb,tagb:valueb,tagc:valuec,tagc:valuec,tagc:valuec,tagd:valued,tagd:valued,tagd:valued,version:integration-tests-version,version:integration-tests-version,version:integration-tests-version"} [log] {"message":{"message":"","lambda":{"arn":"arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-XXXXXX-without-ddlambda-go"}},"status":"info","timestamp":TIMESTAMP,"hostname":"arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-XXXXXX-without-ddlambda-go","service":"integration-tests-service","ddsource":"lambda","ddtags":"account_id:601427279990,account_id:601427279990,account_id:601427279990,architecture:x86_64,architecture:x86_64,architecture:x86_64,aws_account:601427279990,aws_account:601427279990,aws_account:601427279990,dd_extension_version:123,dd_extension_version:123,dd_extension_version:123,env:integration-tests-env,env:integration-tests-env,env:integration-tests-env,function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-XXXXXX-without-ddlambda-go,function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-XXXXXX-without-ddlambda-go,function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-XXXXXX-without-ddlambda-go,functionname:integration-tests-extension-XXXXXX-without-ddlambda-go,functionname:integration-tests-extension-XXXXXX-without-ddlambda-go,functionname:integration-tests-extension-XXXXXX-without-ddlambda-go,memorysize:1024,memorysize:1024,memorysize:1024,region:sa-east-1,region:sa-east-1,region:sa-east-1,resource:integration-tests-extension-XXXXXX-without-ddlambda-go,resource:integration-tests-extension-XXXXXX-without-ddlambda-go,resource:integration-tests-extension-XXXXXX-without-ddlambda-go,service:integration-tests-service,service:integration-tests-service,service:integration-tests-service,taga:valuea,taga:valuea,taga:valuea,tagb:valueb,tagb:valueb,tagb:valueb,tagc:valuec,tagc:valuec,tagc:valuec,tagd:valued,tagd:valued,tagd:valued,version:integration-tests-version,version:integration-tests-version,version:integration-tests-version"} [log] {"message":{"message":"","lambda":{"arn":"arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-XXXXXX-without-ddlambda-go"}},"status":"info","timestamp":TIMESTAMP,"hostname":"arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-XXXXXX-without-ddlambda-go","service":"integration-tests-service","ddsource":"lambda","ddtags":"account_id:601427279990,account_id:601427279990,account_id:601427279990,architecture:x86_64,architecture:x86_64,architecture:x86_64,aws_account:601427279990,aws_account:601427279990,aws_account:601427279990,dd_extension_version:123,dd_extension_version:123,dd_extension_version:123,env:integration-tests-env,env:integration-tests-env,env:integration-tests-env,function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-XXXXXX-without-ddlambda-go,function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-XXXXXX-without-ddlambda-go,function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-XXXXXX-without-ddlambda-go,functionname:integration-tests-extension-XXXXXX-without-ddlambda-go,functionname:integration-tests-extension-XXXXXX-without-ddlambda-go,functionname:integration-tests-extension-XXXXXX-without-ddlambda-go,memorysize:1024,memorysize:1024,memorysize:1024,region:sa-east-1,region:sa-east-1,region:sa-east-1,resource:integration-tests-extension-XXXXXX-without-ddlambda-go,resource:integration-tests-extension-XXXXXX-without-ddlambda-go,resource:integration-tests-extension-XXXXXX-without-ddlambda-go,service:integration-tests-service,service:integration-tests-service,service:integration-tests-service,taga:valuea,taga:valuea,taga:valuea,tagb:valueb,tagb:valueb,tagb:valueb,tagc:valuec,tagc:valuec,tagc:valuec,tagd:valued,tagd:valued,tagd:valued,version:integration-tests-version,version:integration-tests-version,version:integration-tests-version"} -[log] {"message":{"message":"XXX LOG 0 XXX\n","lambda":{"arn":"arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-XXXXXX-without-ddlambda-go"}},"status":"info","timestamp":TIMESTAMP,"hostname":"arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-XXXXXX-without-ddlambda-go","service":"integration-tests-service","ddsource":"lambda","ddtags":"account_id:601427279990,account_id:601427279990,account_id:601427279990,architecture:x86_64,architecture:x86_64,architecture:x86_64,aws_account:601427279990,aws_account:601427279990,aws_account:601427279990,dd_extension_version:123,dd_extension_version:123,dd_extension_version:123,env:integration-tests-env,env:integration-tests-env,env:integration-tests-env,function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-XXXXXX-without-ddlambda-go,function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-XXXXXX-without-ddlambda-go,function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-XXXXXX-without-ddlambda-go,functionname:integration-tests-extension-XXXXXX-without-ddlambda-go,functionname:integration-tests-extension-XXXXXX-without-ddlambda-go,functionname:integration-tests-extension-XXXXXX-without-ddlambda-go,memorysize:1024,memorysize:1024,memorysize:1024,region:sa-east-1,region:sa-east-1,region:sa-east-1,resource:integration-tests-extension-XXXXXX-without-ddlambda-go,resource:integration-tests-extension-XXXXXX-without-ddlambda-go,resource:integration-tests-extension-XXXXXX-without-ddlambda-go,service:integration-tests-service,service:integration-tests-service,service:integration-tests-service,taga:valuea,taga:valuea,taga:valuea,tagb:valueb,tagb:valueb,tagb:valueb,tagc:valuec,tagc:valuec,tagc:valuec,tagd:valued,tagd:valued,tagd:valued,version:integration-tests-version,version:integration-tests-version,version:integration-tests-version"} -[log] {"message":{"message":"XXX LOG 1 XXX\n","lambda":{"arn":"arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-XXXXXX-without-ddlambda-go"}},"status":"info","timestamp":TIMESTAMP,"hostname":"arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-XXXXXX-without-ddlambda-go","service":"integration-tests-service","ddsource":"lambda","ddtags":"account_id:601427279990,account_id:601427279990,account_id:601427279990,architecture:x86_64,architecture:x86_64,architecture:x86_64,aws_account:601427279990,aws_account:601427279990,aws_account:601427279990,dd_extension_version:123,dd_extension_version:123,dd_extension_version:123,env:integration-tests-env,env:integration-tests-env,env:integration-tests-env,function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-XXXXXX-without-ddlambda-go,function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-XXXXXX-without-ddlambda-go,function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-XXXXXX-without-ddlambda-go,functionname:integration-tests-extension-XXXXXX-without-ddlambda-go,functionname:integration-tests-extension-XXXXXX-without-ddlambda-go,functionname:integration-tests-extension-XXXXXX-without-ddlambda-go,memorysize:1024,memorysize:1024,memorysize:1024,region:sa-east-1,region:sa-east-1,region:sa-east-1,resource:integration-tests-extension-XXXXXX-without-ddlambda-go,resource:integration-tests-extension-XXXXXX-without-ddlambda-go,resource:integration-tests-extension-XXXXXX-without-ddlambda-go,service:integration-tests-service,service:integration-tests-service,service:integration-tests-service,taga:valuea,taga:valuea,taga:valuea,tagb:valueb,tagb:valueb,tagb:valueb,tagc:valuec,tagc:valuec,tagc:valuec,tagd:valued,tagd:valued,tagd:valued,version:integration-tests-version,version:integration-tests-version,version:integration-tests-version"} -[log] {"message":{"message":"XXX LOG 2 XXX\n","lambda":{"arn":"arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-XXXXXX-without-ddlambda-go"}},"status":"info","timestamp":TIMESTAMP,"hostname":"arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-XXXXXX-without-ddlambda-go","service":"integration-tests-service","ddsource":"lambda","ddtags":"account_id:601427279990,account_id:601427279990,account_id:601427279990,architecture:x86_64,architecture:x86_64,architecture:x86_64,aws_account:601427279990,aws_account:601427279990,aws_account:601427279990,dd_extension_version:123,dd_extension_version:123,dd_extension_version:123,env:integration-tests-env,env:integration-tests-env,env:integration-tests-env,function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-XXXXXX-without-ddlambda-go,function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-XXXXXX-without-ddlambda-go,function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-XXXXXX-without-ddlambda-go,functionname:integration-tests-extension-XXXXXX-without-ddlambda-go,functionname:integration-tests-extension-XXXXXX-without-ddlambda-go,functionname:integration-tests-extension-XXXXXX-without-ddlambda-go,memorysize:1024,memorysize:1024,memorysize:1024,region:sa-east-1,region:sa-east-1,region:sa-east-1,resource:integration-tests-extension-XXXXXX-without-ddlambda-go,resource:integration-tests-extension-XXXXXX-without-ddlambda-go,resource:integration-tests-extension-XXXXXX-without-ddlambda-go,service:integration-tests-service,service:integration-tests-service,service:integration-tests-service,taga:valuea,taga:valuea,taga:valuea,tagb:valueb,tagb:valueb,tagb:valueb,tagc:valuec,tagc:valuec,tagc:valuec,tagd:valued,tagd:valued,tagd:valued,version:integration-tests-version,version:integration-tests-version,version:integration-tests-version"} -[log] {"message":{"message":"","lambda":{"arn":"arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-XXXXXX-without-ddlambda-go"}},"status":"info","timestamp":TIMESTAMP,"hostname":"arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-XXXXXX-without-ddlambda-go","service":"integration-tests-service","ddsource":"lambda","ddtags":"account_id:601427279990,account_id:601427279990,account_id:601427279990,architecture:x86_64,architecture:x86_64,architecture:x86_64,aws_account:601427279990,aws_account:601427279990,aws_account:601427279990,dd_extension_version:123,dd_extension_version:123,dd_extension_version:123,env:integration-tests-env,env:integration-tests-env,env:integration-tests-env,function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-XXXXXX-without-ddlambda-go,function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-XXXXXX-without-ddlambda-go,function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-XXXXXX-without-ddlambda-go,functionname:integration-tests-extension-XXXXXX-without-ddlambda-go,functionname:integration-tests-extension-XXXXXX-without-ddlambda-go,functionname:integration-tests-extension-XXXXXX-without-ddlambda-go,memorysize:1024,memorysize:1024,memorysize:1024,region:sa-east-1,region:sa-east-1,region:sa-east-1,resource:integration-tests-extension-XXXXXX-without-ddlambda-go,resource:integration-tests-extension-XXXXXX-without-ddlambda-go,resource:integration-tests-extension-XXXXXX-without-ddlambda-go,service:integration-tests-service,service:integration-tests-service,service:integration-tests-service,taga:valuea,taga:valuea,taga:valuea,tagb:valueb,tagb:valueb,tagb:valueb,tagc:valuec,tagc:valuec,tagc:valuec,tagd:valued,tagd:valued,tagd:valued,version:integration-tests-version,version:integration-tests-version,version:integration-tests-version"} -[sketch] {"metric":"aws.lambda.enhanced.runtime_duration","distributions":null,"tags":["account_id:601427279990","architecture:x86_64","aws_account:601427279990","cold_start:true","dd_extension_version:123","env:integration-tests-env","function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-XXXXXX-without-ddlambda-go","functionname:integration-tests-extension-XXXXXX-without-ddlambda-go","memorysize:1024","region:sa-east-1","resource:integration-tests-extension-XXXXXX-without-ddlambda-go","service:integration-tests-service","taga:valuea","tagb:valueb","tagc:valuec","tagd:valued","version:integration-tests-version"],"dogsketches":[{"ts":XXX,"cnt":1,"min":XXX,"max":XXX,"avg":XXX,"sum":XXX,"k":[XXX],"n":[1]}]} -[log] {"message":{"message":"START XXX"}} -[log] {"message":{"message":"","lambda":{"arn":"arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-XXXXXX-without-ddlambda-go"}},"status":"info","timestamp":TIMESTAMP,"hostname":"arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-XXXXXX-without-ddlambda-go","service":"integration-tests-service","ddsource":"lambda","ddtags":"account_id:601427279990,account_id:601427279990,account_id:601427279990,architecture:x86_64,architecture:x86_64,architecture:x86_64,aws_account:601427279990,aws_account:601427279990,aws_account:601427279990,dd_extension_version:123,dd_extension_version:123,dd_extension_version:123,env:integration-tests-env,env:integration-tests-env,env:integration-tests-env,function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-XXXXXX-without-ddlambda-go,function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-XXXXXX-without-ddlambda-go,function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-XXXXXX-without-ddlambda-go,functionname:integration-tests-extension-XXXXXX-without-ddlambda-go,functionname:integration-tests-extension-XXXXXX-without-ddlambda-go,functionname:integration-tests-extension-XXXXXX-without-ddlambda-go,memorysize:1024,memorysize:1024,memorysize:1024,region:sa-east-1,region:sa-east-1,region:sa-east-1,resource:integration-tests-extension-XXXXXX-without-ddlambda-go,resource:integration-tests-extension-XXXXXX-without-ddlambda-go,resource:integration-tests-extension-XXXXXX-without-ddlambda-go,service:integration-tests-service,service:integration-tests-service,service:integration-tests-service,taga:valuea,taga:valuea,taga:valuea,tagb:valueb,tagb:valueb,tagb:valueb,tagc:valuec,tagc:valuec,tagc:valuec,tagd:valued,tagd:valued,tagd:valued,version:integration-tests-version,version:integration-tests-version,version:integration-tests-version"} -[log] {"message":{"message":"","lambda":{"arn":"arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-XXXXXX-without-ddlambda-go"}},"status":"info","timestamp":TIMESTAMP,"hostname":"arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-XXXXXX-without-ddlambda-go","service":"integration-tests-service","ddsource":"lambda","ddtags":"account_id:601427279990,account_id:601427279990,account_id:601427279990,architecture:x86_64,architecture:x86_64,architecture:x86_64,aws_account:601427279990,aws_account:601427279990,aws_account:601427279990,dd_extension_version:123,dd_extension_version:123,dd_extension_version:123,env:integration-tests-env,env:integration-tests-env,env:integration-tests-env,function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-XXXXXX-without-ddlambda-go,function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-XXXXXX-without-ddlambda-go,function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-XXXXXX-without-ddlambda-go,functionname:integration-tests-extension-XXXXXX-without-ddlambda-go,functionname:integration-tests-extension-XXXXXX-without-ddlambda-go,functionname:integration-tests-extension-XXXXXX-without-ddlambda-go,memorysize:1024,memorysize:1024,memorysize:1024,region:sa-east-1,region:sa-east-1,region:sa-east-1,resource:integration-tests-extension-XXXXXX-without-ddlambda-go,resource:integration-tests-extension-XXXXXX-without-ddlambda-go,resource:integration-tests-extension-XXXXXX-without-ddlambda-go,service:integration-tests-service,service:integration-tests-service,service:integration-tests-service,taga:valuea,taga:valuea,taga:valuea,tagb:valueb,tagb:valueb,tagb:valueb,tagc:valuec,tagc:valuec,tagc:valuec,tagd:valued,tagd:valued,tagd:valued,version:integration-tests-version,version:integration-tests-version,version:integration-tests-version"} -[log] {"message":{"message":"","lambda":{"arn":"arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-XXXXXX-without-ddlambda-go"}},"status":"info","timestamp":TIMESTAMP,"hostname":"arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-XXXXXX-without-ddlambda-go","service":"integration-tests-service","ddsource":"lambda","ddtags":"account_id:601427279990,account_id:601427279990,account_id:601427279990,architecture:x86_64,architecture:x86_64,architecture:x86_64,aws_account:601427279990,aws_account:601427279990,aws_account:601427279990,dd_extension_version:123,dd_extension_version:123,dd_extension_version:123,env:integration-tests-env,env:integration-tests-env,env:integration-tests-env,function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-XXXXXX-without-ddlambda-go,function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-XXXXXX-without-ddlambda-go,function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-XXXXXX-without-ddlambda-go,functionname:integration-tests-extension-XXXXXX-without-ddlambda-go,functionname:integration-tests-extension-XXXXXX-without-ddlambda-go,functionname:integration-tests-extension-XXXXXX-without-ddlambda-go,memorysize:1024,memorysize:1024,memorysize:1024,region:sa-east-1,region:sa-east-1,region:sa-east-1,resource:integration-tests-extension-XXXXXX-without-ddlambda-go,resource:integration-tests-extension-XXXXXX-without-ddlambda-go,resource:integration-tests-extension-XXXXXX-without-ddlambda-go,service:integration-tests-service,service:integration-tests-service,service:integration-tests-service,taga:valuea,taga:valuea,taga:valuea,tagb:valueb,tagb:valueb,tagb:valueb,tagc:valuec,tagc:valuec,tagc:valuec,tagd:valued,tagd:valued,tagd:valued,version:integration-tests-version,version:integration-tests-version,version:integration-tests-version"} -[log] {"message":{"message":"XXX LOG 0 XXX\n","lambda":{"arn":"arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-XXXXXX-without-ddlambda-go"}},"status":"info","timestamp":TIMESTAMP,"hostname":"arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-XXXXXX-without-ddlambda-go","service":"integration-tests-service","ddsource":"lambda","ddtags":"account_id:601427279990,account_id:601427279990,account_id:601427279990,architecture:x86_64,architecture:x86_64,architecture:x86_64,aws_account:601427279990,aws_account:601427279990,aws_account:601427279990,dd_extension_version:123,dd_extension_version:123,dd_extension_version:123,env:integration-tests-env,env:integration-tests-env,env:integration-tests-env,function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-XXXXXX-without-ddlambda-go,function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-XXXXXX-without-ddlambda-go,function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-XXXXXX-without-ddlambda-go,functionname:integration-tests-extension-XXXXXX-without-ddlambda-go,functionname:integration-tests-extension-XXXXXX-without-ddlambda-go,functionname:integration-tests-extension-XXXXXX-without-ddlambda-go,memorysize:1024,memorysize:1024,memorysize:1024,region:sa-east-1,region:sa-east-1,region:sa-east-1,resource:integration-tests-extension-XXXXXX-without-ddlambda-go,resource:integration-tests-extension-XXXXXX-without-ddlambda-go,resource:integration-tests-extension-XXXXXX-without-ddlambda-go,service:integration-tests-service,service:integration-tests-service,service:integration-tests-service,taga:valuea,taga:valuea,taga:valuea,tagb:valueb,tagb:valueb,tagb:valueb,tagc:valuec,tagc:valuec,tagc:valuec,tagd:valued,tagd:valued,tagd:valued,version:integration-tests-version,version:integration-tests-version,version:integration-tests-version"} -[log] {"message":{"message":"XXX LOG 1 XXX\n","lambda":{"arn":"arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-XXXXXX-without-ddlambda-go"}},"status":"info","timestamp":TIMESTAMP,"hostname":"arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-XXXXXX-without-ddlambda-go","service":"integration-tests-service","ddsource":"lambda","ddtags":"account_id:601427279990,account_id:601427279990,account_id:601427279990,architecture:x86_64,architecture:x86_64,architecture:x86_64,aws_account:601427279990,aws_account:601427279990,aws_account:601427279990,dd_extension_version:123,dd_extension_version:123,dd_extension_version:123,env:integration-tests-env,env:integration-tests-env,env:integration-tests-env,function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-XXXXXX-without-ddlambda-go,function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-XXXXXX-without-ddlambda-go,function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-XXXXXX-without-ddlambda-go,functionname:integration-tests-extension-XXXXXX-without-ddlambda-go,functionname:integration-tests-extension-XXXXXX-without-ddlambda-go,functionname:integration-tests-extension-XXXXXX-without-ddlambda-go,memorysize:1024,memorysize:1024,memorysize:1024,region:sa-east-1,region:sa-east-1,region:sa-east-1,resource:integration-tests-extension-XXXXXX-without-ddlambda-go,resource:integration-tests-extension-XXXXXX-without-ddlambda-go,resource:integration-tests-extension-XXXXXX-without-ddlambda-go,service:integration-tests-service,service:integration-tests-service,service:integration-tests-service,taga:valuea,taga:valuea,taga:valuea,tagb:valueb,tagb:valueb,tagb:valueb,tagc:valuec,tagc:valuec,tagc:valuec,tagd:valued,tagd:valued,tagd:valued,version:integration-tests-version,version:integration-tests-version,version:integration-tests-version"} -[log] {"message":{"message":"XXX LOG 2 XXX\n","lambda":{"arn":"arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-XXXXXX-without-ddlambda-go"}},"status":"info","timestamp":TIMESTAMP,"hostname":"arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-XXXXXX-without-ddlambda-go","service":"integration-tests-service","ddsource":"lambda","ddtags":"account_id:601427279990,account_id:601427279990,account_id:601427279990,architecture:x86_64,architecture:x86_64,architecture:x86_64,aws_account:601427279990,aws_account:601427279990,aws_account:601427279990,dd_extension_version:123,dd_extension_version:123,dd_extension_version:123,env:integration-tests-env,env:integration-tests-env,env:integration-tests-env,function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-XXXXXX-without-ddlambda-go,function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-XXXXXX-without-ddlambda-go,function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-XXXXXX-without-ddlambda-go,functionname:integration-tests-extension-XXXXXX-without-ddlambda-go,functionname:integration-tests-extension-XXXXXX-without-ddlambda-go,functionname:integration-tests-extension-XXXXXX-without-ddlambda-go,memorysize:1024,memorysize:1024,memorysize:1024,region:sa-east-1,region:sa-east-1,region:sa-east-1,resource:integration-tests-extension-XXXXXX-without-ddlambda-go,resource:integration-tests-extension-XXXXXX-without-ddlambda-go,resource:integration-tests-extension-XXXXXX-without-ddlambda-go,service:integration-tests-service,service:integration-tests-service,service:integration-tests-service,taga:valuea,taga:valuea,taga:valuea,tagb:valueb,tagb:valueb,tagb:valueb,tagc:valuec,tagc:valuec,tagc:valuec,tagd:valued,tagd:valued,tagd:valued,version:integration-tests-version,version:integration-tests-version,version:integration-tests-version"} [log] {"message":{"message":"","lambda":{"arn":"arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-XXXXXX-without-ddlambda-go"}},"status":"info","timestamp":TIMESTAMP,"hostname":"arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-XXXXXX-without-ddlambda-go","service":"integration-tests-service","ddsource":"lambda","ddtags":"account_id:601427279990,account_id:601427279990,account_id:601427279990,architecture:x86_64,architecture:x86_64,architecture:x86_64,aws_account:601427279990,aws_account:601427279990,aws_account:601427279990,dd_extension_version:123,dd_extension_version:123,dd_extension_version:123,env:integration-tests-env,env:integration-tests-env,env:integration-tests-env,function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-XXXXXX-without-ddlambda-go,function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-XXXXXX-without-ddlambda-go,function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-XXXXXX-without-ddlambda-go,functionname:integration-tests-extension-XXXXXX-without-ddlambda-go,functionname:integration-tests-extension-XXXXXX-without-ddlambda-go,functionname:integration-tests-extension-XXXXXX-without-ddlambda-go,memorysize:1024,memorysize:1024,memorysize:1024,region:sa-east-1,region:sa-east-1,region:sa-east-1,resource:integration-tests-extension-XXXXXX-without-ddlambda-go,resource:integration-tests-extension-XXXXXX-without-ddlambda-go,resource:integration-tests-extension-XXXXXX-without-ddlambda-go,service:integration-tests-service,service:integration-tests-service,service:integration-tests-service,taga:valuea,taga:valuea,taga:valuea,tagb:valueb,tagb:valueb,tagb:valueb,tagc:valuec,tagc:valuec,tagc:valuec,tagd:valued,tagd:valued,tagd:valued,version:integration-tests-version,version:integration-tests-version,version:integration-tests-version"} +[sketch] {"metric":"aws.lambda.enhanced.max_memory_used","distributions":null,"tags":["account_id:601427279990","architecture:x86_64","aws_account:601427279990","cold_start:true","dd_extension_version:123","env:integration-tests-env","function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-XXXXXX-without-ddlambda-go","functionname:integration-tests-extension-XXXXXX-without-ddlambda-go","memorysize:1024","region:sa-east-1","resource:integration-tests-extension-XXXXXX-without-ddlambda-go","service:integration-tests-service","taga:valuea","tagb:valueb","tagc:valuec","tagd:valued","version:integration-tests-version"],"dogsketches":[{"ts":XXX,"cnt":1,"min":XXX,"max":XXX,"avg":XXX,"sum":XXX,"k":[XXX],"n":[1]}]} +[sketch] {"metric":"aws.lambda.enhanced.memorysize","distributions":null,"tags":["account_id:601427279990","architecture:x86_64","aws_account:601427279990","cold_start:true","dd_extension_version:123","env:integration-tests-env","function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-XXXXXX-without-ddlambda-go","functionname:integration-tests-extension-XXXXXX-without-ddlambda-go","memorysize:1024","region:sa-east-1","resource:integration-tests-extension-XXXXXX-without-ddlambda-go","service:integration-tests-service","taga:valuea","tagb:valueb","tagc:valuec","tagd:valued","version:integration-tests-version"],"dogsketches":[{"ts":XXX,"cnt":1,"min":XXX,"max":XXX,"avg":XXX,"sum":XXX,"k":[XXX],"n":[1]}]} +[sketch] {"metric":"aws.lambda.enhanced.billed_duration","distributions":null,"tags":["account_id:601427279990","architecture:x86_64","aws_account:601427279990","cold_start:true","dd_extension_version:123","env:integration-tests-env","function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-XXXXXX-without-ddlambda-go","functionname:integration-tests-extension-XXXXXX-without-ddlambda-go","memorysize:1024","region:sa-east-1","resource:integration-tests-extension-XXXXXX-without-ddlambda-go","service:integration-tests-service","taga:valuea","tagb:valueb","tagc:valuec","tagd:valued","version:integration-tests-version"],"dogsketches":[{"ts":XXX,"cnt":1,"min":XXX,"max":XXX,"avg":XXX,"sum":XXX,"k":[XXX],"n":[1]}]} +[sketch] {"metric":"aws.lambda.enhanced.duration","distributions":null,"tags":["account_id:601427279990","architecture:x86_64","aws_account:601427279990","cold_start:true","dd_extension_version:123","env:integration-tests-env","function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-XXXXXX-without-ddlambda-go","functionname:integration-tests-extension-XXXXXX-without-ddlambda-go","memorysize:1024","region:sa-east-1","resource:integration-tests-extension-XXXXXX-without-ddlambda-go","service:integration-tests-service","taga:valuea","tagb:valueb","tagc:valuec","tagd:valued","version:integration-tests-version"],"dogsketches":[{"ts":XXX,"cnt":1,"min":XXX,"max":XXX,"avg":XXX,"sum":XXX,"k":[XXX],"n":[1]}]} +[sketch] {"metric":"aws.lambda.enhanced.estimated_cost","distributions":null,"tags":["account_id:601427279990","architecture:x86_64","aws_account:601427279990","cold_start:true","dd_extension_version:123","env:integration-tests-env","function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-XXXXXX-without-ddlambda-go","functionname:integration-tests-extension-XXXXXX-without-ddlambda-go","memorysize:1024","region:sa-east-1","resource:integration-tests-extension-XXXXXX-without-ddlambda-go","service:integration-tests-service","taga:valuea","tagb:valueb","tagc:valuec","tagd:valued","version:integration-tests-version"],"dogsketches":[{"ts":XXX,"cnt":1,"min":XXX,"max":XXX,"avg":XXX,"sum":XXX,"k":[XXX],"n":[1]}]} +[sketch] {"metric":"aws.lambda.enhanced.init_duration","distributions":null,"tags":["account_id:601427279990","architecture:x86_64","aws_account:601427279990","cold_start:true","dd_extension_version:123","env:integration-tests-env","function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-XXXXXX-without-ddlambda-go","functionname:integration-tests-extension-XXXXXX-without-ddlambda-go","memorysize:1024","region:sa-east-1","resource:integration-tests-extension-XXXXXX-without-ddlambda-go","service:integration-tests-service","taga:valuea","tagb:valueb","tagc:valuec","tagd:valued","version:integration-tests-version"],"dogsketches":[{"ts":XXX,"cnt":1,"min":XXX,"max":XXX,"avg":XXX,"sum":XXX,"k":[XXX],"n":[1]}]} +[sketch] {"metric":"aws.lambda.enhanced.invocations","distributions":null,"tags":["account_id:601427279990","architecture:x86_64","aws_account:601427279990","cold_start:false","datadog_lambda:vX.X.X","dd_extension_version:123","dd_lambda_layer:datadog-go1.16.4","env:integration-tests-env","function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-XXXXXX-without-ddlambda-go","functionname:integration-tests-extension-XXXXXX-without-ddlambda-go","memorysize:1024","region:sa-east-1","resource:integration-tests-extension-XXXXXX-without-ddlambda-go","service:integration-tests-service","taga:valuea","tagb:valueb","tagc:valuec","tagd:valued","version:integration-tests-version"],"dogsketches":[{"ts":XXX,"cnt":1,"min":1,"max":1,"avg":1,"sum":1,"k":[XXX],"n":[1]}]} +[sketch] {"metric":"aws.lambda.enhanced.runtime_duration","distributions":null,"tags":["account_id:601427279990","architecture:x86_64","aws_account:601427279990","cold_start:false","dd_extension_version:123","env:integration-tests-env","function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-XXXXXX-without-ddlambda-go","functionname:integration-tests-extension-XXXXXX-without-ddlambda-go","memorysize:1024","region:sa-east-1","resource:integration-tests-extension-XXXXXX-without-ddlambda-go","service:integration-tests-service","taga:valuea","tagb:valueb","tagc:valuec","tagd:valued","version:integration-tests-version"],"dogsketches":[{"ts":XXX,"cnt":1,"min":XXX,"max":XXX,"avg":XXX,"sum":XXX,"k":[XXX],"n":[1]}]} +[log] {"message":{"message":"[sketch] {\"metric\":\"aws.lambda.enhanced.runtime_duration\",\"distributions\":null,\"tags\":[\"account_id:601427279990\",\"architecture:x86_64\",\"aws_account:601427279990\",\"cold_start:true\",\"dd_extension_version:123\",\"env:integration-tests-env\",\"function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-XXXXXX-without-ddlambda-go\",\"functionname:integration-tests-extension-XXXXXX-without-ddlambda-go\",\"memorysize:1024\",\"region:sa-east-1\",\"resource:integration-tests-extension-XXXXXX-without-ddlambda-go\",\"service:integration-tests-service\",\"taga:valuea\",\"tagb:valueb\",\"tagc:valuec\",\"tagd:valued\",\"version:integration-tests-version\"],\"dogsketches\":[{\"ts\":1636407910,\"cnt\":1,\"min\":326,\"max\":326,\"avg\":326,\"sum\":326,\"k\":[1711],\"n\":[1]}]} \n","lambda":{"arn":"arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-XXXXXX-without-ddlambda-go"}},"status":"info","timestamp":TIMESTAMP,"hostname":"arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-XXXXXX-without-ddlambda-go","service":"integration-tests-service","ddsource":"lambda","ddtags":"account_id:601427279990,account_id:601427279990,account_id:601427279990,architecture:x86_64,architecture:x86_64,architecture:x86_64,aws_account:601427279990,aws_account:601427279990,aws_account:601427279990,dd_extension_version:123,dd_extension_version:123,dd_extension_version:123,env:integration-tests-env,env:integration-tests-env,env:integration-tests-env,function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-XXXXXX-without-ddlambda-go,function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-XXXXXX-without-ddlambda-go,function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-XXXXXX-without-ddlambda-go,functionname:integration-tests-extension-XXXXXX-without-ddlambda-go,functionname:integration-tests-extension-XXXXXX-without-ddlambda-go,functionname:integration-tests-extension-XXXXXX-without-ddlambda-go,memorysize:1024,memorysize:1024,memorysize:1024,region:sa-east-1,region:sa-east-1,region:sa-east-1,resource:integration-tests-extension-XXXXXX-without-ddlambda-go,resource:integration-tests-extension-XXXXXX-without-ddlambda-go,resource:integration-tests-extension-XXXXXX-without-ddlambda-go,service:integration-tests-service,service:integration-tests-service,service:integration-tests-service,taga:valuea,taga:valuea,taga:valuea,tagb:valueb,tagb:valueb,tagb:valueb,tagc:valuec,tagc:valuec,tagc:valuec,tagd:valued,tagd:valued,tagd:valued,version:integration-tests-version,version:integration-tests-version,version:integration-tests-version"} +[log] {"message":{"message":"[sketch] {\"metric\":\"aws.lambda.enhanced.invocations\",\"distributions\":null,\"tags\":[\"account_id:601427279990\",\"architecture:x86_64\",\"aws_account:601427279990\",\"cold_start:true\",\"datadog_lambda:vX.X.X\",\"dd_extension_version:123\",\"dd_lambda_layer:datadog-go1.16.4\",\"env:integration-tests-env\",\"function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-XXXXXX-without-ddlambda-go\",\"functionname:integration-tests-extension-XXXXXX-without-ddlambda-go\",\"memorysize:1024\",\"region:sa-east-1\",\"resource:integration-tests-extension-XXXXXX-without-ddlambda-go\",\"service:integration-tests-service\",\"taga:valuea\",\"tagb:valueb\",\"tagc:valuec\",\"tagd:valued\",\"version:integration-tests-version\"],\"dogsketches\":[{\"ts\":1636407910,\"cnt\":1,\"min\":1,\"max\":1,\"avg\":1,\"sum\":1,\"k\":[1338],\"n\":[1]}]} \n","lambda":{"arn":"arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-XXXXXX-without-ddlambda-go"}},"status":"info","timestamp":TIMESTAMP,"hostname":"arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-XXXXXX-without-ddlambda-go","service":"integration-tests-service","ddsource":"lambda","ddtags":"account_id:601427279990,account_id:601427279990,account_id:601427279990,architecture:x86_64,architecture:x86_64,architecture:x86_64,aws_account:601427279990,aws_account:601427279990,aws_account:601427279990,dd_extension_version:123,dd_extension_version:123,dd_extension_version:123,env:integration-tests-env,env:integration-tests-env,env:integration-tests-env,function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-XXXXXX-without-ddlambda-go,function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-XXXXXX-without-ddlambda-go,function_arn:arn:aws:lambda:sa-east-1:601427279990:function:integration-tests-extension-XXXXXX-without-ddlambda-go,functionname:integration-tests-extension-XXXXXX-without-ddlambda-go,functionname:integration-tests-extension-XXXXXX-without-ddlambda-go,functionname:integration-tests-extension-XXXXXX-without-ddlambda-go,memorysize:1024,memorysize:1024,memorysize:1024,region:sa-east-1,region:sa-east-1,region:sa-east-1,resource:integration-tests-extension-XXXXXX-without-ddlambda-go,resource:integration-tests-extension-XXXXXX-without-ddlambda-go,resource:integration-tests-extension-XXXXXX-without-ddlambda-go,service:integration-tests-service,service:integration-tests-service,service:integration-tests-service,taga:valuea,taga:valuea,taga:valuea,tagb:valueb,tagb:valueb,tagb:valueb,tagc:valuec,tagc:valuec,tagc:valuec,tagd:valued,tagd:valued,tagd:valued,version:integration-tests-version,version:integration-tests-version,version:integration-tests-version"} +[log] {"message":{"message":"END XXX"}} +[log] {"message":{"message":"REPORT XXX"}} diff --git a/integration_tests/src/metric.js b/integration_tests/src/metric.js index 151050cc..c7521fc7 100644 --- a/integration_tests/src/metric.js +++ b/integration_tests/src/metric.js @@ -26,6 +26,11 @@ async function myTimeoutHandler(event, context) { }; } +async function myErrorHandler(event, context) { + throw new Error("Something went wrong"); +} + module.exports.enhancedMetricTest = datadog(myHandler); module.exports.noEnhancedMetricTest = datadog(myHandler); -module.exports.timeoutMetricTest = datadog(myTimeoutHandler); \ No newline at end of file +module.exports.timeoutMetricTest = datadog(myTimeoutHandler); +module.exports.errorTest = datadog(myErrorHandler); \ No newline at end of file diff --git a/integration_tests/src/metricPython.py b/integration_tests/src/metricPython.py index 9408eb2a..0f685bbf 100644 --- a/integration_tests/src/metricPython.py +++ b/integration_tests/src/metricPython.py @@ -24,3 +24,6 @@ def timeout(event, context): "statusCode": 200, "body": "ok" } + +def error(event, context): + raise Exception