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

Make the libhoney client instance accessible. #70

Merged
merged 2 commits into from
Feb 7, 2020

Conversation

paulosman
Copy link
Contributor

There are cases where a beeline user would like to get access to the
libhoney instance directly. This makes it possible by calling
Honeycomb.libhoney at any time.

There are cases where a beeline user would like to get access to the
libhoney instance directly. This makes it possible by calling
`Honeycomb.libhoney` at any time.
Copy link
Member

@martin308 martin308 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!

def_delegators :@client, :start_span, :add_field, :add_field_to_trace,
:current_span, :current_trace
def_delegators :@client, :libhoney, :start_span, :add_field,
:add_field_to_trace, :current_span, :current_trace
Copy link
Member

Choose a reason for hiding this comment

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

maybe we could add a basic test to this file for this new delegator? https://github.com/honeycombio/beeline-ruby/blob/master/spec/honeycomb/beeline_spec.rb

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good idea - done!

Copy link
Member

@martin308 martin308 left a comment

Choose a reason for hiding this comment

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

🚢

expect(Honeycomb.libhoney).to eq libhoney_client
end
end

Copy link
Member

Choose a reason for hiding this comment

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

🙌

@paulosman paulosman merged commit 4c55ae0 into master Feb 7, 2020
@paulosman paulosman deleted the paul.client_accessor branch February 7, 2020 16:50
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.

2 participants