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

Provide a #to_h method for Unleash::Context #135

Closed
tmaier opened this issue Mar 22, 2023 · 1 comment · Fixed by #136
Closed

Provide a #to_h method for Unleash::Context #135

tmaier opened this issue Mar 22, 2023 · 1 comment · Fixed by #136
Labels
enhancement New feature or request

Comments

@tmaier
Copy link
Contributor

tmaier commented Mar 22, 2023

Describe the feature request

The instance of context should be able to be converted to a hash.
The ruby naming convention is a #to_h method to do so.

Background

Sometimes, one wants to re-use the context set. e.g. to report it to Sentry or any other exception tracker.

Solution suggestions

Add a to_h method to Unleash::Context

@tmaier tmaier added the enhancement New feature or request label Mar 22, 2023
@daveleek
Copy link

Thank you for the suggestion and the PR @tmaier, we'll have a look!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

2 participants