From 768ef6c75eabc49cd400568994d666a9b9f1f4f3 Mon Sep 17 00:00:00 2001 From: "chris.agocs" Date: Fri, 10 Dec 2021 14:35:44 -0500 Subject: [PATCH 1/4] Bump log4j and update snapshots --- build.gradle | 6 +++--- .../snapshots/logs/helloApiGatewayV2_Java11.log | 14 +++++++------- .../snapshots/logs/helloApiGatewayV2_Java8.log | 14 +++++++------- .../snapshots/logs/helloApiGateway_Java11.log | 14 +++++++------- .../snapshots/logs/helloApiGateway_Java8.log | 14 +++++++------- .../testfunctions/snapshots/logs/hello_Java11.log | 14 +++++++------- tests/testfunctions/snapshots/logs/hello_Java8.log | 14 +++++++------- 7 files changed, 45 insertions(+), 45 deletions(-) diff --git a/build.gradle b/build.gradle index 8405fb2..baa01e5 100644 --- a/build.gradle +++ b/build.gradle @@ -38,8 +38,8 @@ dependencies { // Use JUnit test framework testImplementation 'junit:junit:4.12' - testImplementation 'org.apache.logging.log4j:log4j-api:2.13.3' - testImplementation 'org.apache.logging.log4j:log4j-core:2.13.3' + testImplementation 'org.apache.logging.log4j:log4j-api:2.15.0' + testImplementation 'org.apache.logging.log4j:log4j-core:2.15.0' testImplementation 'com.github.stefanbirkner:system-rules:1.19.0' testImplementation 'com.amazonaws:aws-java-sdk-kinesis:1.11.980' @@ -49,7 +49,7 @@ sourceCompatibility = 1.8 targetCompatibility = 1.8 group = 'com.datadoghq' -version= '0.3.2' +version= '0.3.3' archivesBaseName = "datadog-lambda-java" description = "datadog-lambda-java" diff --git a/tests/testfunctions/snapshots/logs/helloApiGatewayV2_Java11.log b/tests/testfunctions/snapshots/logs/helloApiGatewayV2_Java11.log index abdea89..a18a2d6 100644 --- a/tests/testfunctions/snapshots/logs/helloApiGatewayV2_Java11.log +++ b/tests/testfunctions/snapshots/logs/helloApiGatewayV2_Java11.log @@ -12,13 +12,13 @@ REPORT RequestId: XXXX Duration: XXXX ms Billed Duration: XXXX ms Memory Size: 1 START RequestId: XXXX Version: $LATEST START RequestId: XXXX Version: $LATEST START RequestId: XXXX Version: $LATEST -[dd.trace 1970-01-01 00:00:00 +0000] [dd-task-scheduler] INFO datadog.trace.agent.core.StatusLogger - DATADOG TRACER CONFIGURATION {"version":"0.80.0~a7d9f70a4","os_name":"Linux","os_version":"4.14.231-180.360.amzn2.x86_64","architecture":"amd64","lang":"jvm","lang_version":"11.0.11","jvm_vendor":"Amazon.com Inc.","jvm_version":"11.0.11+9-LTS","java_class_version":"55.0","http_nonProxyHosts":"null","http_proxyHost":"null","enabled":true,"service":"lambdainternal.AWSLambda","agent_url":"http://localhost:8126","agent_error":true,"debug":false,"analytics_enabled":false,"sampling_rules":[{},{}],"priority_sampling_enabled":true,"logs_correlation_enabled":true,"profiling_enabled":false,"dd_version":"0.80.0~a7d9f70a4","health_checks_enabled":true,"configuration_file":"no config file present","runtime_id":"00000000-0000-0000-0000-000000000000","logging_settings":{"levelInBrackets":false,"dateTimeFormat":"'[dd.trace 'yyyy-MM-dd HH:mm:ss:SSS Z']'","logFile":"System.err","configurationFile":"simplelogger.properties","showShortLogName":false,"showDateTime":true,"showLogName":true,"showThreadName":true,"defaultLogLevel":"INFO","warnLevelString":"WARN","embedException":false}} +[dd.trace 1970-01-01 00:00:00 +0000] [dd-task-scheduler] INFO datadog.trace.agent.core.StatusLogger - DATADOG TRACER CONFIGURATION {"version":"0.80.0~a7d9f70a4","os_name":"Linux","os_version":"4.14.246-198.474.amzn2.x86_64","architecture":"amd64","lang":"jvm","lang_version":"11.0.12","jvm_vendor":"Amazon.com Inc.","jvm_version":"11.0.12+7-LTS","java_class_version":"55.0","http_nonProxyHosts":"null","http_proxyHost":"null","enabled":true,"service":"lambdainternal.AWSLambda","agent_url":"http://localhost:8126","agent_error":true,"debug":false,"analytics_enabled":false,"sampling_rules":[{},{}],"priority_sampling_enabled":true,"logs_correlation_enabled":true,"profiling_enabled":false,"dd_version":"0.80.0~a7d9f70a4","health_checks_enabled":true,"configuration_file":"no config file present","runtime_id":"00000000-0000-0000-0000-000000000000","logging_settings":{"levelInBrackets":false,"dateTimeFormat":"'[dd.trace 'yyyy-MM-dd HH:mm:ss:SSS Z']'","logFile":"System.err","configurationFile":"simplelogger.properties","showShortLogName":false,"showDateTime":true,"showLogName":true,"showThreadName":true,"defaultLogLevel":"INFO","warnLevelString":"WARN","embedException":false}} [dd.trace 1970-01-01 00:00:00 +0000] [main] INFO datadog.trace.agent.common.writer.WriterFactory - Detected serverless environment. Using PrintingWriter {"level": "ERROR", "message": "datadog: The request passed to DDLambda contained null headers. Are you sure the handler signature matches the event provided?"} {"level": "ERROR", "message": "datadog: The request passed to DDLambda contained null headers. Are you sure the handler signature matches the event provided?"} -{"m": "aws.lambda.enhanced.invocations", "v": 1.0, "t": ["memorysize:1024", "account_id:XXXX", "resource:Java-integration-test-dev-helloApiGatewayV2_Java11", "functionname:Java-integration-test-dev-helloApiGatewayV2_Java11", "region:sa-east-1", "datadog_lambda:0.3.2", "cold_start:false", "runtime:xxxx"], "e": 1234567890} -{"m": "aws.lambda.enhanced.invocations", "v": 1.0, "t": ["memorysize:1024", "account_id:XXXX", "resource:Java-integration-test-dev-helloApiGatewayV2_Java11", "functionname:Java-integration-test-dev-helloApiGatewayV2_Java11", "region:sa-east-1", "datadog_lambda:0.3.2", "cold_start:false", "runtime:xxxx"], "e": 1234567890} -{"m": "aws.lambda.enhanced.invocations", "v": 1.0, "t": ["memorysize:1024", "account_id:XXXX", "resource:Java-integration-test-dev-helloApiGatewayV2_Java11", "functionname:Java-integration-test-dev-helloApiGatewayV2_Java11", "region:sa-east-1", "datadog_lambda:0.3.2", "cold_start:true", "runtime:xxxx"], "e": 1234567890} -{"traces": [[{"service": "aws.lambda", "name": "aws.lambda", "resource": "Java-integration-test-dev-helloApiGatewayV2_Java11", "trace_id": "xxxxx", "span_id": "xxxxx", "parent_id": "0", "start": 1234567890, "duration": 12345, "error": 0, "metrics": {"_dd.agent_psr": 1.0}, "meta": {"functionname": "java-integration-test-dev-helloapigatewayv2_java11", "function_arn": "arn:aws:lambda:sa-east-1:123456789012:function:java-integration-test-dev-helloapigatewayv2_java11", "runtime-id": "00000000-0000-0000-0000-000000000000", "language": "jvm", "thread.name": "main", "request_id": "00000000-0000-0000-0000-000000000000", "datadog_lambda": "0.3.2", "thread.id": "1", "cold_start": "false", "resource_names": "Java-integration-test-dev-helloApiGatewayV2_Java11", "function_version": "$LATEST"}}]]} -{"traces": [[{"service": "aws.lambda", "name": "aws.lambda", "resource": "Java-integration-test-dev-helloApiGatewayV2_Java11", "trace_id": "xxxxx", "span_id": "xxxxx", "parent_id": "0", "start": 1234567890, "duration": 12345, "error": 0, "metrics": {"_dd.agent_psr": 1.0}, "meta": {"functionname": "java-integration-test-dev-helloapigatewayv2_java11", "function_arn": "arn:aws:lambda:sa-east-1:123456789012:function:java-integration-test-dev-helloapigatewayv2_java11", "runtime-id": "00000000-0000-0000-0000-000000000000", "language": "jvm", "thread.name": "main", "request_id": "00000000-0000-0000-0000-000000000000", "datadog_lambda": "0.3.2", "thread.id": "1", "cold_start": "false", "resource_names": "Java-integration-test-dev-helloApiGatewayV2_Java11", "function_version": "$LATEST"}}]]} -{"traces": [[{"service": "aws.lambda", "name": "aws.lambda", "resource": "Java-integration-test-dev-helloApiGatewayV2_Java11", "trace_id": "xxxxx", "span_id": "xxxxx", "parent_id": "0", "start": 1234567890, "duration": 12345, "error": 0, "metrics": {"_dd.agent_psr": 1.0}, "meta": {"functionname": "java-integration-test-dev-helloapigatewayv2_java11", "function_arn": "arn:aws:lambda:sa-east-1:123456789012:function:java-integration-test-dev-helloapigatewayv2_java11", "runtime-id": "00000000-0000-0000-0000-000000000000", "language": "jvm", "thread.name": "main", "request_id": "00000000-0000-0000-0000-000000000000", "datadog_lambda": "0.3.2", "thread.id": "1", "cold_start": "true", "resource_names": "Java-integration-test-dev-helloApiGatewayV2_Java11", "function_version": "$LATEST"}}]]} +{"m": "aws.lambda.enhanced.invocations", "v": 1.0, "t": ["memorysize:1024", "account_id:XXXX", "resource:Java-integration-test-dev-helloApiGatewayV2_Java11", "functionname:Java-integration-test-dev-helloApiGatewayV2_Java11", "region:sa-east-1", "datadog_lambda:0.3.3", "cold_start:false", "runtime:xxxx"], "e": 1234567890} +{"m": "aws.lambda.enhanced.invocations", "v": 1.0, "t": ["memorysize:1024", "account_id:XXXX", "resource:Java-integration-test-dev-helloApiGatewayV2_Java11", "functionname:Java-integration-test-dev-helloApiGatewayV2_Java11", "region:sa-east-1", "datadog_lambda:0.3.3", "cold_start:false", "runtime:xxxx"], "e": 1234567890} +{"m": "aws.lambda.enhanced.invocations", "v": 1.0, "t": ["memorysize:1024", "account_id:XXXX", "resource:Java-integration-test-dev-helloApiGatewayV2_Java11", "functionname:Java-integration-test-dev-helloApiGatewayV2_Java11", "region:sa-east-1", "datadog_lambda:0.3.3", "cold_start:true", "runtime:xxxx"], "e": 1234567890} +{"traces": [[{"service": "aws.lambda", "name": "aws.lambda", "resource": "Java-integration-test-dev-helloApiGatewayV2_Java11", "trace_id": "xxxxx", "span_id": "xxxxx", "parent_id": "0", "start": 1234567890, "duration": 12345, "error": 0, "metrics": {"_dd.agent_psr": 1.0}, "meta": {"functionname": "java-integration-test-dev-helloapigatewayv2_java11", "function_arn": "arn:aws:lambda:sa-east-1:123456789012:function:java-integration-test-dev-helloapigatewayv2_java11", "runtime-id": "00000000-0000-0000-0000-000000000000", "language": "jvm", "thread.name": "main", "request_id": "00000000-0000-0000-0000-000000000000", "datadog_lambda": "0.3.3", "thread.id": "1", "cold_start": "false", "resource_names": "Java-integration-test-dev-helloApiGatewayV2_Java11", "function_version": "$LATEST"}}]]} +{"traces": [[{"service": "aws.lambda", "name": "aws.lambda", "resource": "Java-integration-test-dev-helloApiGatewayV2_Java11", "trace_id": "xxxxx", "span_id": "xxxxx", "parent_id": "0", "start": 1234567890, "duration": 12345, "error": 0, "metrics": {"_dd.agent_psr": 1.0}, "meta": {"functionname": "java-integration-test-dev-helloapigatewayv2_java11", "function_arn": "arn:aws:lambda:sa-east-1:123456789012:function:java-integration-test-dev-helloapigatewayv2_java11", "runtime-id": "00000000-0000-0000-0000-000000000000", "language": "jvm", "thread.name": "main", "request_id": "00000000-0000-0000-0000-000000000000", "datadog_lambda": "0.3.3", "thread.id": "1", "cold_start": "false", "resource_names": "Java-integration-test-dev-helloApiGatewayV2_Java11", "function_version": "$LATEST"}}]]} +{"traces": [[{"service": "aws.lambda", "name": "aws.lambda", "resource": "Java-integration-test-dev-helloApiGatewayV2_Java11", "trace_id": "xxxxx", "span_id": "xxxxx", "parent_id": "0", "start": 1234567890, "duration": 12345, "error": 0, "metrics": {"_dd.agent_psr": 1.0}, "meta": {"functionname": "java-integration-test-dev-helloapigatewayv2_java11", "function_arn": "arn:aws:lambda:sa-east-1:123456789012:function:java-integration-test-dev-helloapigatewayv2_java11", "runtime-id": "00000000-0000-0000-0000-000000000000", "language": "jvm", "thread.name": "main", "request_id": "00000000-0000-0000-0000-000000000000", "datadog_lambda": "0.3.3", "thread.id": "1", "cold_start": "true", "resource_names": "Java-integration-test-dev-helloApiGatewayV2_Java11", "function_version": "$LATEST"}}]]} diff --git a/tests/testfunctions/snapshots/logs/helloApiGatewayV2_Java8.log b/tests/testfunctions/snapshots/logs/helloApiGatewayV2_Java8.log index b0b6a51..31cd815 100644 --- a/tests/testfunctions/snapshots/logs/helloApiGatewayV2_Java8.log +++ b/tests/testfunctions/snapshots/logs/helloApiGatewayV2_Java8.log @@ -11,13 +11,13 @@ REPORT RequestId: XXXX Duration: XXXX ms Billed Duration: XXXX ms Memory Size: 1 START RequestId: XXXX Version: $LATEST START RequestId: XXXX Version: $LATEST START RequestId: XXXX Version: $LATEST -[dd.trace 1970-01-01 00:00:00 +0000] [dd-task-scheduler] INFO datadog.trace.agent.core.StatusLogger - DATADOG TRACER CONFIGURATION {"version":"0.80.0~a7d9f70a4","os_name":"Linux","os_version":"4.14.231-180.360.amzn2.x86_64","architecture":"amd64","lang":"jvm","lang_version":"1.8.0_292","jvm_vendor":"Amazon.com Inc.","jvm_version":"25.292-b10","java_class_version":"52.0","http_nonProxyHosts":"null","http_proxyHost":"null","enabled":true,"service":"lambdainternal.AWSLambda","agent_url":"http://localhost:8126","agent_error":true,"debug":false,"analytics_enabled":false,"sampling_rules":[{},{}],"priority_sampling_enabled":true,"logs_correlation_enabled":true,"profiling_enabled":false,"dd_version":"0.80.0~a7d9f70a4","health_checks_enabled":true,"configuration_file":"no config file present","runtime_id":"00000000-0000-0000-0000-000000000000","logging_settings":{"levelInBrackets":false,"dateTimeFormat":"'[dd.trace 'yyyy-MM-dd HH:mm:ss:SSS Z']'","logFile":"System.err","configurationFile":"simplelogger.properties","showShortLogName":false,"showDateTime":true,"showLogName":true,"showThreadName":true,"defaultLogLevel":"INFO","warnLevelString":"WARN","embedException":false}} +[dd.trace 1970-01-01 00:00:00 +0000] [dd-task-scheduler] INFO datadog.trace.agent.core.StatusLogger - DATADOG TRACER CONFIGURATION {"version":"0.80.0~a7d9f70a4","os_name":"Linux","os_version":"4.14.246-198.474.amzn2.x86_64","architecture":"amd64","lang":"jvm","lang_version":"1.8.0_312","jvm_vendor":"Amazon.com Inc.","jvm_version":"25.312-b07","java_class_version":"52.0","http_nonProxyHosts":"null","http_proxyHost":"null","enabled":true,"service":"lambdainternal.AWSLambda","agent_url":"http://localhost:8126","agent_error":true,"debug":false,"analytics_enabled":false,"sampling_rules":[{},{}],"priority_sampling_enabled":true,"logs_correlation_enabled":true,"profiling_enabled":false,"dd_version":"0.80.0~a7d9f70a4","health_checks_enabled":true,"configuration_file":"no config file present","runtime_id":"00000000-0000-0000-0000-000000000000","logging_settings":{"levelInBrackets":false,"dateTimeFormat":"'[dd.trace 'yyyy-MM-dd HH:mm:ss:SSS Z']'","logFile":"System.err","configurationFile":"simplelogger.properties","showShortLogName":false,"showDateTime":true,"showLogName":true,"showThreadName":true,"defaultLogLevel":"INFO","warnLevelString":"WARN","embedException":false}} [dd.trace 1970-01-01 00:00:00 +0000] [main] INFO datadog.trace.agent.common.writer.WriterFactory - Detected serverless environment. Using PrintingWriter {"level": "ERROR", "message": "datadog: The request passed to DDLambda contained null headers. Are you sure the handler signature matches the event provided?"} {"level": "ERROR", "message": "datadog: The request passed to DDLambda contained null headers. Are you sure the handler signature matches the event provided?"} -{"m": "aws.lambda.enhanced.invocations", "v": 1.0, "t": ["memorysize:1024", "account_id:XXXX", "resource:Java-integration-test-dev-helloApiGatewayV2_Java8", "functionname:Java-integration-test-dev-helloApiGatewayV2_Java8", "region:sa-east-1", "datadog_lambda:0.3.2", "cold_start:false", "runtime:xxxx"], "e": 1234567890} -{"m": "aws.lambda.enhanced.invocations", "v": 1.0, "t": ["memorysize:1024", "account_id:XXXX", "resource:Java-integration-test-dev-helloApiGatewayV2_Java8", "functionname:Java-integration-test-dev-helloApiGatewayV2_Java8", "region:sa-east-1", "datadog_lambda:0.3.2", "cold_start:false", "runtime:xxxx"], "e": 1234567890} -{"m": "aws.lambda.enhanced.invocations", "v": 1.0, "t": ["memorysize:1024", "account_id:XXXX", "resource:Java-integration-test-dev-helloApiGatewayV2_Java8", "functionname:Java-integration-test-dev-helloApiGatewayV2_Java8", "region:sa-east-1", "datadog_lambda:0.3.2", "cold_start:true", "runtime:xxxx"], "e": 1234567890} -{"traces": [[{"service": "aws.lambda", "name": "aws.lambda", "resource": "Java-integration-test-dev-helloApiGatewayV2_Java8", "trace_id": "xxxxx", "span_id": "xxxxx", "parent_id": "0", "start": 1234567890, "duration": 12345, "error": 0, "metrics": {"_dd.agent_psr": 1.0}, "meta": {"functionname": "java-integration-test-dev-helloapigatewayv2_java8", "function_arn": "arn:aws:lambda:sa-east-1:123456789012:function:java-integration-test-dev-helloapigatewayv2_java8", "runtime-id": "00000000-0000-0000-0000-000000000000", "language": "jvm", "thread.name": "main", "request_id": "00000000-0000-0000-0000-000000000000", "datadog_lambda": "0.3.2", "thread.id": "1", "cold_start": "false", "resource_names": "Java-integration-test-dev-helloApiGatewayV2_Java8", "function_version": "$LATEST"}}]]} -{"traces": [[{"service": "aws.lambda", "name": "aws.lambda", "resource": "Java-integration-test-dev-helloApiGatewayV2_Java8", "trace_id": "xxxxx", "span_id": "xxxxx", "parent_id": "0", "start": 1234567890, "duration": 12345, "error": 0, "metrics": {"_dd.agent_psr": 1.0}, "meta": {"functionname": "java-integration-test-dev-helloapigatewayv2_java8", "function_arn": "arn:aws:lambda:sa-east-1:123456789012:function:java-integration-test-dev-helloapigatewayv2_java8", "runtime-id": "00000000-0000-0000-0000-000000000000", "language": "jvm", "thread.name": "main", "request_id": "00000000-0000-0000-0000-000000000000", "datadog_lambda": "0.3.2", "thread.id": "1", "cold_start": "false", "resource_names": "Java-integration-test-dev-helloApiGatewayV2_Java8", "function_version": "$LATEST"}}]]} -{"traces": [[{"service": "aws.lambda", "name": "aws.lambda", "resource": "Java-integration-test-dev-helloApiGatewayV2_Java8", "trace_id": "xxxxx", "span_id": "xxxxx", "parent_id": "0", "start": 1234567890, "duration": 12345, "error": 0, "metrics": {"_dd.agent_psr": 1.0}, "meta": {"functionname": "java-integration-test-dev-helloapigatewayv2_java8", "function_arn": "arn:aws:lambda:sa-east-1:123456789012:function:java-integration-test-dev-helloapigatewayv2_java8", "runtime-id": "00000000-0000-0000-0000-000000000000", "language": "jvm", "thread.name": "main", "request_id": "00000000-0000-0000-0000-000000000000", "datadog_lambda": "0.3.2", "thread.id": "1", "cold_start": "true", "resource_names": "Java-integration-test-dev-helloApiGatewayV2_Java8", "function_version": "$LATEST"}}]]} +{"m": "aws.lambda.enhanced.invocations", "v": 1.0, "t": ["memorysize:1024", "account_id:XXXX", "resource:Java-integration-test-dev-helloApiGatewayV2_Java8", "functionname:Java-integration-test-dev-helloApiGatewayV2_Java8", "region:sa-east-1", "datadog_lambda:0.3.3", "cold_start:false", "runtime:xxxx"], "e": 1234567890} +{"m": "aws.lambda.enhanced.invocations", "v": 1.0, "t": ["memorysize:1024", "account_id:XXXX", "resource:Java-integration-test-dev-helloApiGatewayV2_Java8", "functionname:Java-integration-test-dev-helloApiGatewayV2_Java8", "region:sa-east-1", "datadog_lambda:0.3.3", "cold_start:false", "runtime:xxxx"], "e": 1234567890} +{"m": "aws.lambda.enhanced.invocations", "v": 1.0, "t": ["memorysize:1024", "account_id:XXXX", "resource:Java-integration-test-dev-helloApiGatewayV2_Java8", "functionname:Java-integration-test-dev-helloApiGatewayV2_Java8", "region:sa-east-1", "datadog_lambda:0.3.3", "cold_start:true", "runtime:xxxx"], "e": 1234567890} +{"traces": [[{"service": "aws.lambda", "name": "aws.lambda", "resource": "Java-integration-test-dev-helloApiGatewayV2_Java8", "trace_id": "xxxxx", "span_id": "xxxxx", "parent_id": "0", "start": 1234567890, "duration": 12345, "error": 0, "metrics": {"_dd.agent_psr": 1.0}, "meta": {"functionname": "java-integration-test-dev-helloapigatewayv2_java8", "function_arn": "arn:aws:lambda:sa-east-1:123456789012:function:java-integration-test-dev-helloapigatewayv2_java8", "runtime-id": "00000000-0000-0000-0000-000000000000", "language": "jvm", "thread.name": "main", "request_id": "00000000-0000-0000-0000-000000000000", "datadog_lambda": "0.3.3", "thread.id": "1", "cold_start": "false", "resource_names": "Java-integration-test-dev-helloApiGatewayV2_Java8", "function_version": "$LATEST"}}]]} +{"traces": [[{"service": "aws.lambda", "name": "aws.lambda", "resource": "Java-integration-test-dev-helloApiGatewayV2_Java8", "trace_id": "xxxxx", "span_id": "xxxxx", "parent_id": "0", "start": 1234567890, "duration": 12345, "error": 0, "metrics": {"_dd.agent_psr": 1.0}, "meta": {"functionname": "java-integration-test-dev-helloapigatewayv2_java8", "function_arn": "arn:aws:lambda:sa-east-1:123456789012:function:java-integration-test-dev-helloapigatewayv2_java8", "runtime-id": "00000000-0000-0000-0000-000000000000", "language": "jvm", "thread.name": "main", "request_id": "00000000-0000-0000-0000-000000000000", "datadog_lambda": "0.3.3", "thread.id": "1", "cold_start": "false", "resource_names": "Java-integration-test-dev-helloApiGatewayV2_Java8", "function_version": "$LATEST"}}]]} +{"traces": [[{"service": "aws.lambda", "name": "aws.lambda", "resource": "Java-integration-test-dev-helloApiGatewayV2_Java8", "trace_id": "xxxxx", "span_id": "xxxxx", "parent_id": "0", "start": 1234567890, "duration": 12345, "error": 0, "metrics": {"_dd.agent_psr": 1.0}, "meta": {"functionname": "java-integration-test-dev-helloapigatewayv2_java8", "function_arn": "arn:aws:lambda:sa-east-1:123456789012:function:java-integration-test-dev-helloapigatewayv2_java8", "runtime-id": "00000000-0000-0000-0000-000000000000", "language": "jvm", "thread.name": "main", "request_id": "00000000-0000-0000-0000-000000000000", "datadog_lambda": "0.3.3", "thread.id": "1", "cold_start": "true", "resource_names": "Java-integration-test-dev-helloApiGatewayV2_Java8", "function_version": "$LATEST"}}]]} diff --git a/tests/testfunctions/snapshots/logs/helloApiGateway_Java11.log b/tests/testfunctions/snapshots/logs/helloApiGateway_Java11.log index 1b463e9..571c05f 100644 --- a/tests/testfunctions/snapshots/logs/helloApiGateway_Java11.log +++ b/tests/testfunctions/snapshots/logs/helloApiGateway_Java11.log @@ -12,13 +12,13 @@ REPORT RequestId: XXXX Duration: XXXX ms Billed Duration: XXXX ms Memory Size: 1 START RequestId: XXXX Version: $LATEST START RequestId: XXXX Version: $LATEST START RequestId: XXXX Version: $LATEST -[dd.trace 1970-01-01 00:00:00 +0000] [dd-task-scheduler] INFO datadog.trace.agent.core.StatusLogger - DATADOG TRACER CONFIGURATION {"version":"0.80.0~a7d9f70a4","os_name":"Linux","os_version":"4.14.231-180.360.amzn2.x86_64","architecture":"amd64","lang":"jvm","lang_version":"11.0.11","jvm_vendor":"Amazon.com Inc.","jvm_version":"11.0.11+9-LTS","java_class_version":"55.0","http_nonProxyHosts":"null","http_proxyHost":"null","enabled":true,"service":"lambdainternal.AWSLambda","agent_url":"http://localhost:8126","agent_error":true,"debug":false,"analytics_enabled":false,"sampling_rules":[{},{}],"priority_sampling_enabled":true,"logs_correlation_enabled":true,"profiling_enabled":false,"dd_version":"0.80.0~a7d9f70a4","health_checks_enabled":true,"configuration_file":"no config file present","runtime_id":"00000000-0000-0000-0000-000000000000","logging_settings":{"levelInBrackets":false,"dateTimeFormat":"'[dd.trace 'yyyy-MM-dd HH:mm:ss:SSS Z']'","logFile":"System.err","configurationFile":"simplelogger.properties","showShortLogName":false,"showDateTime":true,"showLogName":true,"showThreadName":true,"defaultLogLevel":"INFO","warnLevelString":"WARN","embedException":false}} +[dd.trace 1970-01-01 00:00:00 +0000] [dd-task-scheduler] INFO datadog.trace.agent.core.StatusLogger - DATADOG TRACER CONFIGURATION {"version":"0.80.0~a7d9f70a4","os_name":"Linux","os_version":"4.14.246-198.474.amzn2.x86_64","architecture":"amd64","lang":"jvm","lang_version":"11.0.12","jvm_vendor":"Amazon.com Inc.","jvm_version":"11.0.12+7-LTS","java_class_version":"55.0","http_nonProxyHosts":"null","http_proxyHost":"null","enabled":true,"service":"lambdainternal.AWSLambda","agent_url":"http://localhost:8126","agent_error":true,"debug":false,"analytics_enabled":false,"sampling_rules":[{},{}],"priority_sampling_enabled":true,"logs_correlation_enabled":true,"profiling_enabled":false,"dd_version":"0.80.0~a7d9f70a4","health_checks_enabled":true,"configuration_file":"no config file present","runtime_id":"00000000-0000-0000-0000-000000000000","logging_settings":{"levelInBrackets":false,"dateTimeFormat":"'[dd.trace 'yyyy-MM-dd HH:mm:ss:SSS Z']'","logFile":"System.err","configurationFile":"simplelogger.properties","showShortLogName":false,"showDateTime":true,"showLogName":true,"showThreadName":true,"defaultLogLevel":"INFO","warnLevelString":"WARN","embedException":false}} [dd.trace 1970-01-01 00:00:00 +0000] [main] INFO datadog.trace.agent.common.writer.WriterFactory - Detected serverless environment. Using PrintingWriter {"level": "ERROR", "message": "datadog: The request passed to DDLambda contained null headers. Are you sure the handler signature matches the event provided?"} {"level": "ERROR", "message": "datadog: The request passed to DDLambda contained null headers. Are you sure the handler signature matches the event provided?"} -{"m": "aws.lambda.enhanced.invocations", "v": 1.0, "t": ["memorysize:1024", "account_id:XXXX", "resource:Java-integration-test-dev-helloApiGateway_Java11", "functionname:Java-integration-test-dev-helloApiGateway_Java11", "region:sa-east-1", "datadog_lambda:0.3.2", "cold_start:false", "runtime:xxxx"], "e": 1234567890} -{"m": "aws.lambda.enhanced.invocations", "v": 1.0, "t": ["memorysize:1024", "account_id:XXXX", "resource:Java-integration-test-dev-helloApiGateway_Java11", "functionname:Java-integration-test-dev-helloApiGateway_Java11", "region:sa-east-1", "datadog_lambda:0.3.2", "cold_start:false", "runtime:xxxx"], "e": 1234567890} -{"m": "aws.lambda.enhanced.invocations", "v": 1.0, "t": ["memorysize:1024", "account_id:XXXX", "resource:Java-integration-test-dev-helloApiGateway_Java11", "functionname:Java-integration-test-dev-helloApiGateway_Java11", "region:sa-east-1", "datadog_lambda:0.3.2", "cold_start:true", "runtime:xxxx"], "e": 1234567890} -{"traces": [[{"service": "aws.lambda", "name": "aws.lambda", "resource": "Java-integration-test-dev-helloApiGateway_Java11", "trace_id": "xxxxx", "span_id": "xxxxx", "parent_id": "0", "start": 1234567890, "duration": 12345, "error": 0, "metrics": {"_dd.agent_psr": 1.0}, "meta": {"functionname": "java-integration-test-dev-helloapigateway_java11", "function_arn": "arn:aws:lambda:sa-east-1:123456789012:function:java-integration-test-dev-helloapigateway_java11", "runtime-id": "00000000-0000-0000-0000-000000000000", "language": "jvm", "thread.name": "main", "request_id": "00000000-0000-0000-0000-000000000000", "datadog_lambda": "0.3.2", "thread.id": "1", "cold_start": "false", "resource_names": "Java-integration-test-dev-helloApiGateway_Java11", "function_version": "$LATEST"}}]]} -{"traces": [[{"service": "aws.lambda", "name": "aws.lambda", "resource": "Java-integration-test-dev-helloApiGateway_Java11", "trace_id": "xxxxx", "span_id": "xxxxx", "parent_id": "0", "start": 1234567890, "duration": 12345, "error": 0, "metrics": {"_dd.agent_psr": 1.0}, "meta": {"functionname": "java-integration-test-dev-helloapigateway_java11", "function_arn": "arn:aws:lambda:sa-east-1:123456789012:function:java-integration-test-dev-helloapigateway_java11", "runtime-id": "00000000-0000-0000-0000-000000000000", "language": "jvm", "thread.name": "main", "request_id": "00000000-0000-0000-0000-000000000000", "datadog_lambda": "0.3.2", "thread.id": "1", "cold_start": "false", "resource_names": "Java-integration-test-dev-helloApiGateway_Java11", "function_version": "$LATEST"}}]]} -{"traces": [[{"service": "aws.lambda", "name": "aws.lambda", "resource": "Java-integration-test-dev-helloApiGateway_Java11", "trace_id": "xxxxx", "span_id": "xxxxx", "parent_id": "0", "start": 1234567890, "duration": 12345, "error": 0, "metrics": {"_dd.agent_psr": 1.0}, "meta": {"functionname": "java-integration-test-dev-helloapigateway_java11", "function_arn": "arn:aws:lambda:sa-east-1:123456789012:function:java-integration-test-dev-helloapigateway_java11", "runtime-id": "00000000-0000-0000-0000-000000000000", "language": "jvm", "thread.name": "main", "request_id": "00000000-0000-0000-0000-000000000000", "datadog_lambda": "0.3.2", "thread.id": "1", "cold_start": "true", "resource_names": "Java-integration-test-dev-helloApiGateway_Java11", "function_version": "$LATEST"}}]]} +{"m": "aws.lambda.enhanced.invocations", "v": 1.0, "t": ["memorysize:1024", "account_id:XXXX", "resource:Java-integration-test-dev-helloApiGateway_Java11", "functionname:Java-integration-test-dev-helloApiGateway_Java11", "region:sa-east-1", "datadog_lambda:0.3.3", "cold_start:false", "runtime:xxxx"], "e": 1234567890} +{"m": "aws.lambda.enhanced.invocations", "v": 1.0, "t": ["memorysize:1024", "account_id:XXXX", "resource:Java-integration-test-dev-helloApiGateway_Java11", "functionname:Java-integration-test-dev-helloApiGateway_Java11", "region:sa-east-1", "datadog_lambda:0.3.3", "cold_start:false", "runtime:xxxx"], "e": 1234567890} +{"m": "aws.lambda.enhanced.invocations", "v": 1.0, "t": ["memorysize:1024", "account_id:XXXX", "resource:Java-integration-test-dev-helloApiGateway_Java11", "functionname:Java-integration-test-dev-helloApiGateway_Java11", "region:sa-east-1", "datadog_lambda:0.3.3", "cold_start:true", "runtime:xxxx"], "e": 1234567890} +{"traces": [[{"service": "aws.lambda", "name": "aws.lambda", "resource": "Java-integration-test-dev-helloApiGateway_Java11", "trace_id": "xxxxx", "span_id": "xxxxx", "parent_id": "0", "start": 1234567890, "duration": 12345, "error": 0, "metrics": {"_dd.agent_psr": 1.0}, "meta": {"functionname": "java-integration-test-dev-helloapigateway_java11", "function_arn": "arn:aws:lambda:sa-east-1:123456789012:function:java-integration-test-dev-helloapigateway_java11", "runtime-id": "00000000-0000-0000-0000-000000000000", "language": "jvm", "thread.name": "main", "request_id": "00000000-0000-0000-0000-000000000000", "datadog_lambda": "0.3.3", "thread.id": "1", "cold_start": "false", "resource_names": "Java-integration-test-dev-helloApiGateway_Java11", "function_version": "$LATEST"}}]]} +{"traces": [[{"service": "aws.lambda", "name": "aws.lambda", "resource": "Java-integration-test-dev-helloApiGateway_Java11", "trace_id": "xxxxx", "span_id": "xxxxx", "parent_id": "0", "start": 1234567890, "duration": 12345, "error": 0, "metrics": {"_dd.agent_psr": 1.0}, "meta": {"functionname": "java-integration-test-dev-helloapigateway_java11", "function_arn": "arn:aws:lambda:sa-east-1:123456789012:function:java-integration-test-dev-helloapigateway_java11", "runtime-id": "00000000-0000-0000-0000-000000000000", "language": "jvm", "thread.name": "main", "request_id": "00000000-0000-0000-0000-000000000000", "datadog_lambda": "0.3.3", "thread.id": "1", "cold_start": "false", "resource_names": "Java-integration-test-dev-helloApiGateway_Java11", "function_version": "$LATEST"}}]]} +{"traces": [[{"service": "aws.lambda", "name": "aws.lambda", "resource": "Java-integration-test-dev-helloApiGateway_Java11", "trace_id": "xxxxx", "span_id": "xxxxx", "parent_id": "0", "start": 1234567890, "duration": 12345, "error": 0, "metrics": {"_dd.agent_psr": 1.0}, "meta": {"functionname": "java-integration-test-dev-helloapigateway_java11", "function_arn": "arn:aws:lambda:sa-east-1:123456789012:function:java-integration-test-dev-helloapigateway_java11", "runtime-id": "00000000-0000-0000-0000-000000000000", "language": "jvm", "thread.name": "main", "request_id": "00000000-0000-0000-0000-000000000000", "datadog_lambda": "0.3.3", "thread.id": "1", "cold_start": "true", "resource_names": "Java-integration-test-dev-helloApiGateway_Java11", "function_version": "$LATEST"}}]]} diff --git a/tests/testfunctions/snapshots/logs/helloApiGateway_Java8.log b/tests/testfunctions/snapshots/logs/helloApiGateway_Java8.log index 45b54e7..3e69c73 100644 --- a/tests/testfunctions/snapshots/logs/helloApiGateway_Java8.log +++ b/tests/testfunctions/snapshots/logs/helloApiGateway_Java8.log @@ -11,13 +11,13 @@ REPORT RequestId: XXXX Duration: XXXX ms Billed Duration: XXXX ms Memory Size: 1 START RequestId: XXXX Version: $LATEST START RequestId: XXXX Version: $LATEST START RequestId: XXXX Version: $LATEST -[dd.trace 1970-01-01 00:00:00 +0000] [dd-task-scheduler] INFO datadog.trace.agent.core.StatusLogger - DATADOG TRACER CONFIGURATION {"version":"0.80.0~a7d9f70a4","os_name":"Linux","os_version":"4.14.231-180.360.amzn2.x86_64","architecture":"amd64","lang":"jvm","lang_version":"1.8.0_292","jvm_vendor":"Amazon.com Inc.","jvm_version":"25.292-b10","java_class_version":"52.0","http_nonProxyHosts":"null","http_proxyHost":"null","enabled":true,"service":"lambdainternal.AWSLambda","agent_url":"http://localhost:8126","agent_error":true,"debug":false,"analytics_enabled":false,"sampling_rules":[{},{}],"priority_sampling_enabled":true,"logs_correlation_enabled":true,"profiling_enabled":false,"dd_version":"0.80.0~a7d9f70a4","health_checks_enabled":true,"configuration_file":"no config file present","runtime_id":"00000000-0000-0000-0000-000000000000","logging_settings":{"levelInBrackets":false,"dateTimeFormat":"'[dd.trace 'yyyy-MM-dd HH:mm:ss:SSS Z']'","logFile":"System.err","configurationFile":"simplelogger.properties","showShortLogName":false,"showDateTime":true,"showLogName":true,"showThreadName":true,"defaultLogLevel":"INFO","warnLevelString":"WARN","embedException":false}} +[dd.trace 1970-01-01 00:00:00 +0000] [dd-task-scheduler] INFO datadog.trace.agent.core.StatusLogger - DATADOG TRACER CONFIGURATION {"version":"0.80.0~a7d9f70a4","os_name":"Linux","os_version":"4.14.246-198.474.amzn2.x86_64","architecture":"amd64","lang":"jvm","lang_version":"1.8.0_312","jvm_vendor":"Amazon.com Inc.","jvm_version":"25.312-b07","java_class_version":"52.0","http_nonProxyHosts":"null","http_proxyHost":"null","enabled":true,"service":"lambdainternal.AWSLambda","agent_url":"http://localhost:8126","agent_error":true,"debug":false,"analytics_enabled":false,"sampling_rules":[{},{}],"priority_sampling_enabled":true,"logs_correlation_enabled":true,"profiling_enabled":false,"dd_version":"0.80.0~a7d9f70a4","health_checks_enabled":true,"configuration_file":"no config file present","runtime_id":"00000000-0000-0000-0000-000000000000","logging_settings":{"levelInBrackets":false,"dateTimeFormat":"'[dd.trace 'yyyy-MM-dd HH:mm:ss:SSS Z']'","logFile":"System.err","configurationFile":"simplelogger.properties","showShortLogName":false,"showDateTime":true,"showLogName":true,"showThreadName":true,"defaultLogLevel":"INFO","warnLevelString":"WARN","embedException":false}} [dd.trace 1970-01-01 00:00:00 +0000] [main] INFO datadog.trace.agent.common.writer.WriterFactory - Detected serverless environment. Using PrintingWriter {"level": "ERROR", "message": "datadog: The request passed to DDLambda contained null headers. Are you sure the handler signature matches the event provided?"} {"level": "ERROR", "message": "datadog: The request passed to DDLambda contained null headers. Are you sure the handler signature matches the event provided?"} -{"m": "aws.lambda.enhanced.invocations", "v": 1.0, "t": ["memorysize:1024", "account_id:XXXX", "resource:Java-integration-test-dev-helloApiGateway_Java8", "functionname:Java-integration-test-dev-helloApiGateway_Java8", "region:sa-east-1", "datadog_lambda:0.3.2", "cold_start:false", "runtime:xxxx"], "e": 1234567890} -{"m": "aws.lambda.enhanced.invocations", "v": 1.0, "t": ["memorysize:1024", "account_id:XXXX", "resource:Java-integration-test-dev-helloApiGateway_Java8", "functionname:Java-integration-test-dev-helloApiGateway_Java8", "region:sa-east-1", "datadog_lambda:0.3.2", "cold_start:false", "runtime:xxxx"], "e": 1234567890} -{"m": "aws.lambda.enhanced.invocations", "v": 1.0, "t": ["memorysize:1024", "account_id:XXXX", "resource:Java-integration-test-dev-helloApiGateway_Java8", "functionname:Java-integration-test-dev-helloApiGateway_Java8", "region:sa-east-1", "datadog_lambda:0.3.2", "cold_start:true", "runtime:xxxx"], "e": 1234567890} -{"traces": [[{"service": "aws.lambda", "name": "aws.lambda", "resource": "Java-integration-test-dev-helloApiGateway_Java8", "trace_id": "xxxxx", "span_id": "xxxxx", "parent_id": "0", "start": 1234567890, "duration": 12345, "error": 0, "metrics": {"_dd.agent_psr": 1.0}, "meta": {"functionname": "java-integration-test-dev-helloapigateway_java8", "function_arn": "arn:aws:lambda:sa-east-1:123456789012:function:java-integration-test-dev-helloapigateway_java8", "runtime-id": "00000000-0000-0000-0000-000000000000", "language": "jvm", "thread.name": "main", "request_id": "00000000-0000-0000-0000-000000000000", "datadog_lambda": "0.3.2", "thread.id": "1", "cold_start": "false", "resource_names": "Java-integration-test-dev-helloApiGateway_Java8", "function_version": "$LATEST"}}]]} -{"traces": [[{"service": "aws.lambda", "name": "aws.lambda", "resource": "Java-integration-test-dev-helloApiGateway_Java8", "trace_id": "xxxxx", "span_id": "xxxxx", "parent_id": "0", "start": 1234567890, "duration": 12345, "error": 0, "metrics": {"_dd.agent_psr": 1.0}, "meta": {"functionname": "java-integration-test-dev-helloapigateway_java8", "function_arn": "arn:aws:lambda:sa-east-1:123456789012:function:java-integration-test-dev-helloapigateway_java8", "runtime-id": "00000000-0000-0000-0000-000000000000", "language": "jvm", "thread.name": "main", "request_id": "00000000-0000-0000-0000-000000000000", "datadog_lambda": "0.3.2", "thread.id": "1", "cold_start": "false", "resource_names": "Java-integration-test-dev-helloApiGateway_Java8", "function_version": "$LATEST"}}]]} -{"traces": [[{"service": "aws.lambda", "name": "aws.lambda", "resource": "Java-integration-test-dev-helloApiGateway_Java8", "trace_id": "xxxxx", "span_id": "xxxxx", "parent_id": "0", "start": 1234567890, "duration": 12345, "error": 0, "metrics": {"_dd.agent_psr": 1.0}, "meta": {"functionname": "java-integration-test-dev-helloapigateway_java8", "function_arn": "arn:aws:lambda:sa-east-1:123456789012:function:java-integration-test-dev-helloapigateway_java8", "runtime-id": "00000000-0000-0000-0000-000000000000", "language": "jvm", "thread.name": "main", "request_id": "00000000-0000-0000-0000-000000000000", "datadog_lambda": "0.3.2", "thread.id": "1", "cold_start": "true", "resource_names": "Java-integration-test-dev-helloApiGateway_Java8", "function_version": "$LATEST"}}]]} +{"m": "aws.lambda.enhanced.invocations", "v": 1.0, "t": ["memorysize:1024", "account_id:XXXX", "resource:Java-integration-test-dev-helloApiGateway_Java8", "functionname:Java-integration-test-dev-helloApiGateway_Java8", "region:sa-east-1", "datadog_lambda:0.3.3", "cold_start:false", "runtime:xxxx"], "e": 1234567890} +{"m": "aws.lambda.enhanced.invocations", "v": 1.0, "t": ["memorysize:1024", "account_id:XXXX", "resource:Java-integration-test-dev-helloApiGateway_Java8", "functionname:Java-integration-test-dev-helloApiGateway_Java8", "region:sa-east-1", "datadog_lambda:0.3.3", "cold_start:false", "runtime:xxxx"], "e": 1234567890} +{"m": "aws.lambda.enhanced.invocations", "v": 1.0, "t": ["memorysize:1024", "account_id:XXXX", "resource:Java-integration-test-dev-helloApiGateway_Java8", "functionname:Java-integration-test-dev-helloApiGateway_Java8", "region:sa-east-1", "datadog_lambda:0.3.3", "cold_start:true", "runtime:xxxx"], "e": 1234567890} +{"traces": [[{"service": "aws.lambda", "name": "aws.lambda", "resource": "Java-integration-test-dev-helloApiGateway_Java8", "trace_id": "xxxxx", "span_id": "xxxxx", "parent_id": "0", "start": 1234567890, "duration": 12345, "error": 0, "metrics": {"_dd.agent_psr": 1.0}, "meta": {"functionname": "java-integration-test-dev-helloapigateway_java8", "function_arn": "arn:aws:lambda:sa-east-1:123456789012:function:java-integration-test-dev-helloapigateway_java8", "runtime-id": "00000000-0000-0000-0000-000000000000", "language": "jvm", "thread.name": "main", "request_id": "00000000-0000-0000-0000-000000000000", "datadog_lambda": "0.3.3", "thread.id": "1", "cold_start": "false", "resource_names": "Java-integration-test-dev-helloApiGateway_Java8", "function_version": "$LATEST"}}]]} +{"traces": [[{"service": "aws.lambda", "name": "aws.lambda", "resource": "Java-integration-test-dev-helloApiGateway_Java8", "trace_id": "xxxxx", "span_id": "xxxxx", "parent_id": "0", "start": 1234567890, "duration": 12345, "error": 0, "metrics": {"_dd.agent_psr": 1.0}, "meta": {"functionname": "java-integration-test-dev-helloapigateway_java8", "function_arn": "arn:aws:lambda:sa-east-1:123456789012:function:java-integration-test-dev-helloapigateway_java8", "runtime-id": "00000000-0000-0000-0000-000000000000", "language": "jvm", "thread.name": "main", "request_id": "00000000-0000-0000-0000-000000000000", "datadog_lambda": "0.3.3", "thread.id": "1", "cold_start": "false", "resource_names": "Java-integration-test-dev-helloApiGateway_Java8", "function_version": "$LATEST"}}]]} +{"traces": [[{"service": "aws.lambda", "name": "aws.lambda", "resource": "Java-integration-test-dev-helloApiGateway_Java8", "trace_id": "xxxxx", "span_id": "xxxxx", "parent_id": "0", "start": 1234567890, "duration": 12345, "error": 0, "metrics": {"_dd.agent_psr": 1.0}, "meta": {"functionname": "java-integration-test-dev-helloapigateway_java8", "function_arn": "arn:aws:lambda:sa-east-1:123456789012:function:java-integration-test-dev-helloapigateway_java8", "runtime-id": "00000000-0000-0000-0000-000000000000", "language": "jvm", "thread.name": "main", "request_id": "00000000-0000-0000-0000-000000000000", "datadog_lambda": "0.3.3", "thread.id": "1", "cold_start": "true", "resource_names": "Java-integration-test-dev-helloApiGateway_Java8", "function_version": "$LATEST"}}]]} diff --git a/tests/testfunctions/snapshots/logs/hello_Java11.log b/tests/testfunctions/snapshots/logs/hello_Java11.log index 711a21e..8f0d6d1 100644 --- a/tests/testfunctions/snapshots/logs/hello_Java11.log +++ b/tests/testfunctions/snapshots/logs/hello_Java11.log @@ -12,11 +12,11 @@ REPORT RequestId: XXXX Duration: XXXX ms Billed Duration: XXXX ms Memory Size: 1 START RequestId: XXXX Version: $LATEST START RequestId: XXXX Version: $LATEST START RequestId: XXXX Version: $LATEST -[dd.trace 1970-01-01 00:00:00 +0000] [dd-task-scheduler] INFO datadog.trace.agent.core.StatusLogger - DATADOG TRACER CONFIGURATION {"version":"0.80.0~a7d9f70a4","os_name":"Linux","os_version":"4.14.231-180.360.amzn2.x86_64","architecture":"amd64","lang":"jvm","lang_version":"11.0.11","jvm_vendor":"Amazon.com Inc.","jvm_version":"11.0.11+9-LTS","java_class_version":"55.0","http_nonProxyHosts":"null","http_proxyHost":"null","enabled":true,"service":"lambdainternal.AWSLambda","agent_url":"http://localhost:8126","agent_error":true,"debug":false,"analytics_enabled":false,"sampling_rules":[{},{}],"priority_sampling_enabled":true,"logs_correlation_enabled":true,"profiling_enabled":false,"dd_version":"0.80.0~a7d9f70a4","health_checks_enabled":true,"configuration_file":"no config file present","runtime_id":"00000000-0000-0000-0000-000000000000","logging_settings":{"levelInBrackets":false,"dateTimeFormat":"'[dd.trace 'yyyy-MM-dd HH:mm:ss:SSS Z']'","logFile":"System.err","configurationFile":"simplelogger.properties","showShortLogName":false,"showDateTime":true,"showLogName":true,"showThreadName":true,"defaultLogLevel":"INFO","warnLevelString":"WARN","embedException":false}} +[dd.trace 1970-01-01 00:00:00 +0000] [dd-task-scheduler] INFO datadog.trace.agent.core.StatusLogger - DATADOG TRACER CONFIGURATION {"version":"0.80.0~a7d9f70a4","os_name":"Linux","os_version":"4.14.246-198.474.amzn2.x86_64","architecture":"amd64","lang":"jvm","lang_version":"11.0.12","jvm_vendor":"Amazon.com Inc.","jvm_version":"11.0.12+7-LTS","java_class_version":"55.0","http_nonProxyHosts":"null","http_proxyHost":"null","enabled":true,"service":"lambdainternal.AWSLambda","agent_url":"http://localhost:8126","agent_error":true,"debug":false,"analytics_enabled":false,"sampling_rules":[{},{}],"priority_sampling_enabled":true,"logs_correlation_enabled":true,"profiling_enabled":false,"dd_version":"0.80.0~a7d9f70a4","health_checks_enabled":true,"configuration_file":"no config file present","runtime_id":"00000000-0000-0000-0000-000000000000","logging_settings":{"levelInBrackets":false,"dateTimeFormat":"'[dd.trace 'yyyy-MM-dd HH:mm:ss:SSS Z']'","logFile":"System.err","configurationFile":"simplelogger.properties","showShortLogName":false,"showDateTime":true,"showLogName":true,"showThreadName":true,"defaultLogLevel":"INFO","warnLevelString":"WARN","embedException":false}} [dd.trace 1970-01-01 00:00:00 +0000] [main] INFO datadog.trace.agent.common.writer.WriterFactory - Detected serverless environment. Using PrintingWriter -{"m": "aws.lambda.enhanced.invocations", "v": 1.0, "t": ["memorysize:1024", "account_id:XXXX", "resource:Java-integration-test-dev-hello_Java11", "functionname:Java-integration-test-dev-hello_Java11", "region:sa-east-1", "datadog_lambda:0.3.2", "cold_start:false", "runtime:xxxx"], "e": 1234567890} -{"m": "aws.lambda.enhanced.invocations", "v": 1.0, "t": ["memorysize:1024", "account_id:XXXX", "resource:Java-integration-test-dev-hello_Java11", "functionname:Java-integration-test-dev-hello_Java11", "region:sa-east-1", "datadog_lambda:0.3.2", "cold_start:false", "runtime:xxxx"], "e": 1234567890} -{"m": "aws.lambda.enhanced.invocations", "v": 1.0, "t": ["memorysize:1024", "account_id:XXXX", "resource:Java-integration-test-dev-hello_Java11", "functionname:Java-integration-test-dev-hello_Java11", "region:sa-east-1", "datadog_lambda:0.3.2", "cold_start:true", "runtime:xxxx"], "e": 1234567890} -{"traces": [[{"service": "aws.lambda", "name": "aws.lambda", "resource": "Java-integration-test-dev-hello_Java11", "trace_id": "xxxxx", "span_id": "xxxxx", "parent_id": "0", "start": 1234567890, "duration": 12345, "error": 0, "metrics": {"_dd.agent_psr": 1.0}, "meta": {"functionname": "java-integration-test-dev-hello_java11", "function_arn": "arn:aws:lambda:sa-east-1:123456789012:function:java-integration-test-dev-hello_java11", "runtime-id": "00000000-0000-0000-0000-000000000000", "language": "jvm", "thread.name": "main", "request_id": "00000000-0000-0000-0000-000000000000", "datadog_lambda": "0.3.2", "thread.id": "1", "cold_start": "false", "resource_names": "Java-integration-test-dev-hello_Java11", "function_version": "$LATEST"}}]]} -{"traces": [[{"service": "aws.lambda", "name": "aws.lambda", "resource": "Java-integration-test-dev-hello_Java11", "trace_id": "xxxxx", "span_id": "xxxxx", "parent_id": "0", "start": 1234567890, "duration": 12345, "error": 0, "metrics": {"_dd.agent_psr": 1.0}, "meta": {"functionname": "java-integration-test-dev-hello_java11", "function_arn": "arn:aws:lambda:sa-east-1:123456789012:function:java-integration-test-dev-hello_java11", "runtime-id": "00000000-0000-0000-0000-000000000000", "language": "jvm", "thread.name": "main", "request_id": "00000000-0000-0000-0000-000000000000", "datadog_lambda": "0.3.2", "thread.id": "1", "cold_start": "false", "resource_names": "Java-integration-test-dev-hello_Java11", "function_version": "$LATEST"}}]]} -{"traces": [[{"service": "aws.lambda", "name": "aws.lambda", "resource": "Java-integration-test-dev-hello_Java11", "trace_id": "xxxxx", "span_id": "xxxxx", "parent_id": "0", "start": 1234567890, "duration": 12345, "error": 0, "metrics": {"_dd.agent_psr": 1.0}, "meta": {"functionname": "java-integration-test-dev-hello_java11", "function_arn": "arn:aws:lambda:sa-east-1:123456789012:function:java-integration-test-dev-hello_java11", "runtime-id": "00000000-0000-0000-0000-000000000000", "language": "jvm", "thread.name": "main", "request_id": "00000000-0000-0000-0000-000000000000", "datadog_lambda": "0.3.2", "thread.id": "1", "cold_start": "true", "resource_names": "Java-integration-test-dev-hello_Java11", "function_version": "$LATEST"}}]]} +{"m": "aws.lambda.enhanced.invocations", "v": 1.0, "t": ["memorysize:1024", "account_id:XXXX", "resource:Java-integration-test-dev-hello_Java11", "functionname:Java-integration-test-dev-hello_Java11", "region:sa-east-1", "datadog_lambda:0.3.3", "cold_start:false", "runtime:xxxx"], "e": 1234567890} +{"m": "aws.lambda.enhanced.invocations", "v": 1.0, "t": ["memorysize:1024", "account_id:XXXX", "resource:Java-integration-test-dev-hello_Java11", "functionname:Java-integration-test-dev-hello_Java11", "region:sa-east-1", "datadog_lambda:0.3.3", "cold_start:false", "runtime:xxxx"], "e": 1234567890} +{"m": "aws.lambda.enhanced.invocations", "v": 1.0, "t": ["memorysize:1024", "account_id:XXXX", "resource:Java-integration-test-dev-hello_Java11", "functionname:Java-integration-test-dev-hello_Java11", "region:sa-east-1", "datadog_lambda:0.3.3", "cold_start:true", "runtime:xxxx"], "e": 1234567890} +{"traces": [[{"service": "aws.lambda", "name": "aws.lambda", "resource": "Java-integration-test-dev-hello_Java11", "trace_id": "xxxxx", "span_id": "xxxxx", "parent_id": "0", "start": 1234567890, "duration": 12345, "error": 0, "metrics": {"_dd.agent_psr": 1.0}, "meta": {"functionname": "java-integration-test-dev-hello_java11", "function_arn": "arn:aws:lambda:sa-east-1:123456789012:function:java-integration-test-dev-hello_java11", "runtime-id": "00000000-0000-0000-0000-000000000000", "language": "jvm", "thread.name": "main", "request_id": "00000000-0000-0000-0000-000000000000", "datadog_lambda": "0.3.3", "thread.id": "1", "cold_start": "false", "resource_names": "Java-integration-test-dev-hello_Java11", "function_version": "$LATEST"}}]]} +{"traces": [[{"service": "aws.lambda", "name": "aws.lambda", "resource": "Java-integration-test-dev-hello_Java11", "trace_id": "xxxxx", "span_id": "xxxxx", "parent_id": "0", "start": 1234567890, "duration": 12345, "error": 0, "metrics": {"_dd.agent_psr": 1.0}, "meta": {"functionname": "java-integration-test-dev-hello_java11", "function_arn": "arn:aws:lambda:sa-east-1:123456789012:function:java-integration-test-dev-hello_java11", "runtime-id": "00000000-0000-0000-0000-000000000000", "language": "jvm", "thread.name": "main", "request_id": "00000000-0000-0000-0000-000000000000", "datadog_lambda": "0.3.3", "thread.id": "1", "cold_start": "false", "resource_names": "Java-integration-test-dev-hello_Java11", "function_version": "$LATEST"}}]]} +{"traces": [[{"service": "aws.lambda", "name": "aws.lambda", "resource": "Java-integration-test-dev-hello_Java11", "trace_id": "xxxxx", "span_id": "xxxxx", "parent_id": "0", "start": 1234567890, "duration": 12345, "error": 0, "metrics": {"_dd.agent_psr": 1.0}, "meta": {"functionname": "java-integration-test-dev-hello_java11", "function_arn": "arn:aws:lambda:sa-east-1:123456789012:function:java-integration-test-dev-hello_java11", "runtime-id": "00000000-0000-0000-0000-000000000000", "language": "jvm", "thread.name": "main", "request_id": "00000000-0000-0000-0000-000000000000", "datadog_lambda": "0.3.3", "thread.id": "1", "cold_start": "true", "resource_names": "Java-integration-test-dev-hello_Java11", "function_version": "$LATEST"}}]]} diff --git a/tests/testfunctions/snapshots/logs/hello_Java8.log b/tests/testfunctions/snapshots/logs/hello_Java8.log index 686c4d5..afa9a44 100644 --- a/tests/testfunctions/snapshots/logs/hello_Java8.log +++ b/tests/testfunctions/snapshots/logs/hello_Java8.log @@ -11,11 +11,11 @@ REPORT RequestId: XXXX Duration: XXXX ms Billed Duration: XXXX ms Memory Size: 1 START RequestId: XXXX Version: $LATEST START RequestId: XXXX Version: $LATEST START RequestId: XXXX Version: $LATEST -[dd.trace 1970-01-01 00:00:00 +0000] [dd-task-scheduler] INFO datadog.trace.agent.core.StatusLogger - DATADOG TRACER CONFIGURATION {"version":"0.80.0~a7d9f70a4","os_name":"Linux","os_version":"4.14.231-180.360.amzn2.x86_64","architecture":"amd64","lang":"jvm","lang_version":"1.8.0_292","jvm_vendor":"Amazon.com Inc.","jvm_version":"25.292-b10","java_class_version":"52.0","http_nonProxyHosts":"null","http_proxyHost":"null","enabled":true,"service":"lambdainternal.AWSLambda","agent_url":"http://localhost:8126","agent_error":true,"debug":false,"analytics_enabled":false,"sampling_rules":[{},{}],"priority_sampling_enabled":true,"logs_correlation_enabled":true,"profiling_enabled":false,"dd_version":"0.80.0~a7d9f70a4","health_checks_enabled":true,"configuration_file":"no config file present","runtime_id":"00000000-0000-0000-0000-000000000000","logging_settings":{"levelInBrackets":false,"dateTimeFormat":"'[dd.trace 'yyyy-MM-dd HH:mm:ss:SSS Z']'","logFile":"System.err","configurationFile":"simplelogger.properties","showShortLogName":false,"showDateTime":true,"showLogName":true,"showThreadName":true,"defaultLogLevel":"INFO","warnLevelString":"WARN","embedException":false}} +[dd.trace 1970-01-01 00:00:00 +0000] [dd-task-scheduler] INFO datadog.trace.agent.core.StatusLogger - DATADOG TRACER CONFIGURATION {"version":"0.80.0~a7d9f70a4","os_name":"Linux","os_version":"4.14.246-198.474.amzn2.x86_64","architecture":"amd64","lang":"jvm","lang_version":"1.8.0_312","jvm_vendor":"Amazon.com Inc.","jvm_version":"25.312-b07","java_class_version":"52.0","http_nonProxyHosts":"null","http_proxyHost":"null","enabled":true,"service":"lambdainternal.AWSLambda","agent_url":"http://localhost:8126","agent_error":true,"debug":false,"analytics_enabled":false,"sampling_rules":[{},{}],"priority_sampling_enabled":true,"logs_correlation_enabled":true,"profiling_enabled":false,"dd_version":"0.80.0~a7d9f70a4","health_checks_enabled":true,"configuration_file":"no config file present","runtime_id":"00000000-0000-0000-0000-000000000000","logging_settings":{"levelInBrackets":false,"dateTimeFormat":"'[dd.trace 'yyyy-MM-dd HH:mm:ss:SSS Z']'","logFile":"System.err","configurationFile":"simplelogger.properties","showShortLogName":false,"showDateTime":true,"showLogName":true,"showThreadName":true,"defaultLogLevel":"INFO","warnLevelString":"WARN","embedException":false}} [dd.trace 1970-01-01 00:00:00 +0000] [main] INFO datadog.trace.agent.common.writer.WriterFactory - Detected serverless environment. Using PrintingWriter -{"m": "aws.lambda.enhanced.invocations", "v": 1.0, "t": ["memorysize:1024", "account_id:XXXX", "resource:Java-integration-test-dev-hello_Java8", "functionname:Java-integration-test-dev-hello_Java8", "region:sa-east-1", "datadog_lambda:0.3.2", "cold_start:false", "runtime:xxxx"], "e": 1234567890} -{"m": "aws.lambda.enhanced.invocations", "v": 1.0, "t": ["memorysize:1024", "account_id:XXXX", "resource:Java-integration-test-dev-hello_Java8", "functionname:Java-integration-test-dev-hello_Java8", "region:sa-east-1", "datadog_lambda:0.3.2", "cold_start:false", "runtime:xxxx"], "e": 1234567890} -{"m": "aws.lambda.enhanced.invocations", "v": 1.0, "t": ["memorysize:1024", "account_id:XXXX", "resource:Java-integration-test-dev-hello_Java8", "functionname:Java-integration-test-dev-hello_Java8", "region:sa-east-1", "datadog_lambda:0.3.2", "cold_start:true", "runtime:xxxx"], "e": 1234567890} -{"traces": [[{"service": "aws.lambda", "name": "aws.lambda", "resource": "Java-integration-test-dev-hello_Java8", "trace_id": "xxxxx", "span_id": "xxxxx", "parent_id": "0", "start": 1234567890, "duration": 12345, "error": 0, "metrics": {"_dd.agent_psr": 1.0}, "meta": {"functionname": "java-integration-test-dev-hello_java8", "function_arn": "arn:aws:lambda:sa-east-1:123456789012:function:java-integration-test-dev-hello_java8", "runtime-id": "00000000-0000-0000-0000-000000000000", "language": "jvm", "thread.name": "main", "request_id": "00000000-0000-0000-0000-000000000000", "datadog_lambda": "0.3.2", "thread.id": "1", "cold_start": "false", "resource_names": "Java-integration-test-dev-hello_Java8", "function_version": "$LATEST"}}]]} -{"traces": [[{"service": "aws.lambda", "name": "aws.lambda", "resource": "Java-integration-test-dev-hello_Java8", "trace_id": "xxxxx", "span_id": "xxxxx", "parent_id": "0", "start": 1234567890, "duration": 12345, "error": 0, "metrics": {"_dd.agent_psr": 1.0}, "meta": {"functionname": "java-integration-test-dev-hello_java8", "function_arn": "arn:aws:lambda:sa-east-1:123456789012:function:java-integration-test-dev-hello_java8", "runtime-id": "00000000-0000-0000-0000-000000000000", "language": "jvm", "thread.name": "main", "request_id": "00000000-0000-0000-0000-000000000000", "datadog_lambda": "0.3.2", "thread.id": "1", "cold_start": "false", "resource_names": "Java-integration-test-dev-hello_Java8", "function_version": "$LATEST"}}]]} -{"traces": [[{"service": "aws.lambda", "name": "aws.lambda", "resource": "Java-integration-test-dev-hello_Java8", "trace_id": "xxxxx", "span_id": "xxxxx", "parent_id": "0", "start": 1234567890, "duration": 12345, "error": 0, "metrics": {"_dd.agent_psr": 1.0}, "meta": {"functionname": "java-integration-test-dev-hello_java8", "function_arn": "arn:aws:lambda:sa-east-1:123456789012:function:java-integration-test-dev-hello_java8", "runtime-id": "00000000-0000-0000-0000-000000000000", "language": "jvm", "thread.name": "main", "request_id": "00000000-0000-0000-0000-000000000000", "datadog_lambda": "0.3.2", "thread.id": "1", "cold_start": "true", "resource_names": "Java-integration-test-dev-hello_Java8", "function_version": "$LATEST"}}]]} +{"m": "aws.lambda.enhanced.invocations", "v": 1.0, "t": ["memorysize:1024", "account_id:XXXX", "resource:Java-integration-test-dev-hello_Java8", "functionname:Java-integration-test-dev-hello_Java8", "region:sa-east-1", "datadog_lambda:0.3.3", "cold_start:false", "runtime:xxxx"], "e": 1234567890} +{"m": "aws.lambda.enhanced.invocations", "v": 1.0, "t": ["memorysize:1024", "account_id:XXXX", "resource:Java-integration-test-dev-hello_Java8", "functionname:Java-integration-test-dev-hello_Java8", "region:sa-east-1", "datadog_lambda:0.3.3", "cold_start:false", "runtime:xxxx"], "e": 1234567890} +{"m": "aws.lambda.enhanced.invocations", "v": 1.0, "t": ["memorysize:1024", "account_id:XXXX", "resource:Java-integration-test-dev-hello_Java8", "functionname:Java-integration-test-dev-hello_Java8", "region:sa-east-1", "datadog_lambda:0.3.3", "cold_start:true", "runtime:xxxx"], "e": 1234567890} +{"traces": [[{"service": "aws.lambda", "name": "aws.lambda", "resource": "Java-integration-test-dev-hello_Java8", "trace_id": "xxxxx", "span_id": "xxxxx", "parent_id": "0", "start": 1234567890, "duration": 12345, "error": 0, "metrics": {"_dd.agent_psr": 1.0}, "meta": {"functionname": "java-integration-test-dev-hello_java8", "function_arn": "arn:aws:lambda:sa-east-1:123456789012:function:java-integration-test-dev-hello_java8", "runtime-id": "00000000-0000-0000-0000-000000000000", "language": "jvm", "thread.name": "main", "request_id": "00000000-0000-0000-0000-000000000000", "datadog_lambda": "0.3.3", "thread.id": "1", "cold_start": "false", "resource_names": "Java-integration-test-dev-hello_Java8", "function_version": "$LATEST"}}]]} +{"traces": [[{"service": "aws.lambda", "name": "aws.lambda", "resource": "Java-integration-test-dev-hello_Java8", "trace_id": "xxxxx", "span_id": "xxxxx", "parent_id": "0", "start": 1234567890, "duration": 12345, "error": 0, "metrics": {"_dd.agent_psr": 1.0}, "meta": {"functionname": "java-integration-test-dev-hello_java8", "function_arn": "arn:aws:lambda:sa-east-1:123456789012:function:java-integration-test-dev-hello_java8", "runtime-id": "00000000-0000-0000-0000-000000000000", "language": "jvm", "thread.name": "main", "request_id": "00000000-0000-0000-0000-000000000000", "datadog_lambda": "0.3.3", "thread.id": "1", "cold_start": "false", "resource_names": "Java-integration-test-dev-hello_Java8", "function_version": "$LATEST"}}]]} +{"traces": [[{"service": "aws.lambda", "name": "aws.lambda", "resource": "Java-integration-test-dev-hello_Java8", "trace_id": "xxxxx", "span_id": "xxxxx", "parent_id": "0", "start": 1234567890, "duration": 12345, "error": 0, "metrics": {"_dd.agent_psr": 1.0}, "meta": {"functionname": "java-integration-test-dev-hello_java8", "function_arn": "arn:aws:lambda:sa-east-1:123456789012:function:java-integration-test-dev-hello_java8", "runtime-id": "00000000-0000-0000-0000-000000000000", "language": "jvm", "thread.name": "main", "request_id": "00000000-0000-0000-0000-000000000000", "datadog_lambda": "0.3.3", "thread.id": "1", "cold_start": "true", "resource_names": "Java-integration-test-dev-hello_Java8", "function_version": "$LATEST"}}]]} From ce48f52e42f0bd30ffa0097304aabfa31ccfc08f Mon Sep 17 00:00:00 2001 From: "chris.agocs" Date: Mon, 13 Dec 2021 10:26:19 -0500 Subject: [PATCH 2/4] bump aws-lambda-java-log4j dependency to aws-lambda-java-log4j2:1.3.0 --- build.gradle | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build.gradle b/build.gradle index baa01e5..366f0fd 100644 --- a/build.gradle +++ b/build.gradle @@ -23,7 +23,7 @@ repositories { } dependencies { - implementation 'com.amazonaws:aws-lambda-java-log4j:1.0.0' + implementation 'com.amazonaws:aws-lambda-java-log4j2:1.3.0' implementation 'com.amazonaws:aws-lambda-java-events:2.2.7' compileOnly 'com.amazonaws:aws-java-sdk-kinesis:1.11.980' implementation 'com.google.code.gson:gson:2.8.6' @@ -49,7 +49,7 @@ sourceCompatibility = 1.8 targetCompatibility = 1.8 group = 'com.datadoghq' -version= '0.3.3' +version= '0.3.4' archivesBaseName = "datadog-lambda-java" description = "datadog-lambda-java" From 092fc11ac54a792e871521fe8f6ccee50e273247 Mon Sep 17 00:00:00 2001 From: "chris.agocs" Date: Wed, 15 Dec 2021 08:18:16 -0500 Subject: [PATCH 3/4] Bump aws-lambda-java-log4j2 and log4j deps --- build.gradle | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/build.gradle b/build.gradle index 366f0fd..d944292 100644 --- a/build.gradle +++ b/build.gradle @@ -23,7 +23,7 @@ repositories { } dependencies { - implementation 'com.amazonaws:aws-lambda-java-log4j2:1.3.0' + implementation 'com.amazonaws:aws-lambda-java-log4j2:1.4.0' implementation 'com.amazonaws:aws-lambda-java-events:2.2.7' compileOnly 'com.amazonaws:aws-java-sdk-kinesis:1.11.980' implementation 'com.google.code.gson:gson:2.8.6' @@ -38,8 +38,8 @@ dependencies { // Use JUnit test framework testImplementation 'junit:junit:4.12' - testImplementation 'org.apache.logging.log4j:log4j-api:2.15.0' - testImplementation 'org.apache.logging.log4j:log4j-core:2.15.0' + testImplementation 'org.apache.logging.log4j:log4j-api:2.16.0' + testImplementation 'org.apache.logging.log4j:log4j-core:2.16.0' testImplementation 'com.github.stefanbirkner:system-rules:1.19.0' testImplementation 'com.amazonaws:aws-java-sdk-kinesis:1.11.980' @@ -49,7 +49,7 @@ sourceCompatibility = 1.8 targetCompatibility = 1.8 group = 'com.datadoghq' -version= '0.3.4' +version= '0.3.5' archivesBaseName = "datadog-lambda-java" description = "datadog-lambda-java" From 7aa72a4f3c83ff954149adb175fd3d4f9dc8c68c Mon Sep 17 00:00:00 2001 From: "chris.agocs" Date: Tue, 21 Dec 2021 15:36:40 -0500 Subject: [PATCH 4/4] Remove transitive dependency on log4j --- build.gradle | 8 ++++---- .../snapshots/logs/helloApiGatewayV2_Java11.log | 12 ++++++------ .../snapshots/logs/helloApiGatewayV2_Java8.log | 12 ++++++------ .../snapshots/logs/helloApiGateway_Java11.log | 12 ++++++------ .../snapshots/logs/helloApiGateway_Java8.log | 12 ++++++------ tests/testfunctions/snapshots/logs/hello_Java11.log | 12 ++++++------ tests/testfunctions/snapshots/logs/hello_Java8.log | 12 ++++++------ 7 files changed, 40 insertions(+), 40 deletions(-) diff --git a/build.gradle b/build.gradle index d944292..cc24b6e 100644 --- a/build.gradle +++ b/build.gradle @@ -23,7 +23,7 @@ repositories { } dependencies { - implementation 'com.amazonaws:aws-lambda-java-log4j2:1.4.0' + implementation 'com.amazonaws:aws-lambda-java-core:1.2.1' implementation 'com.amazonaws:aws-lambda-java-events:2.2.7' compileOnly 'com.amazonaws:aws-java-sdk-kinesis:1.11.980' implementation 'com.google.code.gson:gson:2.8.6' @@ -38,8 +38,8 @@ dependencies { // Use JUnit test framework testImplementation 'junit:junit:4.12' - testImplementation 'org.apache.logging.log4j:log4j-api:2.16.0' - testImplementation 'org.apache.logging.log4j:log4j-core:2.16.0' + testImplementation 'org.apache.logging.log4j:log4j-api:2.17.0' + testImplementation 'org.apache.logging.log4j:log4j-core:2.17.0' testImplementation 'com.github.stefanbirkner:system-rules:1.19.0' testImplementation 'com.amazonaws:aws-java-sdk-kinesis:1.11.980' @@ -49,7 +49,7 @@ sourceCompatibility = 1.8 targetCompatibility = 1.8 group = 'com.datadoghq' -version= '0.3.5' +version= '0.3.6' archivesBaseName = "datadog-lambda-java" description = "datadog-lambda-java" diff --git a/tests/testfunctions/snapshots/logs/helloApiGatewayV2_Java11.log b/tests/testfunctions/snapshots/logs/helloApiGatewayV2_Java11.log index a18a2d6..e6a6389 100644 --- a/tests/testfunctions/snapshots/logs/helloApiGatewayV2_Java11.log +++ b/tests/testfunctions/snapshots/logs/helloApiGatewayV2_Java11.log @@ -16,9 +16,9 @@ START RequestId: XXXX Version: $LATEST [dd.trace 1970-01-01 00:00:00 +0000] [main] INFO datadog.trace.agent.common.writer.WriterFactory - Detected serverless environment. Using PrintingWriter {"level": "ERROR", "message": "datadog: The request passed to DDLambda contained null headers. Are you sure the handler signature matches the event provided?"} {"level": "ERROR", "message": "datadog: The request passed to DDLambda contained null headers. Are you sure the handler signature matches the event provided?"} -{"m": "aws.lambda.enhanced.invocations", "v": 1.0, "t": ["memorysize:1024", "account_id:XXXX", "resource:Java-integration-test-dev-helloApiGatewayV2_Java11", "functionname:Java-integration-test-dev-helloApiGatewayV2_Java11", "region:sa-east-1", "datadog_lambda:0.3.3", "cold_start:false", "runtime:xxxx"], "e": 1234567890} -{"m": "aws.lambda.enhanced.invocations", "v": 1.0, "t": ["memorysize:1024", "account_id:XXXX", "resource:Java-integration-test-dev-helloApiGatewayV2_Java11", "functionname:Java-integration-test-dev-helloApiGatewayV2_Java11", "region:sa-east-1", "datadog_lambda:0.3.3", "cold_start:false", "runtime:xxxx"], "e": 1234567890} -{"m": "aws.lambda.enhanced.invocations", "v": 1.0, "t": ["memorysize:1024", "account_id:XXXX", "resource:Java-integration-test-dev-helloApiGatewayV2_Java11", "functionname:Java-integration-test-dev-helloApiGatewayV2_Java11", "region:sa-east-1", "datadog_lambda:0.3.3", "cold_start:true", "runtime:xxxx"], "e": 1234567890} -{"traces": [[{"service": "aws.lambda", "name": "aws.lambda", "resource": "Java-integration-test-dev-helloApiGatewayV2_Java11", "trace_id": "xxxxx", "span_id": "xxxxx", "parent_id": "0", "start": 1234567890, "duration": 12345, "error": 0, "metrics": {"_dd.agent_psr": 1.0}, "meta": {"functionname": "java-integration-test-dev-helloapigatewayv2_java11", "function_arn": "arn:aws:lambda:sa-east-1:123456789012:function:java-integration-test-dev-helloapigatewayv2_java11", "runtime-id": "00000000-0000-0000-0000-000000000000", "language": "jvm", "thread.name": "main", "request_id": "00000000-0000-0000-0000-000000000000", "datadog_lambda": "0.3.3", "thread.id": "1", "cold_start": "false", "resource_names": "Java-integration-test-dev-helloApiGatewayV2_Java11", "function_version": "$LATEST"}}]]} -{"traces": [[{"service": "aws.lambda", "name": "aws.lambda", "resource": "Java-integration-test-dev-helloApiGatewayV2_Java11", "trace_id": "xxxxx", "span_id": "xxxxx", "parent_id": "0", "start": 1234567890, "duration": 12345, "error": 0, "metrics": {"_dd.agent_psr": 1.0}, "meta": {"functionname": "java-integration-test-dev-helloapigatewayv2_java11", "function_arn": "arn:aws:lambda:sa-east-1:123456789012:function:java-integration-test-dev-helloapigatewayv2_java11", "runtime-id": "00000000-0000-0000-0000-000000000000", "language": "jvm", "thread.name": "main", "request_id": "00000000-0000-0000-0000-000000000000", "datadog_lambda": "0.3.3", "thread.id": "1", "cold_start": "false", "resource_names": "Java-integration-test-dev-helloApiGatewayV2_Java11", "function_version": "$LATEST"}}]]} -{"traces": [[{"service": "aws.lambda", "name": "aws.lambda", "resource": "Java-integration-test-dev-helloApiGatewayV2_Java11", "trace_id": "xxxxx", "span_id": "xxxxx", "parent_id": "0", "start": 1234567890, "duration": 12345, "error": 0, "metrics": {"_dd.agent_psr": 1.0}, "meta": {"functionname": "java-integration-test-dev-helloapigatewayv2_java11", "function_arn": "arn:aws:lambda:sa-east-1:123456789012:function:java-integration-test-dev-helloapigatewayv2_java11", "runtime-id": "00000000-0000-0000-0000-000000000000", "language": "jvm", "thread.name": "main", "request_id": "00000000-0000-0000-0000-000000000000", "datadog_lambda": "0.3.3", "thread.id": "1", "cold_start": "true", "resource_names": "Java-integration-test-dev-helloApiGatewayV2_Java11", "function_version": "$LATEST"}}]]} +{"m": "aws.lambda.enhanced.invocations", "v": 1.0, "t": ["memorysize:1024", "account_id:XXXX", "resource:Java-integration-test-dev-helloApiGatewayV2_Java11", "functionname:Java-integration-test-dev-helloApiGatewayV2_Java11", "region:sa-east-1", "datadog_lambda:0.3.6", "cold_start:false", "runtime:xxxx"], "e": 1234567890} +{"m": "aws.lambda.enhanced.invocations", "v": 1.0, "t": ["memorysize:1024", "account_id:XXXX", "resource:Java-integration-test-dev-helloApiGatewayV2_Java11", "functionname:Java-integration-test-dev-helloApiGatewayV2_Java11", "region:sa-east-1", "datadog_lambda:0.3.6", "cold_start:false", "runtime:xxxx"], "e": 1234567890} +{"m": "aws.lambda.enhanced.invocations", "v": 1.0, "t": ["memorysize:1024", "account_id:XXXX", "resource:Java-integration-test-dev-helloApiGatewayV2_Java11", "functionname:Java-integration-test-dev-helloApiGatewayV2_Java11", "region:sa-east-1", "datadog_lambda:0.3.6", "cold_start:true", "runtime:xxxx"], "e": 1234567890} +{"traces": [[{"service": "aws.lambda", "name": "aws.lambda", "resource": "Java-integration-test-dev-helloApiGatewayV2_Java11", "trace_id": "xxxxx", "span_id": "xxxxx", "parent_id": "0", "start": 1234567890, "duration": 12345, "error": 0, "metrics": {"_dd.agent_psr": 1.0}, "meta": {"functionname": "java-integration-test-dev-helloapigatewayv2_java11", "function_arn": "arn:aws:lambda:sa-east-1:123456789012:function:java-integration-test-dev-helloapigatewayv2_java11", "runtime-id": "00000000-0000-0000-0000-000000000000", "language": "jvm", "thread.name": "main", "request_id": "00000000-0000-0000-0000-000000000000", "datadog_lambda": "0.3.6", "thread.id": "1", "cold_start": "false", "resource_names": "Java-integration-test-dev-helloApiGatewayV2_Java11", "function_version": "$LATEST"}}]]} +{"traces": [[{"service": "aws.lambda", "name": "aws.lambda", "resource": "Java-integration-test-dev-helloApiGatewayV2_Java11", "trace_id": "xxxxx", "span_id": "xxxxx", "parent_id": "0", "start": 1234567890, "duration": 12345, "error": 0, "metrics": {"_dd.agent_psr": 1.0}, "meta": {"functionname": "java-integration-test-dev-helloapigatewayv2_java11", "function_arn": "arn:aws:lambda:sa-east-1:123456789012:function:java-integration-test-dev-helloapigatewayv2_java11", "runtime-id": "00000000-0000-0000-0000-000000000000", "language": "jvm", "thread.name": "main", "request_id": "00000000-0000-0000-0000-000000000000", "datadog_lambda": "0.3.6", "thread.id": "1", "cold_start": "false", "resource_names": "Java-integration-test-dev-helloApiGatewayV2_Java11", "function_version": "$LATEST"}}]]} +{"traces": [[{"service": "aws.lambda", "name": "aws.lambda", "resource": "Java-integration-test-dev-helloApiGatewayV2_Java11", "trace_id": "xxxxx", "span_id": "xxxxx", "parent_id": "0", "start": 1234567890, "duration": 12345, "error": 0, "metrics": {"_dd.agent_psr": 1.0}, "meta": {"functionname": "java-integration-test-dev-helloapigatewayv2_java11", "function_arn": "arn:aws:lambda:sa-east-1:123456789012:function:java-integration-test-dev-helloapigatewayv2_java11", "runtime-id": "00000000-0000-0000-0000-000000000000", "language": "jvm", "thread.name": "main", "request_id": "00000000-0000-0000-0000-000000000000", "datadog_lambda": "0.3.6", "thread.id": "1", "cold_start": "true", "resource_names": "Java-integration-test-dev-helloApiGatewayV2_Java11", "function_version": "$LATEST"}}]]} diff --git a/tests/testfunctions/snapshots/logs/helloApiGatewayV2_Java8.log b/tests/testfunctions/snapshots/logs/helloApiGatewayV2_Java8.log index 31cd815..a2f56b3 100644 --- a/tests/testfunctions/snapshots/logs/helloApiGatewayV2_Java8.log +++ b/tests/testfunctions/snapshots/logs/helloApiGatewayV2_Java8.log @@ -15,9 +15,9 @@ START RequestId: XXXX Version: $LATEST [dd.trace 1970-01-01 00:00:00 +0000] [main] INFO datadog.trace.agent.common.writer.WriterFactory - Detected serverless environment. Using PrintingWriter {"level": "ERROR", "message": "datadog: The request passed to DDLambda contained null headers. Are you sure the handler signature matches the event provided?"} {"level": "ERROR", "message": "datadog: The request passed to DDLambda contained null headers. Are you sure the handler signature matches the event provided?"} -{"m": "aws.lambda.enhanced.invocations", "v": 1.0, "t": ["memorysize:1024", "account_id:XXXX", "resource:Java-integration-test-dev-helloApiGatewayV2_Java8", "functionname:Java-integration-test-dev-helloApiGatewayV2_Java8", "region:sa-east-1", "datadog_lambda:0.3.3", "cold_start:false", "runtime:xxxx"], "e": 1234567890} -{"m": "aws.lambda.enhanced.invocations", "v": 1.0, "t": ["memorysize:1024", "account_id:XXXX", "resource:Java-integration-test-dev-helloApiGatewayV2_Java8", "functionname:Java-integration-test-dev-helloApiGatewayV2_Java8", "region:sa-east-1", "datadog_lambda:0.3.3", "cold_start:false", "runtime:xxxx"], "e": 1234567890} -{"m": "aws.lambda.enhanced.invocations", "v": 1.0, "t": ["memorysize:1024", "account_id:XXXX", "resource:Java-integration-test-dev-helloApiGatewayV2_Java8", "functionname:Java-integration-test-dev-helloApiGatewayV2_Java8", "region:sa-east-1", "datadog_lambda:0.3.3", "cold_start:true", "runtime:xxxx"], "e": 1234567890} -{"traces": [[{"service": "aws.lambda", "name": "aws.lambda", "resource": "Java-integration-test-dev-helloApiGatewayV2_Java8", "trace_id": "xxxxx", "span_id": "xxxxx", "parent_id": "0", "start": 1234567890, "duration": 12345, "error": 0, "metrics": {"_dd.agent_psr": 1.0}, "meta": {"functionname": "java-integration-test-dev-helloapigatewayv2_java8", "function_arn": "arn:aws:lambda:sa-east-1:123456789012:function:java-integration-test-dev-helloapigatewayv2_java8", "runtime-id": "00000000-0000-0000-0000-000000000000", "language": "jvm", "thread.name": "main", "request_id": "00000000-0000-0000-0000-000000000000", "datadog_lambda": "0.3.3", "thread.id": "1", "cold_start": "false", "resource_names": "Java-integration-test-dev-helloApiGatewayV2_Java8", "function_version": "$LATEST"}}]]} -{"traces": [[{"service": "aws.lambda", "name": "aws.lambda", "resource": "Java-integration-test-dev-helloApiGatewayV2_Java8", "trace_id": "xxxxx", "span_id": "xxxxx", "parent_id": "0", "start": 1234567890, "duration": 12345, "error": 0, "metrics": {"_dd.agent_psr": 1.0}, "meta": {"functionname": "java-integration-test-dev-helloapigatewayv2_java8", "function_arn": "arn:aws:lambda:sa-east-1:123456789012:function:java-integration-test-dev-helloapigatewayv2_java8", "runtime-id": "00000000-0000-0000-0000-000000000000", "language": "jvm", "thread.name": "main", "request_id": "00000000-0000-0000-0000-000000000000", "datadog_lambda": "0.3.3", "thread.id": "1", "cold_start": "false", "resource_names": "Java-integration-test-dev-helloApiGatewayV2_Java8", "function_version": "$LATEST"}}]]} -{"traces": [[{"service": "aws.lambda", "name": "aws.lambda", "resource": "Java-integration-test-dev-helloApiGatewayV2_Java8", "trace_id": "xxxxx", "span_id": "xxxxx", "parent_id": "0", "start": 1234567890, "duration": 12345, "error": 0, "metrics": {"_dd.agent_psr": 1.0}, "meta": {"functionname": "java-integration-test-dev-helloapigatewayv2_java8", "function_arn": "arn:aws:lambda:sa-east-1:123456789012:function:java-integration-test-dev-helloapigatewayv2_java8", "runtime-id": "00000000-0000-0000-0000-000000000000", "language": "jvm", "thread.name": "main", "request_id": "00000000-0000-0000-0000-000000000000", "datadog_lambda": "0.3.3", "thread.id": "1", "cold_start": "true", "resource_names": "Java-integration-test-dev-helloApiGatewayV2_Java8", "function_version": "$LATEST"}}]]} +{"m": "aws.lambda.enhanced.invocations", "v": 1.0, "t": ["memorysize:1024", "account_id:XXXX", "resource:Java-integration-test-dev-helloApiGatewayV2_Java8", "functionname:Java-integration-test-dev-helloApiGatewayV2_Java8", "region:sa-east-1", "datadog_lambda:0.3.6", "cold_start:false", "runtime:xxxx"], "e": 1234567890} +{"m": "aws.lambda.enhanced.invocations", "v": 1.0, "t": ["memorysize:1024", "account_id:XXXX", "resource:Java-integration-test-dev-helloApiGatewayV2_Java8", "functionname:Java-integration-test-dev-helloApiGatewayV2_Java8", "region:sa-east-1", "datadog_lambda:0.3.6", "cold_start:false", "runtime:xxxx"], "e": 1234567890} +{"m": "aws.lambda.enhanced.invocations", "v": 1.0, "t": ["memorysize:1024", "account_id:XXXX", "resource:Java-integration-test-dev-helloApiGatewayV2_Java8", "functionname:Java-integration-test-dev-helloApiGatewayV2_Java8", "region:sa-east-1", "datadog_lambda:0.3.6", "cold_start:true", "runtime:xxxx"], "e": 1234567890} +{"traces": [[{"service": "aws.lambda", "name": "aws.lambda", "resource": "Java-integration-test-dev-helloApiGatewayV2_Java8", "trace_id": "xxxxx", "span_id": "xxxxx", "parent_id": "0", "start": 1234567890, "duration": 12345, "error": 0, "metrics": {"_dd.agent_psr": 1.0}, "meta": {"functionname": "java-integration-test-dev-helloapigatewayv2_java8", "function_arn": "arn:aws:lambda:sa-east-1:123456789012:function:java-integration-test-dev-helloapigatewayv2_java8", "runtime-id": "00000000-0000-0000-0000-000000000000", "language": "jvm", "thread.name": "main", "request_id": "00000000-0000-0000-0000-000000000000", "datadog_lambda": "0.3.6", "thread.id": "1", "cold_start": "false", "resource_names": "Java-integration-test-dev-helloApiGatewayV2_Java8", "function_version": "$LATEST"}}]]} +{"traces": [[{"service": "aws.lambda", "name": "aws.lambda", "resource": "Java-integration-test-dev-helloApiGatewayV2_Java8", "trace_id": "xxxxx", "span_id": "xxxxx", "parent_id": "0", "start": 1234567890, "duration": 12345, "error": 0, "metrics": {"_dd.agent_psr": 1.0}, "meta": {"functionname": "java-integration-test-dev-helloapigatewayv2_java8", "function_arn": "arn:aws:lambda:sa-east-1:123456789012:function:java-integration-test-dev-helloapigatewayv2_java8", "runtime-id": "00000000-0000-0000-0000-000000000000", "language": "jvm", "thread.name": "main", "request_id": "00000000-0000-0000-0000-000000000000", "datadog_lambda": "0.3.6", "thread.id": "1", "cold_start": "false", "resource_names": "Java-integration-test-dev-helloApiGatewayV2_Java8", "function_version": "$LATEST"}}]]} +{"traces": [[{"service": "aws.lambda", "name": "aws.lambda", "resource": "Java-integration-test-dev-helloApiGatewayV2_Java8", "trace_id": "xxxxx", "span_id": "xxxxx", "parent_id": "0", "start": 1234567890, "duration": 12345, "error": 0, "metrics": {"_dd.agent_psr": 1.0}, "meta": {"functionname": "java-integration-test-dev-helloapigatewayv2_java8", "function_arn": "arn:aws:lambda:sa-east-1:123456789012:function:java-integration-test-dev-helloapigatewayv2_java8", "runtime-id": "00000000-0000-0000-0000-000000000000", "language": "jvm", "thread.name": "main", "request_id": "00000000-0000-0000-0000-000000000000", "datadog_lambda": "0.3.6", "thread.id": "1", "cold_start": "true", "resource_names": "Java-integration-test-dev-helloApiGatewayV2_Java8", "function_version": "$LATEST"}}]]} diff --git a/tests/testfunctions/snapshots/logs/helloApiGateway_Java11.log b/tests/testfunctions/snapshots/logs/helloApiGateway_Java11.log index 571c05f..1d1d74f 100644 --- a/tests/testfunctions/snapshots/logs/helloApiGateway_Java11.log +++ b/tests/testfunctions/snapshots/logs/helloApiGateway_Java11.log @@ -16,9 +16,9 @@ START RequestId: XXXX Version: $LATEST [dd.trace 1970-01-01 00:00:00 +0000] [main] INFO datadog.trace.agent.common.writer.WriterFactory - Detected serverless environment. Using PrintingWriter {"level": "ERROR", "message": "datadog: The request passed to DDLambda contained null headers. Are you sure the handler signature matches the event provided?"} {"level": "ERROR", "message": "datadog: The request passed to DDLambda contained null headers. Are you sure the handler signature matches the event provided?"} -{"m": "aws.lambda.enhanced.invocations", "v": 1.0, "t": ["memorysize:1024", "account_id:XXXX", "resource:Java-integration-test-dev-helloApiGateway_Java11", "functionname:Java-integration-test-dev-helloApiGateway_Java11", "region:sa-east-1", "datadog_lambda:0.3.3", "cold_start:false", "runtime:xxxx"], "e": 1234567890} -{"m": "aws.lambda.enhanced.invocations", "v": 1.0, "t": ["memorysize:1024", "account_id:XXXX", "resource:Java-integration-test-dev-helloApiGateway_Java11", "functionname:Java-integration-test-dev-helloApiGateway_Java11", "region:sa-east-1", "datadog_lambda:0.3.3", "cold_start:false", "runtime:xxxx"], "e": 1234567890} -{"m": "aws.lambda.enhanced.invocations", "v": 1.0, "t": ["memorysize:1024", "account_id:XXXX", "resource:Java-integration-test-dev-helloApiGateway_Java11", "functionname:Java-integration-test-dev-helloApiGateway_Java11", "region:sa-east-1", "datadog_lambda:0.3.3", "cold_start:true", "runtime:xxxx"], "e": 1234567890} -{"traces": [[{"service": "aws.lambda", "name": "aws.lambda", "resource": "Java-integration-test-dev-helloApiGateway_Java11", "trace_id": "xxxxx", "span_id": "xxxxx", "parent_id": "0", "start": 1234567890, "duration": 12345, "error": 0, "metrics": {"_dd.agent_psr": 1.0}, "meta": {"functionname": "java-integration-test-dev-helloapigateway_java11", "function_arn": "arn:aws:lambda:sa-east-1:123456789012:function:java-integration-test-dev-helloapigateway_java11", "runtime-id": "00000000-0000-0000-0000-000000000000", "language": "jvm", "thread.name": "main", "request_id": "00000000-0000-0000-0000-000000000000", "datadog_lambda": "0.3.3", "thread.id": "1", "cold_start": "false", "resource_names": "Java-integration-test-dev-helloApiGateway_Java11", "function_version": "$LATEST"}}]]} -{"traces": [[{"service": "aws.lambda", "name": "aws.lambda", "resource": "Java-integration-test-dev-helloApiGateway_Java11", "trace_id": "xxxxx", "span_id": "xxxxx", "parent_id": "0", "start": 1234567890, "duration": 12345, "error": 0, "metrics": {"_dd.agent_psr": 1.0}, "meta": {"functionname": "java-integration-test-dev-helloapigateway_java11", "function_arn": "arn:aws:lambda:sa-east-1:123456789012:function:java-integration-test-dev-helloapigateway_java11", "runtime-id": "00000000-0000-0000-0000-000000000000", "language": "jvm", "thread.name": "main", "request_id": "00000000-0000-0000-0000-000000000000", "datadog_lambda": "0.3.3", "thread.id": "1", "cold_start": "false", "resource_names": "Java-integration-test-dev-helloApiGateway_Java11", "function_version": "$LATEST"}}]]} -{"traces": [[{"service": "aws.lambda", "name": "aws.lambda", "resource": "Java-integration-test-dev-helloApiGateway_Java11", "trace_id": "xxxxx", "span_id": "xxxxx", "parent_id": "0", "start": 1234567890, "duration": 12345, "error": 0, "metrics": {"_dd.agent_psr": 1.0}, "meta": {"functionname": "java-integration-test-dev-helloapigateway_java11", "function_arn": "arn:aws:lambda:sa-east-1:123456789012:function:java-integration-test-dev-helloapigateway_java11", "runtime-id": "00000000-0000-0000-0000-000000000000", "language": "jvm", "thread.name": "main", "request_id": "00000000-0000-0000-0000-000000000000", "datadog_lambda": "0.3.3", "thread.id": "1", "cold_start": "true", "resource_names": "Java-integration-test-dev-helloApiGateway_Java11", "function_version": "$LATEST"}}]]} +{"m": "aws.lambda.enhanced.invocations", "v": 1.0, "t": ["memorysize:1024", "account_id:XXXX", "resource:Java-integration-test-dev-helloApiGateway_Java11", "functionname:Java-integration-test-dev-helloApiGateway_Java11", "region:sa-east-1", "datadog_lambda:0.3.6", "cold_start:false", "runtime:xxxx"], "e": 1234567890} +{"m": "aws.lambda.enhanced.invocations", "v": 1.0, "t": ["memorysize:1024", "account_id:XXXX", "resource:Java-integration-test-dev-helloApiGateway_Java11", "functionname:Java-integration-test-dev-helloApiGateway_Java11", "region:sa-east-1", "datadog_lambda:0.3.6", "cold_start:false", "runtime:xxxx"], "e": 1234567890} +{"m": "aws.lambda.enhanced.invocations", "v": 1.0, "t": ["memorysize:1024", "account_id:XXXX", "resource:Java-integration-test-dev-helloApiGateway_Java11", "functionname:Java-integration-test-dev-helloApiGateway_Java11", "region:sa-east-1", "datadog_lambda:0.3.6", "cold_start:true", "runtime:xxxx"], "e": 1234567890} +{"traces": [[{"service": "aws.lambda", "name": "aws.lambda", "resource": "Java-integration-test-dev-helloApiGateway_Java11", "trace_id": "xxxxx", "span_id": "xxxxx", "parent_id": "0", "start": 1234567890, "duration": 12345, "error": 0, "metrics": {"_dd.agent_psr": 1.0}, "meta": {"functionname": "java-integration-test-dev-helloapigateway_java11", "function_arn": "arn:aws:lambda:sa-east-1:123456789012:function:java-integration-test-dev-helloapigateway_java11", "runtime-id": "00000000-0000-0000-0000-000000000000", "language": "jvm", "thread.name": "main", "request_id": "00000000-0000-0000-0000-000000000000", "datadog_lambda": "0.3.6", "thread.id": "1", "cold_start": "false", "resource_names": "Java-integration-test-dev-helloApiGateway_Java11", "function_version": "$LATEST"}}]]} +{"traces": [[{"service": "aws.lambda", "name": "aws.lambda", "resource": "Java-integration-test-dev-helloApiGateway_Java11", "trace_id": "xxxxx", "span_id": "xxxxx", "parent_id": "0", "start": 1234567890, "duration": 12345, "error": 0, "metrics": {"_dd.agent_psr": 1.0}, "meta": {"functionname": "java-integration-test-dev-helloapigateway_java11", "function_arn": "arn:aws:lambda:sa-east-1:123456789012:function:java-integration-test-dev-helloapigateway_java11", "runtime-id": "00000000-0000-0000-0000-000000000000", "language": "jvm", "thread.name": "main", "request_id": "00000000-0000-0000-0000-000000000000", "datadog_lambda": "0.3.6", "thread.id": "1", "cold_start": "false", "resource_names": "Java-integration-test-dev-helloApiGateway_Java11", "function_version": "$LATEST"}}]]} +{"traces": [[{"service": "aws.lambda", "name": "aws.lambda", "resource": "Java-integration-test-dev-helloApiGateway_Java11", "trace_id": "xxxxx", "span_id": "xxxxx", "parent_id": "0", "start": 1234567890, "duration": 12345, "error": 0, "metrics": {"_dd.agent_psr": 1.0}, "meta": {"functionname": "java-integration-test-dev-helloapigateway_java11", "function_arn": "arn:aws:lambda:sa-east-1:123456789012:function:java-integration-test-dev-helloapigateway_java11", "runtime-id": "00000000-0000-0000-0000-000000000000", "language": "jvm", "thread.name": "main", "request_id": "00000000-0000-0000-0000-000000000000", "datadog_lambda": "0.3.6", "thread.id": "1", "cold_start": "true", "resource_names": "Java-integration-test-dev-helloApiGateway_Java11", "function_version": "$LATEST"}}]]} diff --git a/tests/testfunctions/snapshots/logs/helloApiGateway_Java8.log b/tests/testfunctions/snapshots/logs/helloApiGateway_Java8.log index 3e69c73..152806d 100644 --- a/tests/testfunctions/snapshots/logs/helloApiGateway_Java8.log +++ b/tests/testfunctions/snapshots/logs/helloApiGateway_Java8.log @@ -15,9 +15,9 @@ START RequestId: XXXX Version: $LATEST [dd.trace 1970-01-01 00:00:00 +0000] [main] INFO datadog.trace.agent.common.writer.WriterFactory - Detected serverless environment. Using PrintingWriter {"level": "ERROR", "message": "datadog: The request passed to DDLambda contained null headers. Are you sure the handler signature matches the event provided?"} {"level": "ERROR", "message": "datadog: The request passed to DDLambda contained null headers. Are you sure the handler signature matches the event provided?"} -{"m": "aws.lambda.enhanced.invocations", "v": 1.0, "t": ["memorysize:1024", "account_id:XXXX", "resource:Java-integration-test-dev-helloApiGateway_Java8", "functionname:Java-integration-test-dev-helloApiGateway_Java8", "region:sa-east-1", "datadog_lambda:0.3.3", "cold_start:false", "runtime:xxxx"], "e": 1234567890} -{"m": "aws.lambda.enhanced.invocations", "v": 1.0, "t": ["memorysize:1024", "account_id:XXXX", "resource:Java-integration-test-dev-helloApiGateway_Java8", "functionname:Java-integration-test-dev-helloApiGateway_Java8", "region:sa-east-1", "datadog_lambda:0.3.3", "cold_start:false", "runtime:xxxx"], "e": 1234567890} -{"m": "aws.lambda.enhanced.invocations", "v": 1.0, "t": ["memorysize:1024", "account_id:XXXX", "resource:Java-integration-test-dev-helloApiGateway_Java8", "functionname:Java-integration-test-dev-helloApiGateway_Java8", "region:sa-east-1", "datadog_lambda:0.3.3", "cold_start:true", "runtime:xxxx"], "e": 1234567890} -{"traces": [[{"service": "aws.lambda", "name": "aws.lambda", "resource": "Java-integration-test-dev-helloApiGateway_Java8", "trace_id": "xxxxx", "span_id": "xxxxx", "parent_id": "0", "start": 1234567890, "duration": 12345, "error": 0, "metrics": {"_dd.agent_psr": 1.0}, "meta": {"functionname": "java-integration-test-dev-helloapigateway_java8", "function_arn": "arn:aws:lambda:sa-east-1:123456789012:function:java-integration-test-dev-helloapigateway_java8", "runtime-id": "00000000-0000-0000-0000-000000000000", "language": "jvm", "thread.name": "main", "request_id": "00000000-0000-0000-0000-000000000000", "datadog_lambda": "0.3.3", "thread.id": "1", "cold_start": "false", "resource_names": "Java-integration-test-dev-helloApiGateway_Java8", "function_version": "$LATEST"}}]]} -{"traces": [[{"service": "aws.lambda", "name": "aws.lambda", "resource": "Java-integration-test-dev-helloApiGateway_Java8", "trace_id": "xxxxx", "span_id": "xxxxx", "parent_id": "0", "start": 1234567890, "duration": 12345, "error": 0, "metrics": {"_dd.agent_psr": 1.0}, "meta": {"functionname": "java-integration-test-dev-helloapigateway_java8", "function_arn": "arn:aws:lambda:sa-east-1:123456789012:function:java-integration-test-dev-helloapigateway_java8", "runtime-id": "00000000-0000-0000-0000-000000000000", "language": "jvm", "thread.name": "main", "request_id": "00000000-0000-0000-0000-000000000000", "datadog_lambda": "0.3.3", "thread.id": "1", "cold_start": "false", "resource_names": "Java-integration-test-dev-helloApiGateway_Java8", "function_version": "$LATEST"}}]]} -{"traces": [[{"service": "aws.lambda", "name": "aws.lambda", "resource": "Java-integration-test-dev-helloApiGateway_Java8", "trace_id": "xxxxx", "span_id": "xxxxx", "parent_id": "0", "start": 1234567890, "duration": 12345, "error": 0, "metrics": {"_dd.agent_psr": 1.0}, "meta": {"functionname": "java-integration-test-dev-helloapigateway_java8", "function_arn": "arn:aws:lambda:sa-east-1:123456789012:function:java-integration-test-dev-helloapigateway_java8", "runtime-id": "00000000-0000-0000-0000-000000000000", "language": "jvm", "thread.name": "main", "request_id": "00000000-0000-0000-0000-000000000000", "datadog_lambda": "0.3.3", "thread.id": "1", "cold_start": "true", "resource_names": "Java-integration-test-dev-helloApiGateway_Java8", "function_version": "$LATEST"}}]]} +{"m": "aws.lambda.enhanced.invocations", "v": 1.0, "t": ["memorysize:1024", "account_id:XXXX", "resource:Java-integration-test-dev-helloApiGateway_Java8", "functionname:Java-integration-test-dev-helloApiGateway_Java8", "region:sa-east-1", "datadog_lambda:0.3.6", "cold_start:false", "runtime:xxxx"], "e": 1234567890} +{"m": "aws.lambda.enhanced.invocations", "v": 1.0, "t": ["memorysize:1024", "account_id:XXXX", "resource:Java-integration-test-dev-helloApiGateway_Java8", "functionname:Java-integration-test-dev-helloApiGateway_Java8", "region:sa-east-1", "datadog_lambda:0.3.6", "cold_start:false", "runtime:xxxx"], "e": 1234567890} +{"m": "aws.lambda.enhanced.invocations", "v": 1.0, "t": ["memorysize:1024", "account_id:XXXX", "resource:Java-integration-test-dev-helloApiGateway_Java8", "functionname:Java-integration-test-dev-helloApiGateway_Java8", "region:sa-east-1", "datadog_lambda:0.3.6", "cold_start:true", "runtime:xxxx"], "e": 1234567890} +{"traces": [[{"service": "aws.lambda", "name": "aws.lambda", "resource": "Java-integration-test-dev-helloApiGateway_Java8", "trace_id": "xxxxx", "span_id": "xxxxx", "parent_id": "0", "start": 1234567890, "duration": 12345, "error": 0, "metrics": {"_dd.agent_psr": 1.0}, "meta": {"functionname": "java-integration-test-dev-helloapigateway_java8", "function_arn": "arn:aws:lambda:sa-east-1:123456789012:function:java-integration-test-dev-helloapigateway_java8", "runtime-id": "00000000-0000-0000-0000-000000000000", "language": "jvm", "thread.name": "main", "request_id": "00000000-0000-0000-0000-000000000000", "datadog_lambda": "0.3.6", "thread.id": "1", "cold_start": "false", "resource_names": "Java-integration-test-dev-helloApiGateway_Java8", "function_version": "$LATEST"}}]]} +{"traces": [[{"service": "aws.lambda", "name": "aws.lambda", "resource": "Java-integration-test-dev-helloApiGateway_Java8", "trace_id": "xxxxx", "span_id": "xxxxx", "parent_id": "0", "start": 1234567890, "duration": 12345, "error": 0, "metrics": {"_dd.agent_psr": 1.0}, "meta": {"functionname": "java-integration-test-dev-helloapigateway_java8", "function_arn": "arn:aws:lambda:sa-east-1:123456789012:function:java-integration-test-dev-helloapigateway_java8", "runtime-id": "00000000-0000-0000-0000-000000000000", "language": "jvm", "thread.name": "main", "request_id": "00000000-0000-0000-0000-000000000000", "datadog_lambda": "0.3.6", "thread.id": "1", "cold_start": "false", "resource_names": "Java-integration-test-dev-helloApiGateway_Java8", "function_version": "$LATEST"}}]]} +{"traces": [[{"service": "aws.lambda", "name": "aws.lambda", "resource": "Java-integration-test-dev-helloApiGateway_Java8", "trace_id": "xxxxx", "span_id": "xxxxx", "parent_id": "0", "start": 1234567890, "duration": 12345, "error": 0, "metrics": {"_dd.agent_psr": 1.0}, "meta": {"functionname": "java-integration-test-dev-helloapigateway_java8", "function_arn": "arn:aws:lambda:sa-east-1:123456789012:function:java-integration-test-dev-helloapigateway_java8", "runtime-id": "00000000-0000-0000-0000-000000000000", "language": "jvm", "thread.name": "main", "request_id": "00000000-0000-0000-0000-000000000000", "datadog_lambda": "0.3.6", "thread.id": "1", "cold_start": "true", "resource_names": "Java-integration-test-dev-helloApiGateway_Java8", "function_version": "$LATEST"}}]]} diff --git a/tests/testfunctions/snapshots/logs/hello_Java11.log b/tests/testfunctions/snapshots/logs/hello_Java11.log index 8f0d6d1..0803a3a 100644 --- a/tests/testfunctions/snapshots/logs/hello_Java11.log +++ b/tests/testfunctions/snapshots/logs/hello_Java11.log @@ -14,9 +14,9 @@ START RequestId: XXXX Version: $LATEST START RequestId: XXXX Version: $LATEST [dd.trace 1970-01-01 00:00:00 +0000] [dd-task-scheduler] INFO datadog.trace.agent.core.StatusLogger - DATADOG TRACER CONFIGURATION {"version":"0.80.0~a7d9f70a4","os_name":"Linux","os_version":"4.14.246-198.474.amzn2.x86_64","architecture":"amd64","lang":"jvm","lang_version":"11.0.12","jvm_vendor":"Amazon.com Inc.","jvm_version":"11.0.12+7-LTS","java_class_version":"55.0","http_nonProxyHosts":"null","http_proxyHost":"null","enabled":true,"service":"lambdainternal.AWSLambda","agent_url":"http://localhost:8126","agent_error":true,"debug":false,"analytics_enabled":false,"sampling_rules":[{},{}],"priority_sampling_enabled":true,"logs_correlation_enabled":true,"profiling_enabled":false,"dd_version":"0.80.0~a7d9f70a4","health_checks_enabled":true,"configuration_file":"no config file present","runtime_id":"00000000-0000-0000-0000-000000000000","logging_settings":{"levelInBrackets":false,"dateTimeFormat":"'[dd.trace 'yyyy-MM-dd HH:mm:ss:SSS Z']'","logFile":"System.err","configurationFile":"simplelogger.properties","showShortLogName":false,"showDateTime":true,"showLogName":true,"showThreadName":true,"defaultLogLevel":"INFO","warnLevelString":"WARN","embedException":false}} [dd.trace 1970-01-01 00:00:00 +0000] [main] INFO datadog.trace.agent.common.writer.WriterFactory - Detected serverless environment. Using PrintingWriter -{"m": "aws.lambda.enhanced.invocations", "v": 1.0, "t": ["memorysize:1024", "account_id:XXXX", "resource:Java-integration-test-dev-hello_Java11", "functionname:Java-integration-test-dev-hello_Java11", "region:sa-east-1", "datadog_lambda:0.3.3", "cold_start:false", "runtime:xxxx"], "e": 1234567890} -{"m": "aws.lambda.enhanced.invocations", "v": 1.0, "t": ["memorysize:1024", "account_id:XXXX", "resource:Java-integration-test-dev-hello_Java11", "functionname:Java-integration-test-dev-hello_Java11", "region:sa-east-1", "datadog_lambda:0.3.3", "cold_start:false", "runtime:xxxx"], "e": 1234567890} -{"m": "aws.lambda.enhanced.invocations", "v": 1.0, "t": ["memorysize:1024", "account_id:XXXX", "resource:Java-integration-test-dev-hello_Java11", "functionname:Java-integration-test-dev-hello_Java11", "region:sa-east-1", "datadog_lambda:0.3.3", "cold_start:true", "runtime:xxxx"], "e": 1234567890} -{"traces": [[{"service": "aws.lambda", "name": "aws.lambda", "resource": "Java-integration-test-dev-hello_Java11", "trace_id": "xxxxx", "span_id": "xxxxx", "parent_id": "0", "start": 1234567890, "duration": 12345, "error": 0, "metrics": {"_dd.agent_psr": 1.0}, "meta": {"functionname": "java-integration-test-dev-hello_java11", "function_arn": "arn:aws:lambda:sa-east-1:123456789012:function:java-integration-test-dev-hello_java11", "runtime-id": "00000000-0000-0000-0000-000000000000", "language": "jvm", "thread.name": "main", "request_id": "00000000-0000-0000-0000-000000000000", "datadog_lambda": "0.3.3", "thread.id": "1", "cold_start": "false", "resource_names": "Java-integration-test-dev-hello_Java11", "function_version": "$LATEST"}}]]} -{"traces": [[{"service": "aws.lambda", "name": "aws.lambda", "resource": "Java-integration-test-dev-hello_Java11", "trace_id": "xxxxx", "span_id": "xxxxx", "parent_id": "0", "start": 1234567890, "duration": 12345, "error": 0, "metrics": {"_dd.agent_psr": 1.0}, "meta": {"functionname": "java-integration-test-dev-hello_java11", "function_arn": "arn:aws:lambda:sa-east-1:123456789012:function:java-integration-test-dev-hello_java11", "runtime-id": "00000000-0000-0000-0000-000000000000", "language": "jvm", "thread.name": "main", "request_id": "00000000-0000-0000-0000-000000000000", "datadog_lambda": "0.3.3", "thread.id": "1", "cold_start": "false", "resource_names": "Java-integration-test-dev-hello_Java11", "function_version": "$LATEST"}}]]} -{"traces": [[{"service": "aws.lambda", "name": "aws.lambda", "resource": "Java-integration-test-dev-hello_Java11", "trace_id": "xxxxx", "span_id": "xxxxx", "parent_id": "0", "start": 1234567890, "duration": 12345, "error": 0, "metrics": {"_dd.agent_psr": 1.0}, "meta": {"functionname": "java-integration-test-dev-hello_java11", "function_arn": "arn:aws:lambda:sa-east-1:123456789012:function:java-integration-test-dev-hello_java11", "runtime-id": "00000000-0000-0000-0000-000000000000", "language": "jvm", "thread.name": "main", "request_id": "00000000-0000-0000-0000-000000000000", "datadog_lambda": "0.3.3", "thread.id": "1", "cold_start": "true", "resource_names": "Java-integration-test-dev-hello_Java11", "function_version": "$LATEST"}}]]} +{"m": "aws.lambda.enhanced.invocations", "v": 1.0, "t": ["memorysize:1024", "account_id:XXXX", "resource:Java-integration-test-dev-hello_Java11", "functionname:Java-integration-test-dev-hello_Java11", "region:sa-east-1", "datadog_lambda:0.3.6", "cold_start:false", "runtime:xxxx"], "e": 1234567890} +{"m": "aws.lambda.enhanced.invocations", "v": 1.0, "t": ["memorysize:1024", "account_id:XXXX", "resource:Java-integration-test-dev-hello_Java11", "functionname:Java-integration-test-dev-hello_Java11", "region:sa-east-1", "datadog_lambda:0.3.6", "cold_start:false", "runtime:xxxx"], "e": 1234567890} +{"m": "aws.lambda.enhanced.invocations", "v": 1.0, "t": ["memorysize:1024", "account_id:XXXX", "resource:Java-integration-test-dev-hello_Java11", "functionname:Java-integration-test-dev-hello_Java11", "region:sa-east-1", "datadog_lambda:0.3.6", "cold_start:true", "runtime:xxxx"], "e": 1234567890} +{"traces": [[{"service": "aws.lambda", "name": "aws.lambda", "resource": "Java-integration-test-dev-hello_Java11", "trace_id": "xxxxx", "span_id": "xxxxx", "parent_id": "0", "start": 1234567890, "duration": 12345, "error": 0, "metrics": {"_dd.agent_psr": 1.0}, "meta": {"functionname": "java-integration-test-dev-hello_java11", "function_arn": "arn:aws:lambda:sa-east-1:123456789012:function:java-integration-test-dev-hello_java11", "runtime-id": "00000000-0000-0000-0000-000000000000", "language": "jvm", "thread.name": "main", "request_id": "00000000-0000-0000-0000-000000000000", "datadog_lambda": "0.3.6", "thread.id": "1", "cold_start": "false", "resource_names": "Java-integration-test-dev-hello_Java11", "function_version": "$LATEST"}}]]} +{"traces": [[{"service": "aws.lambda", "name": "aws.lambda", "resource": "Java-integration-test-dev-hello_Java11", "trace_id": "xxxxx", "span_id": "xxxxx", "parent_id": "0", "start": 1234567890, "duration": 12345, "error": 0, "metrics": {"_dd.agent_psr": 1.0}, "meta": {"functionname": "java-integration-test-dev-hello_java11", "function_arn": "arn:aws:lambda:sa-east-1:123456789012:function:java-integration-test-dev-hello_java11", "runtime-id": "00000000-0000-0000-0000-000000000000", "language": "jvm", "thread.name": "main", "request_id": "00000000-0000-0000-0000-000000000000", "datadog_lambda": "0.3.6", "thread.id": "1", "cold_start": "false", "resource_names": "Java-integration-test-dev-hello_Java11", "function_version": "$LATEST"}}]]} +{"traces": [[{"service": "aws.lambda", "name": "aws.lambda", "resource": "Java-integration-test-dev-hello_Java11", "trace_id": "xxxxx", "span_id": "xxxxx", "parent_id": "0", "start": 1234567890, "duration": 12345, "error": 0, "metrics": {"_dd.agent_psr": 1.0}, "meta": {"functionname": "java-integration-test-dev-hello_java11", "function_arn": "arn:aws:lambda:sa-east-1:123456789012:function:java-integration-test-dev-hello_java11", "runtime-id": "00000000-0000-0000-0000-000000000000", "language": "jvm", "thread.name": "main", "request_id": "00000000-0000-0000-0000-000000000000", "datadog_lambda": "0.3.6", "thread.id": "1", "cold_start": "true", "resource_names": "Java-integration-test-dev-hello_Java11", "function_version": "$LATEST"}}]]} diff --git a/tests/testfunctions/snapshots/logs/hello_Java8.log b/tests/testfunctions/snapshots/logs/hello_Java8.log index afa9a44..7143624 100644 --- a/tests/testfunctions/snapshots/logs/hello_Java8.log +++ b/tests/testfunctions/snapshots/logs/hello_Java8.log @@ -13,9 +13,9 @@ START RequestId: XXXX Version: $LATEST START RequestId: XXXX Version: $LATEST [dd.trace 1970-01-01 00:00:00 +0000] [dd-task-scheduler] INFO datadog.trace.agent.core.StatusLogger - DATADOG TRACER CONFIGURATION {"version":"0.80.0~a7d9f70a4","os_name":"Linux","os_version":"4.14.246-198.474.amzn2.x86_64","architecture":"amd64","lang":"jvm","lang_version":"1.8.0_312","jvm_vendor":"Amazon.com Inc.","jvm_version":"25.312-b07","java_class_version":"52.0","http_nonProxyHosts":"null","http_proxyHost":"null","enabled":true,"service":"lambdainternal.AWSLambda","agent_url":"http://localhost:8126","agent_error":true,"debug":false,"analytics_enabled":false,"sampling_rules":[{},{}],"priority_sampling_enabled":true,"logs_correlation_enabled":true,"profiling_enabled":false,"dd_version":"0.80.0~a7d9f70a4","health_checks_enabled":true,"configuration_file":"no config file present","runtime_id":"00000000-0000-0000-0000-000000000000","logging_settings":{"levelInBrackets":false,"dateTimeFormat":"'[dd.trace 'yyyy-MM-dd HH:mm:ss:SSS Z']'","logFile":"System.err","configurationFile":"simplelogger.properties","showShortLogName":false,"showDateTime":true,"showLogName":true,"showThreadName":true,"defaultLogLevel":"INFO","warnLevelString":"WARN","embedException":false}} [dd.trace 1970-01-01 00:00:00 +0000] [main] INFO datadog.trace.agent.common.writer.WriterFactory - Detected serverless environment. Using PrintingWriter -{"m": "aws.lambda.enhanced.invocations", "v": 1.0, "t": ["memorysize:1024", "account_id:XXXX", "resource:Java-integration-test-dev-hello_Java8", "functionname:Java-integration-test-dev-hello_Java8", "region:sa-east-1", "datadog_lambda:0.3.3", "cold_start:false", "runtime:xxxx"], "e": 1234567890} -{"m": "aws.lambda.enhanced.invocations", "v": 1.0, "t": ["memorysize:1024", "account_id:XXXX", "resource:Java-integration-test-dev-hello_Java8", "functionname:Java-integration-test-dev-hello_Java8", "region:sa-east-1", "datadog_lambda:0.3.3", "cold_start:false", "runtime:xxxx"], "e": 1234567890} -{"m": "aws.lambda.enhanced.invocations", "v": 1.0, "t": ["memorysize:1024", "account_id:XXXX", "resource:Java-integration-test-dev-hello_Java8", "functionname:Java-integration-test-dev-hello_Java8", "region:sa-east-1", "datadog_lambda:0.3.3", "cold_start:true", "runtime:xxxx"], "e": 1234567890} -{"traces": [[{"service": "aws.lambda", "name": "aws.lambda", "resource": "Java-integration-test-dev-hello_Java8", "trace_id": "xxxxx", "span_id": "xxxxx", "parent_id": "0", "start": 1234567890, "duration": 12345, "error": 0, "metrics": {"_dd.agent_psr": 1.0}, "meta": {"functionname": "java-integration-test-dev-hello_java8", "function_arn": "arn:aws:lambda:sa-east-1:123456789012:function:java-integration-test-dev-hello_java8", "runtime-id": "00000000-0000-0000-0000-000000000000", "language": "jvm", "thread.name": "main", "request_id": "00000000-0000-0000-0000-000000000000", "datadog_lambda": "0.3.3", "thread.id": "1", "cold_start": "false", "resource_names": "Java-integration-test-dev-hello_Java8", "function_version": "$LATEST"}}]]} -{"traces": [[{"service": "aws.lambda", "name": "aws.lambda", "resource": "Java-integration-test-dev-hello_Java8", "trace_id": "xxxxx", "span_id": "xxxxx", "parent_id": "0", "start": 1234567890, "duration": 12345, "error": 0, "metrics": {"_dd.agent_psr": 1.0}, "meta": {"functionname": "java-integration-test-dev-hello_java8", "function_arn": "arn:aws:lambda:sa-east-1:123456789012:function:java-integration-test-dev-hello_java8", "runtime-id": "00000000-0000-0000-0000-000000000000", "language": "jvm", "thread.name": "main", "request_id": "00000000-0000-0000-0000-000000000000", "datadog_lambda": "0.3.3", "thread.id": "1", "cold_start": "false", "resource_names": "Java-integration-test-dev-hello_Java8", "function_version": "$LATEST"}}]]} -{"traces": [[{"service": "aws.lambda", "name": "aws.lambda", "resource": "Java-integration-test-dev-hello_Java8", "trace_id": "xxxxx", "span_id": "xxxxx", "parent_id": "0", "start": 1234567890, "duration": 12345, "error": 0, "metrics": {"_dd.agent_psr": 1.0}, "meta": {"functionname": "java-integration-test-dev-hello_java8", "function_arn": "arn:aws:lambda:sa-east-1:123456789012:function:java-integration-test-dev-hello_java8", "runtime-id": "00000000-0000-0000-0000-000000000000", "language": "jvm", "thread.name": "main", "request_id": "00000000-0000-0000-0000-000000000000", "datadog_lambda": "0.3.3", "thread.id": "1", "cold_start": "true", "resource_names": "Java-integration-test-dev-hello_Java8", "function_version": "$LATEST"}}]]} +{"m": "aws.lambda.enhanced.invocations", "v": 1.0, "t": ["memorysize:1024", "account_id:XXXX", "resource:Java-integration-test-dev-hello_Java8", "functionname:Java-integration-test-dev-hello_Java8", "region:sa-east-1", "datadog_lambda:0.3.6", "cold_start:false", "runtime:xxxx"], "e": 1234567890} +{"m": "aws.lambda.enhanced.invocations", "v": 1.0, "t": ["memorysize:1024", "account_id:XXXX", "resource:Java-integration-test-dev-hello_Java8", "functionname:Java-integration-test-dev-hello_Java8", "region:sa-east-1", "datadog_lambda:0.3.6", "cold_start:false", "runtime:xxxx"], "e": 1234567890} +{"m": "aws.lambda.enhanced.invocations", "v": 1.0, "t": ["memorysize:1024", "account_id:XXXX", "resource:Java-integration-test-dev-hello_Java8", "functionname:Java-integration-test-dev-hello_Java8", "region:sa-east-1", "datadog_lambda:0.3.6", "cold_start:true", "runtime:xxxx"], "e": 1234567890} +{"traces": [[{"service": "aws.lambda", "name": "aws.lambda", "resource": "Java-integration-test-dev-hello_Java8", "trace_id": "xxxxx", "span_id": "xxxxx", "parent_id": "0", "start": 1234567890, "duration": 12345, "error": 0, "metrics": {"_dd.agent_psr": 1.0}, "meta": {"functionname": "java-integration-test-dev-hello_java8", "function_arn": "arn:aws:lambda:sa-east-1:123456789012:function:java-integration-test-dev-hello_java8", "runtime-id": "00000000-0000-0000-0000-000000000000", "language": "jvm", "thread.name": "main", "request_id": "00000000-0000-0000-0000-000000000000", "datadog_lambda": "0.3.6", "thread.id": "1", "cold_start": "false", "resource_names": "Java-integration-test-dev-hello_Java8", "function_version": "$LATEST"}}]]} +{"traces": [[{"service": "aws.lambda", "name": "aws.lambda", "resource": "Java-integration-test-dev-hello_Java8", "trace_id": "xxxxx", "span_id": "xxxxx", "parent_id": "0", "start": 1234567890, "duration": 12345, "error": 0, "metrics": {"_dd.agent_psr": 1.0}, "meta": {"functionname": "java-integration-test-dev-hello_java8", "function_arn": "arn:aws:lambda:sa-east-1:123456789012:function:java-integration-test-dev-hello_java8", "runtime-id": "00000000-0000-0000-0000-000000000000", "language": "jvm", "thread.name": "main", "request_id": "00000000-0000-0000-0000-000000000000", "datadog_lambda": "0.3.6", "thread.id": "1", "cold_start": "false", "resource_names": "Java-integration-test-dev-hello_Java8", "function_version": "$LATEST"}}]]} +{"traces": [[{"service": "aws.lambda", "name": "aws.lambda", "resource": "Java-integration-test-dev-hello_Java8", "trace_id": "xxxxx", "span_id": "xxxxx", "parent_id": "0", "start": 1234567890, "duration": 12345, "error": 0, "metrics": {"_dd.agent_psr": 1.0}, "meta": {"functionname": "java-integration-test-dev-hello_java8", "function_arn": "arn:aws:lambda:sa-east-1:123456789012:function:java-integration-test-dev-hello_java8", "runtime-id": "00000000-0000-0000-0000-000000000000", "language": "jvm", "thread.name": "main", "request_id": "00000000-0000-0000-0000-000000000000", "datadog_lambda": "0.3.6", "thread.id": "1", "cold_start": "true", "resource_names": "Java-integration-test-dev-hello_Java8", "function_version": "$LATEST"}}]]}