diff --git a/build.gradle b/build.gradle index 47b4fb4..d7ad57f 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:3.10.0' compileOnly 'com.amazonaws:aws-java-sdk-kinesis:1.12.100' implementation 'com.google.code.gson:gson:2.8.9' @@ -39,6 +39,7 @@ dependencies { // Use JUnit test framework testImplementation 'junit:junit:4.13.2' + //log4j imported for running unit tests. Doesn't get bundled with the build artifact. 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' @@ -52,7 +53,7 @@ sourceCompatibility = 1.8 targetCompatibility = 1.8 group = 'com.datadoghq' -version= '1.4.2' +version= '1.4.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 86e87f3..669b8a3 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. Serverless extension has not been detected, 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:1.4.0", "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:1.4.0", "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:1.4.0", "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, "_sample_rate": 1, "thread.id": 1}, "meta": {"language": "jvm", "thread.name": "main", "cold_start": "false", "resource_names": "Java-integration-test-dev-helloApiGatewayV2_Java11", "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", "request_id": "00000000-0000-0000-0000-000000000000", "datadog_lambda": "1.4.0", "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, "_sample_rate": 1, "thread.id": 1}, "meta": {"language": "jvm", "thread.name": "main", "cold_start": "false", "resource_names": "Java-integration-test-dev-helloApiGatewayV2_Java11", "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", "request_id": "00000000-0000-0000-0000-000000000000", "datadog_lambda": "1.4.0", "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, "_sample_rate": 1, "thread.id": 1}, "meta": {"language": "jvm", "thread.name": "main", "cold_start": "true", "resource_names": "Java-integration-test-dev-helloApiGatewayV2_Java11", "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", "request_id": "00000000-0000-0000-0000-000000000000", "datadog_lambda": "1.4.0", "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:1.4.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:1.4.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:1.4.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, "_sample_rate": 1, "thread.id": 1}, "meta": {"language": "jvm", "thread.name": "main", "cold_start": "false", "resource_names": "Java-integration-test-dev-helloApiGatewayV2_Java11", "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", "request_id": "00000000-0000-0000-0000-000000000000", "datadog_lambda": "1.4.2", "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, "_sample_rate": 1, "thread.id": 1}, "meta": {"language": "jvm", "thread.name": "main", "cold_start": "false", "resource_names": "Java-integration-test-dev-helloApiGatewayV2_Java11", "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", "request_id": "00000000-0000-0000-0000-000000000000", "datadog_lambda": "1.4.2", "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, "_sample_rate": 1, "thread.id": 1}, "meta": {"language": "jvm", "thread.name": "main", "cold_start": "true", "resource_names": "Java-integration-test-dev-helloApiGatewayV2_Java11", "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", "request_id": "00000000-0000-0000-0000-000000000000", "datadog_lambda": "1.4.2", "function_version": "$LATEST"}}]]} diff --git a/tests/testfunctions/snapshots/logs/helloApiGatewayV2_Java8.log b/tests/testfunctions/snapshots/logs/helloApiGatewayV2_Java8.log index 1275afc..bb7e882 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. Serverless extension has not been detected, 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:1.4.0", "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:1.4.0", "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:1.4.0", "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, "_sample_rate": 1, "thread.id": 1}, "meta": {"language": "jvm", "thread.name": "main", "cold_start": "false", "resource_names": "Java-integration-test-dev-helloApiGatewayV2_Java8", "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", "request_id": "00000000-0000-0000-0000-000000000000", "datadog_lambda": "1.4.0", "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, "_sample_rate": 1, "thread.id": 1}, "meta": {"language": "jvm", "thread.name": "main", "cold_start": "false", "resource_names": "Java-integration-test-dev-helloApiGatewayV2_Java8", "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", "request_id": "00000000-0000-0000-0000-000000000000", "datadog_lambda": "1.4.0", "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, "_sample_rate": 1, "thread.id": 1}, "meta": {"language": "jvm", "thread.name": "main", "cold_start": "true", "resource_names": "Java-integration-test-dev-helloApiGatewayV2_Java8", "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", "request_id": "00000000-0000-0000-0000-000000000000", "datadog_lambda": "1.4.0", "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:1.4.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:1.4.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:1.4.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, "_sample_rate": 1, "thread.id": 1}, "meta": {"language": "jvm", "thread.name": "main", "cold_start": "false", "resource_names": "Java-integration-test-dev-helloApiGatewayV2_Java8", "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", "request_id": "00000000-0000-0000-0000-000000000000", "datadog_lambda": "1.4.2", "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, "_sample_rate": 1, "thread.id": 1}, "meta": {"language": "jvm", "thread.name": "main", "cold_start": "false", "resource_names": "Java-integration-test-dev-helloApiGatewayV2_Java8", "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", "request_id": "00000000-0000-0000-0000-000000000000", "datadog_lambda": "1.4.2", "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, "_sample_rate": 1, "thread.id": 1}, "meta": {"language": "jvm", "thread.name": "main", "cold_start": "true", "resource_names": "Java-integration-test-dev-helloApiGatewayV2_Java8", "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", "request_id": "00000000-0000-0000-0000-000000000000", "datadog_lambda": "1.4.2", "function_version": "$LATEST"}}]]} diff --git a/tests/testfunctions/snapshots/logs/helloApiGateway_Java11.log b/tests/testfunctions/snapshots/logs/helloApiGateway_Java11.log index 62c0853..bd483f3 100644 --- a/tests/testfunctions/snapshots/logs/helloApiGateway_Java11.log +++ b/tests/testfunctions/snapshots/logs/helloApiGateway_Java11.log @@ -1,6 +1,5 @@ 1970-01-01 00:00:00 <00000000-0000-0000-0000-000000000000> INFO com.serverless.Handler:20 - received: {resource: /{proxy+},path: /test/hello,httpMethod: GET,headers: {Accept=text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8, Accept-Encoding=gzip, deflate, lzma, sdch, br, Accept-Language=en-US,en;q=0.8, CloudFront-Forwarded-Proto=https, CloudFront-Is-Desktop-Viewer=true, CloudFront-Is-Mobile-Viewer=false, CloudFront-Is-SmartTV-Viewer=false, CloudFront-Is-Tablet-Viewer=false, CloudFront-Viewer-Country=US, Host=wt6mne2s9k.execute-api.us-west-2.amazonaws.com, Upgrade-Insecure-Requests=1, User-Agent=Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.82 Safari/537.36 OPR/39.0.2256.48, Via=1.1 fb7cca60f0ecd82ce07790c9c5eef16c.cloudfront.net (CloudFront), X-Amz-Cf-Id=nBsWBOrSHMgnaROZJK1wGCZ9PcRcSpq_oSXZNQwQ10OTZL4cimZo3g==, X-Forwarded-For=192.168.100.1, 192.168.1.1, X-Forwarded-Port=443, X-Forwarded-Proto=https},queryStringParameters: {name=me},pathParameters: {proxy=hello},stageVariables: {stageVarName=stageVarValue},requestContext: {accountId: 123456789012,resourceId: us4z18,stage: test,requestId: 00000000-0000-0000-0000-000000000000,identity: {cognitoIdentityPoolId: ,accountId: ,cognitoIdentityId: ,caller: ,apiKey: ,sourceIp: 192.168.100.1,eventTriggerConfigId: ,cognitoAuthenticationProvider: ,userArn: ,userAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.82 Safari/537.36 OPR/39.0.2256.48,user: ,},resourcePath: /{proxy+},httpMethod: GET,apiId: wt6mne2s9k,},} 1970-01-01 00:00:00 <00000000-0000-0000-0000-000000000000> INFO com.serverless.Handler:20 - received: {} -1970-01-01 00:00:00 <00000000-0000-0000-0000-000000000000> INFO com.serverless.Handler:20 - received: {} END RequestId: XXXX END RequestId: XXXX END RequestId: XXXX @@ -16,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. Serverless extension has not been detected, 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:1.4.0", "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:1.4.0", "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:1.4.0", "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, "_sample_rate": 1, "thread.id": 1}, "meta": {"language": "jvm", "thread.name": "main", "cold_start": "false", "resource_names": "Java-integration-test-dev-helloApiGateway_Java11", "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", "request_id": "00000000-0000-0000-0000-000000000000", "datadog_lambda": "1.4.0", "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, "_sample_rate": 1, "thread.id": 1}, "meta": {"language": "jvm", "thread.name": "main", "cold_start": "false", "resource_names": "Java-integration-test-dev-helloApiGateway_Java11", "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", "request_id": "00000000-0000-0000-0000-000000000000", "datadog_lambda": "1.4.0", "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, "_sample_rate": 1, "thread.id": 1}, "meta": {"language": "jvm", "thread.name": "main", "cold_start": "true", "resource_names": "Java-integration-test-dev-helloApiGateway_Java11", "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", "request_id": "00000000-0000-0000-0000-000000000000", "datadog_lambda": "1.4.0", "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:1.4.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:1.4.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:1.4.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, "_sample_rate": 1, "thread.id": 1}, "meta": {"language": "jvm", "thread.name": "main", "cold_start": "false", "resource_names": "Java-integration-test-dev-helloApiGateway_Java11", "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", "request_id": "00000000-0000-0000-0000-000000000000", "datadog_lambda": "1.4.2", "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, "_sample_rate": 1, "thread.id": 1}, "meta": {"language": "jvm", "thread.name": "main", "cold_start": "false", "resource_names": "Java-integration-test-dev-helloApiGateway_Java11", "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", "request_id": "00000000-0000-0000-0000-000000000000", "datadog_lambda": "1.4.2", "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, "_sample_rate": 1, "thread.id": 1}, "meta": {"language": "jvm", "thread.name": "main", "cold_start": "true", "resource_names": "Java-integration-test-dev-helloApiGateway_Java11", "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", "request_id": "00000000-0000-0000-0000-000000000000", "datadog_lambda": "1.4.2", "function_version": "$LATEST"}}]]} diff --git a/tests/testfunctions/snapshots/logs/helloApiGateway_Java8.log b/tests/testfunctions/snapshots/logs/helloApiGateway_Java8.log index 5dc6f98..aae5f72 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. Serverless extension has not been detected, 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:1.4.0", "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:1.4.0", "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:1.4.0", "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, "_sample_rate": 1, "thread.id": 1}, "meta": {"language": "jvm", "thread.name": "main", "cold_start": "false", "resource_names": "Java-integration-test-dev-helloApiGateway_Java8", "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", "request_id": "00000000-0000-0000-0000-000000000000", "datadog_lambda": "1.4.0", "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, "_sample_rate": 1, "thread.id": 1}, "meta": {"language": "jvm", "thread.name": "main", "cold_start": "false", "resource_names": "Java-integration-test-dev-helloApiGateway_Java8", "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", "request_id": "00000000-0000-0000-0000-000000000000", "datadog_lambda": "1.4.0", "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, "_sample_rate": 1, "thread.id": 1}, "meta": {"language": "jvm", "thread.name": "main", "cold_start": "true", "resource_names": "Java-integration-test-dev-helloApiGateway_Java8", "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", "request_id": "00000000-0000-0000-0000-000000000000", "datadog_lambda": "1.4.0", "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:1.4.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:1.4.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:1.4.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, "_sample_rate": 1, "thread.id": 1}, "meta": {"language": "jvm", "thread.name": "main", "cold_start": "false", "resource_names": "Java-integration-test-dev-helloApiGateway_Java8", "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", "request_id": "00000000-0000-0000-0000-000000000000", "datadog_lambda": "1.4.2", "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, "_sample_rate": 1, "thread.id": 1}, "meta": {"language": "jvm", "thread.name": "main", "cold_start": "false", "resource_names": "Java-integration-test-dev-helloApiGateway_Java8", "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", "request_id": "00000000-0000-0000-0000-000000000000", "datadog_lambda": "1.4.2", "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, "_sample_rate": 1, "thread.id": 1}, "meta": {"language": "jvm", "thread.name": "main", "cold_start": "true", "resource_names": "Java-integration-test-dev-helloApiGateway_Java8", "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", "request_id": "00000000-0000-0000-0000-000000000000", "datadog_lambda": "1.4.2", "function_version": "$LATEST"}}]]} diff --git a/tests/testfunctions/snapshots/logs/hello_Java11.log b/tests/testfunctions/snapshots/logs/hello_Java11.log index e0c381b..c499536 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.90.0~32708e53ec","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,"appsec_enabled":false,"dd_version":"0.90.0~32708e53ec","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},"cws_enabled":false,"cws_tls_refresh":5000} [dd.trace 1970-01-01 00:00:00 +0000] [main] INFO datadog.trace.agent.common.writer.WriterFactory - Detected serverless environment. Serverless extension has not been detected, 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:1.4.0", "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:1.4.0", "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:1.4.0", "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, "_sample_rate": 1, "thread.id": 1}, "meta": {"language": "jvm", "thread.name": "main", "cold_start": "false", "resource_names": "Java-integration-test-dev-hello_Java11", "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", "request_id": "00000000-0000-0000-0000-000000000000", "datadog_lambda": "1.4.0", "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, "_sample_rate": 1, "thread.id": 1}, "meta": {"language": "jvm", "thread.name": "main", "cold_start": "false", "resource_names": "Java-integration-test-dev-hello_Java11", "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", "request_id": "00000000-0000-0000-0000-000000000000", "datadog_lambda": "1.4.0", "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, "_sample_rate": 1, "thread.id": 1}, "meta": {"language": "jvm", "thread.name": "main", "cold_start": "true", "resource_names": "Java-integration-test-dev-hello_Java11", "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", "request_id": "00000000-0000-0000-0000-000000000000", "datadog_lambda": "1.4.0", "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:1.4.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:1.4.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:1.4.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, "_sample_rate": 1, "thread.id": 1}, "meta": {"language": "jvm", "thread.name": "main", "cold_start": "false", "resource_names": "Java-integration-test-dev-hello_Java11", "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", "request_id": "00000000-0000-0000-0000-000000000000", "datadog_lambda": "1.4.2", "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, "_sample_rate": 1, "thread.id": 1}, "meta": {"language": "jvm", "thread.name": "main", "cold_start": "false", "resource_names": "Java-integration-test-dev-hello_Java11", "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", "request_id": "00000000-0000-0000-0000-000000000000", "datadog_lambda": "1.4.2", "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, "_sample_rate": 1, "thread.id": 1}, "meta": {"language": "jvm", "thread.name": "main", "cold_start": "true", "resource_names": "Java-integration-test-dev-hello_Java11", "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", "request_id": "00000000-0000-0000-0000-000000000000", "datadog_lambda": "1.4.2", "function_version": "$LATEST"}}]]} diff --git a/tests/testfunctions/snapshots/logs/hello_Java8.log b/tests/testfunctions/snapshots/logs/hello_Java8.log index 9da4cb1..1a8ba3c 100644 --- a/tests/testfunctions/snapshots/logs/hello_Java8.log +++ b/tests/testfunctions/snapshots/logs/hello_Java8.log @@ -5,7 +5,6 @@ END RequestId: XXXX END RequestId: XXXX END RequestId: XXXX Picked up JAVA_TOOL_OPTIONS: -javaagent:"/opt/java/lib/dd-java-agent.jar" -Picked up JAVA_TOOL_OPTIONS: -javaagent:"/opt/java/lib/dd-java-agent.jar" REPORT RequestId: XXXX Duration: XXXX ms Billed Duration: XXXX ms Memory Size: 1024 MB Max Memory Used: XXXX MB REPORT RequestId: XXXX Duration: XXXX ms Billed Duration: XXXX ms Memory Size: 1024 MB Max Memory Used: XXXX MB REPORT RequestId: XXXX Duration: XXXX ms Billed Duration: XXXX ms Memory Size: 1024 MB Max Memory Used: XXXX MB Init Duration: XXXX ms @@ -13,12 +12,10 @@ 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.90.0~32708e53ec","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,"appsec_enabled":false,"dd_version":"0.90.0~32708e53ec","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},"cws_enabled":false,"cws_tls_refresh":5000} -[dd.trace 1970-01-01 00:00:00 +0000] [dd-task-scheduler] INFO datadog.trace.agent.core.StatusLogger - DATADOG TRACER CONFIGURATION {"version":"0.90.0~32708e53ec","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,"appsec_enabled":false,"dd_version":"0.90.0~32708e53ec","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},"cws_enabled":false,"cws_tls_refresh":5000} -[dd.trace 1970-01-01 00:00:00 +0000] [main] INFO datadog.trace.agent.common.writer.WriterFactory - Detected serverless environment. Serverless extension has not been detected, using PrintingWriter [dd.trace 1970-01-01 00:00:00 +0000] [main] INFO datadog.trace.agent.common.writer.WriterFactory - Detected serverless environment. Serverless extension has not been detected, 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:1.4.0", "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:1.4.0", "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:1.4.0", "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, "_sample_rate": 1, "thread.id": 1}, "meta": {"language": "jvm", "thread.name": "main", "cold_start": "false", "resource_names": "Java-integration-test-dev-hello_Java8", "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", "request_id": "00000000-0000-0000-0000-000000000000", "datadog_lambda": "1.4.0", "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, "_sample_rate": 1, "thread.id": 1}, "meta": {"language": "jvm", "thread.name": "main", "cold_start": "false", "resource_names": "Java-integration-test-dev-hello_Java8", "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", "request_id": "00000000-0000-0000-0000-000000000000", "datadog_lambda": "1.4.0", "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, "_sample_rate": 1, "thread.id": 1}, "meta": {"language": "jvm", "thread.name": "main", "cold_start": "true", "resource_names": "Java-integration-test-dev-hello_Java8", "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", "request_id": "00000000-0000-0000-0000-000000000000", "datadog_lambda": "1.4.0", "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:1.4.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:1.4.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:1.4.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, "_sample_rate": 1, "thread.id": 1}, "meta": {"language": "jvm", "thread.name": "main", "cold_start": "false", "resource_names": "Java-integration-test-dev-hello_Java8", "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", "request_id": "00000000-0000-0000-0000-000000000000", "datadog_lambda": "1.4.2", "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, "_sample_rate": 1, "thread.id": 1}, "meta": {"language": "jvm", "thread.name": "main", "cold_start": "false", "resource_names": "Java-integration-test-dev-hello_Java8", "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", "request_id": "00000000-0000-0000-0000-000000000000", "datadog_lambda": "1.4.2", "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, "_sample_rate": 1, "thread.id": 1}, "meta": {"language": "jvm", "thread.name": "main", "cold_start": "true", "resource_names": "Java-integration-test-dev-hello_Java8", "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", "request_id": "00000000-0000-0000-0000-000000000000", "datadog_lambda": "1.4.2", "function_version": "$LATEST"}}]]}