Skip to content
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

Merged
merged 1 commit into from
Oct 28, 2019

Conversation

bwplotka
Copy link
Contributor

@bwplotka bwplotka commented Oct 24, 2019

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

@bwplotka
Copy link
Contributor Author

Any ideas what's wrong with this test?

@iredelmeier
Copy link
Contributor

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>
Copy link
Contributor

@codeboten codeboten left a 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!

@codeboten codeboten merged commit 0532feb into lightstep:master Oct 28, 2019
@bwplotka bwplotka deleted the newtracer-error branch October 28, 2019 16:36
@antonio
Copy link

antonio commented Oct 30, 2019

@iredelmeier @codeboten is there a timeline for a new release that includes this patch?

@codeboten
Copy link
Contributor

@antonio hopefully looking at releasing before the end of the week

@antonio
Copy link

antonio commented Oct 30, 2019

@codeboten awesome, thanks.

antonio added a commit to antonio/thanos that referenced this pull request Nov 18, 2019
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>
GiedriusS pushed a commit to thanos-io/thanos that referenced this pull request Nov 19, 2019
* 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>
IKSIN pushed a commit to monitoring-tools/thanos that referenced this pull request Nov 26, 2019
* 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>
fatsheep9146 pushed a commit to fatsheep9146/thanos that referenced this pull request Dec 4, 2019
* 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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Allow NewTracer to return error.
4 participants