-
Notifications
You must be signed in to change notification settings - Fork 19
feat(logs): Make context dump subdirectory names be more meaningful #249
Conversation
Codecov Report
@@ Coverage Diff @@
## master #249 +/- ##
=====================================
Coverage 100% 100%
=====================================
Files 39 39
Lines 947 948 +1
Branches 196 197 +1
=====================================
+ Hits 947 948 +1
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Beautiful, thanks so much!
I would format it differently: |
I thought about that but I think it is better to group by path first. You can use the |
Huge improvement! But do we really need both the timestamp and the id? I don't think the (activation) id has a lot of meaning in local dev as it is made up by |
but if you have maaany directories, you want the newest at the bottom, I guess. also, using the timestamp first, displays them nicer, as all timestamps have the same length. lastly, the filetime is only second precise...so it might not be accurate :-)
I agree with rofe. using a millisecond precise timestamp + path should be unique enough |
The id is not a random id for uniqueness, it is the 'x-openwhisk-activation-id'. I assume the idea is that you can somehow get the dumps from Runtime where the id and the timestamp would be useful to debug. Here is the
Maybe our customer @filmaj has an opinion on the best format I would love to have ? :) |
Actually, now that I looked at the output of the other format, I agree it is better :) |
The UUID at the end is garbage to me - doesn't help me much. Neither does the
To me, timestamp and request path is all I want to know. I suggest dropping |
Ok. Good customer feedback, even real time, thanks :) This is what you get now:
|
Love it, it also immediately tells me in what order the pipelines run, which is a nice improvement too. |
# [1.3.0](v1.2.4...v1.3.0) (2019-04-10) ### Features * **logs:** Make context dump subdirectory names be more meaningful ([#249](#249)) ([5c2cadb](5c2cadb))
🎉 This PR is included in version 1.3.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
# [1.3.0](v1.2.4...v1.3.0) (2019-04-10) ### Features * **logs:** Make context dump subdirectory names be more meaningful ([#249](#249)) ([5c2cadb](5c2cadb))
PR for #248
Added the request path inside the folder name (slashes replaced by dashes).
For the following set of requests (in this order):
ls -tl
will show the following "context dump" folders: