chore: Add a space in debug log for duration by lym953 · Pull Request #880 · DataDog/datadog-lambda-extension
Conversation
Right now we have debug log like Flushing traces took 50ms. This PR adds a space between 50 and ms so it's easier to process the log. For example, we can use echo 'Flushing traces took 50 ms' | awk '{print $4}' to extract the 50.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is fine, worth noting that this is printing wall clock time which may not equal CPU time, and some measurements span async work over multiple invocations
lym953
deleted the
yiming.luo/fmt-duration-log
branch
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters