diff --git a/tests/integration_tests/run_integration_tests.sh b/tests/integration_tests/run_integration_tests.sh index 07ea0c95..546e1ef0 100755 --- a/tests/integration_tests/run_integration_tests.sh +++ b/tests/integration_tests/run_integration_tests.sh @@ -167,7 +167,9 @@ for function_name in "${LAMBDA_HANDLERS[@]}"; do # Strip out run ID (from function name, resource, etc.) perl -p -e "s/$run_id/XXXX/g" | # Normalize data in logged metrics - perl -p -e 's/"(points\\\":\[\[)([0-9]+)/\1XXXX/g' + perl -p -e 's/"(points\\\":\[\[)([0-9]+)/\1XXXX/g' | + # Remove INIT_START log + perl -p -e "s/INIT_START.*//g" ) if [ ! -f $function_snapshot_path ]; then diff --git a/tests/integration_tests/snapshots/logs/error.log b/tests/integration_tests/snapshots/logs/error.log index 87f5a916..08e8ca7d 100644 --- a/tests/integration_tests/snapshots/logs/error.log +++ b/tests/integration_tests/snapshots/logs/error.log @@ -1,3 +1,4 @@ + XXXX-XX-XX XX:XX:XX.XXX {"status":"debug","message":"datadog: Will use the API"} START XXXX-XX-XX XX:XX:XX.XXX {"status":"debug","message":"datadog: Merge X-Ray Traces is off, using trace context from Datadog only"} diff --git a/tests/integration_tests/snapshots/logs/hello.log b/tests/integration_tests/snapshots/logs/hello.log index 8d7f2065..811db7e4 100644 --- a/tests/integration_tests/snapshots/logs/hello.log +++ b/tests/integration_tests/snapshots/logs/hello.log @@ -1,3 +1,4 @@ + XXXX-XX-XX XX:XX:XX.XXX {"status":"debug","message":"datadog: Will use the API"} START XXXX-XX-XX XX:XX:XX.XXX {"status":"debug","message":"datadog: Merge X-Ray Traces is off, using trace context from Datadog only"}