Page MenuHomePhabricator

[services][blob] Add meaningful logs in gRPC handler
ClosedPublic

Authored by bartek on Nov 28 2022, 2:23 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Nov 10, 2:00 PM
Unknown Object (File)
Fri, Nov 8, 5:02 AM
Unknown Object (File)
Fri, Nov 8, 5:02 AM
Unknown Object (File)
Fri, Nov 8, 5:02 AM
Unknown Object (File)
Fri, Nov 8, 4:52 AM
Unknown Object (File)
Thu, Nov 7, 5:48 AM
Unknown Object (File)
Mon, Nov 4, 3:46 PM
Unknown Object (File)
Oct 8 2024, 3:05 PM
Subscribers

Details

Summary

Related ENG-2308

Added log messages to the service handlers. I took advantage of spans/instruments and fields to make logs clean and structured.

Depends on D5729

Test Plan

RUST_LOG=blob=trace cargo run and interact with the service using BloomRPC and integration tests

Example logs: https://pastebin.com/dGNkrLET

Screenshot 2022-11-28 at 11.42.52.png (674×1 px, 858 KB)

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

bartek held this revision as a draft.
bartek published this revision for review.Nov 28 2022, 2:54 AM
tomek added a reviewer: ashoat.

Looks great!

Adding @ashoat just to make sure that we're allowed to log these.

This should all be okay... blob hashes aren't personally identifiable

This revision is now accepted and ready to land.Nov 28 2022, 11:09 PM
  • Rebase
  • Added two logs for errors introduced during rebase of previous diffs:
    • When content length read fails (in Get handler)
    • When holder / blob hash are not existing in PutHandler::finish()
This revision was landed with ongoing or failed builds.Nov 30 2022, 6:53 AM
This revision was automatically updated to reflect the committed changes.