-
Notifications
You must be signed in to change notification settings - Fork 53
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
Added new constructor for tracer that propagates error. #228
Conversation
98ec582
to
254a791
Compare
Any ideas what's wrong with this test? |
Hi @bwplotka! The test problem seems to be unrelated to your change. @codeboten just added #229, which should mitigate the timeout issue. |
Signed-off-by: Bartek Plotka <bwplotka@gmail.com>
254a791
to
a12a137
Compare
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.
Looks good. Thanks for the contribution!
@iredelmeier @codeboten is there a timeline for a new release that includes this patch? |
@antonio hopefully looking at releasing before the end of the week |
@codeboten awesome, thanks. |
lightstep/lightstep-tracer-go#228 introduced a new method to create a Tracer that returns an error when it does not succeed, instead of nil Signed-off-by: Antonio Santos <antonio@santosvelasco.com>
* Add support for tracing with Lightstep Signed-off-by: Antonio Santos <antonio@santosvelasco.com> * Remove type cast Signed-off-by: Antonio Santos <antonio@santosvelasco.com> * Add documentation for the exported methods and types Signed-off-by: Antonio Santos <antonio@santosvelasco.com> * Apply suggestions from @bwplotka Co-Authored-By: Bartlomiej Plotka <bwplotka@gmail.com> Signed-off-by: Antonio Santos <antonio@santosvelasco.com> * Inline variable Co-Authored-By: Povilas Versockas <p.versockas@gmail.com> Signed-off-by: Antonio Santos <antonio@santosvelasco.com> * Update lightstep library and add proper error handling lightstep/lightstep-tracer-go#228 introduced a new method to create a Tracer that returns an error when it does not succeed, instead of nil Signed-off-by: Antonio Santos <antonio@santosvelasco.com> * Remove unused import Signed-off-by: Antonio Santos <antonio@santosvelasco.com>
* Add support for tracing with Lightstep Signed-off-by: Antonio Santos <antonio@santosvelasco.com> * Remove type cast Signed-off-by: Antonio Santos <antonio@santosvelasco.com> * Add documentation for the exported methods and types Signed-off-by: Antonio Santos <antonio@santosvelasco.com> * Apply suggestions from @bwplotka Co-Authored-By: Bartlomiej Plotka <bwplotka@gmail.com> Signed-off-by: Antonio Santos <antonio@santosvelasco.com> * Inline variable Co-Authored-By: Povilas Versockas <p.versockas@gmail.com> Signed-off-by: Antonio Santos <antonio@santosvelasco.com> * Update lightstep library and add proper error handling lightstep/lightstep-tracer-go#228 introduced a new method to create a Tracer that returns an error when it does not succeed, instead of nil Signed-off-by: Antonio Santos <antonio@santosvelasco.com> * Remove unused import Signed-off-by: Antonio Santos <antonio@santosvelasco.com> Signed-off-by: Aleksey Sin <asin@ozon.ru>
* Add support for tracing with Lightstep Signed-off-by: Antonio Santos <antonio@santosvelasco.com> * Remove type cast Signed-off-by: Antonio Santos <antonio@santosvelasco.com> * Add documentation for the exported methods and types Signed-off-by: Antonio Santos <antonio@santosvelasco.com> * Apply suggestions from @bwplotka Co-Authored-By: Bartlomiej Plotka <bwplotka@gmail.com> Signed-off-by: Antonio Santos <antonio@santosvelasco.com> * Inline variable Co-Authored-By: Povilas Versockas <p.versockas@gmail.com> Signed-off-by: Antonio Santos <antonio@santosvelasco.com> * Update lightstep library and add proper error handling lightstep/lightstep-tracer-go#228 introduced a new method to create a Tracer that returns an error when it does not succeed, instead of nil Signed-off-by: Antonio Santos <antonio@santosvelasco.com> * Remove unused import Signed-off-by: Antonio Santos <antonio@santosvelasco.com>
Fixes #226
I also made error handling consistent for
NewTracer
- now it emits event only.Overall I would suggest totally removing the emit event logic. It is not the best idea to have a global logger, especially for the library: it might cause issues if someone wants some flexibility (e.g running two tracers with different loggers.). Anyway, not a blocker for us here (:
Signed-off-by: Bartek Plotka bwplotka@gmail.com