-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve ws-manager-bridge logging #8718
Conversation
@@ -49,7 +49,11 @@ export class WsmanSubscriber implements Disposable { | |||
const spanCtx = opentracing.globalTracer().extract(opentracing.FORMAT_HTTP_HEADERS, header); | |||
const span = !!spanCtx ? opentracing.globalTracer().startSpan('incomingSubscriptionResponse', {references: [opentracing.childOf(spanCtx!)]}) : undefined; | |||
|
|||
callbacks.onStatusUpdate({ span }, status); | |||
try { |
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.
Catching errors from the handler as it appears we do not catch these elsewhere and the exception would default serialise in the runtime.
Codecov Report
@@ Coverage Diff @@
## main #8718 +/- ##
==========================================
- Coverage 12.31% 11.17% -1.14%
==========================================
Files 20 18 -2
Lines 1161 993 -168
==========================================
- Hits 143 111 -32
+ Misses 1014 880 -134
+ Partials 4 2 -2
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
👍 for the additional logging and "info". One thought wrt to the "upper- vs lowercase" thing: I know other contributors have different opinions on this topic, which led to some back and forth in the past. IMO we should have program to verify/correct this for us. Not sure if prettier/tslint can do this for us...? |
Definitely possible, tho it may be best left to be done in the Go ecosystem as there's better support for this. An easy fix is to Uppercase the first letter in code :) |
Gentle reminder: In future Pull Requests, please remember to squash your commits into logical units when the PR gets close to approval. 🙏 |
Description
Release Notes
Documentation