Page MenuHomePhabricator

[tunnelbroker] Add error listener for AMQP
AcceptedPublic

Authored by bartek on Thu, Oct 3, 8:40 AM.
Tags
None
Referenced Files
F2888812: D13593.id44871.diff
Fri, Oct 4, 5:47 AM
F2888781: D13593.id.diff
Fri, Oct 4, 5:46 AM
F2888775: D13593.diff
Fri, Oct 4, 5:46 AM
F2885888: D13593.id.diff
Thu, Oct 3, 8:59 PM
F2885621: D13593.id44871.diff
Thu, Oct 3, 7:12 PM
Unknown Object (File)
Thu, Oct 3, 4:38 PM
Unknown Object (File)
Thu, Oct 3, 4:13 PM
Unknown Object (File)
Thu, Oct 3, 2:06 PM
Subscribers

Details

Reviewers
kamil
varun
will
Summary

By default, lapin error logs are out of our control, on a separate thread, in library internal code.
This handler lets us print them with our errorType.

NOTE: This might cause increased alarm count for TB. In the future we want to filter them here.

Depends on D13592

Test Plan

Disconnected rabbitmq while tunnelbroker running. Error log appeared about IOError

Diff Detail

Repository
rCOMM Comm
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

bartek held this revision as a draft.
bartek published this revision for review.Thu, Oct 3, 8:59 AM
bartek added inline comments.
services/tunnelbroker/src/amqp.rs
28–31

This might cause increased alarm count for TB. In the future we want to filter them here.

Tunnelbroker logs have these anyways, but they're inside lapin code and have no errorType assigned so they don't trigger alarms

services/tunnelbroker/src/websockets/session.rs
687

Noticed this is about WS, not AMQP - self.tx is a Websocket transmitter

This revision is now accepted and ready to land.Thu, Oct 3, 9:10 AM