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)
Wed, Dec 4, 12:28 AM
Unknown Object (File)
Nov 18 2024, 9:36 AM
Unknown Object (File)
Nov 18 2024, 7:45 AM
Unknown Object (File)
Nov 18 2024, 12:20 AM
Unknown Object (File)
Nov 17 2024, 11:51 PM
Unknown Object (File)
Nov 15 2024, 8:07 PM
Unknown Object (File)
Nov 15 2024, 5:45 PM
Unknown Object (File)
Nov 10 2024, 2:00 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.