Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mask init runtime logs #123

Merged
merged 3 commits into from
Jan 31, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion tests/integration_tests/run_integration_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions tests/integration_tests/snapshots/logs/error.log
Original file line number Diff line number Diff line change
@@ -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"}
Expand Down
1 change: 1 addition & 0 deletions tests/integration_tests/snapshots/logs/hello.log
Original file line number Diff line number Diff line change
@@ -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"}
Expand Down