Skip to content
This repository was archived by the owner on Mar 11, 2025. It is now read-only.

Commit 77e8468

Browse files
maxdaypeterdeme
authored andcommitted
mask init runtime logs (DataDog#123)
1 parent d923f06 commit 77e8468

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

tests/integration_tests/run_integration_tests.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,9 @@ for function_name in "${LAMBDA_HANDLERS[@]}"; do
167167
# Strip out run ID (from function name, resource, etc.)
168168
perl -p -e "s/$run_id/XXXX/g" |
169169
# Normalize data in logged metrics
170-
perl -p -e 's/"(points\\\":\[\[)([0-9]+)/\1XXXX/g'
170+
perl -p -e 's/"(points\\\":\[\[)([0-9]+)/\1XXXX/g' |
171+
# Remove INIT_START log
172+
perl -p -e "s/INIT_START.*//g"
171173
)
172174

173175
if [ ! -f $function_snapshot_path ]; then

tests/integration_tests/snapshots/logs/error.log

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
12
XXXX-XX-XX XX:XX:XX.XXX {"status":"debug","message":"datadog: Will use the API"}
23
START
34
XXXX-XX-XX XX:XX:XX.XXX {"status":"debug","message":"datadog: Merge X-Ray Traces is off, using trace context from Datadog only"}

tests/integration_tests/snapshots/logs/hello.log

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
12
XXXX-XX-XX XX:XX:XX.XXX {"status":"debug","message":"datadog: Will use the API"}
23
START
34
XXXX-XX-XX XX:XX:XX.XXX {"status":"debug","message":"datadog: Merge X-Ray Traces is off, using trace context from Datadog only"}

0 commit comments

Comments
 (0)