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)
Tue, Apr 23, 9:22 AM
Unknown Object (File)
Tue, Apr 23, 9:22 AM
Unknown Object (File)
Tue, Apr 23, 9:22 AM
Unknown Object (File)
Tue, Apr 23, 9:22 AM
Unknown Object (File)
Tue, Apr 23, 9:22 AM
Unknown Object (File)
Tue, Apr 23, 9:18 AM
Unknown Object (File)
Tue, Apr 2, 11:25 AM
Unknown Object (File)
Mar 11 2024, 8:27 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.