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

add a logger #62

Merged
merged 3 commits into from
Sep 12, 2019
Merged

add a logger #62

merged 3 commits into from
Sep 12, 2019

Conversation

ibawt
Copy link
Contributor

@ibawt ibawt commented Sep 6, 2019

Given the design of having no runtime impact, I thnk that error conditions will end up being eaten and not reported. While I don't think the user of the library will need to handle the cases directly it'd be good know if for instance they screwed up the header for propagation etc etc.

@fbogsany

Copy link
Contributor

@fbogsany fbogsany left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 LGTM


module OpenTelemetry
class << self
attr_accessor :logger
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

would it make more sense to put it to https://github.com/open-telemetry/opentelemetry-ruby/blob/2a22a85e09a2c4823a804d71481c3e4cc606f5fd/api/lib/opentelemetry.rb which already includes similar things and it's on top level also ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we could for sure. I started this thinking we would subclass Logger but I didn't see any reason at the moment.

any opinions @fbogsany ?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nope, no opinions.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lets see what everyone thinks. I'm ok either way.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I moved it in

@fbogsany fbogsany mentioned this pull request Sep 9, 2019
@ibawt ibawt marked this pull request as ready for review September 10, 2019 17:46
@ibawt
Copy link
Contributor Author

ibawt commented Sep 11, 2019

👀

@fbogsany fbogsany merged commit 0ca8039 into open-telemetry:master Sep 12, 2019
@fbogsany fbogsany deleted the logger branch September 12, 2019 01:25
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.

None yet

4 participants