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

Scope the shoryuken context to the current fiber. #765

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

ioquatix
Copy link

@ioquatix ioquatix commented Mar 6, 2024

I'd like to start a discussion about how to more efficiently manage the context during logging.

This exposes a proper interface for getting the current context.

In addition, I'd like to understand, do you expect if someone creates child fibers or threads, that the context should be shared? e.g. map-reduce / fan-out style workloads. I'm assuming the answer should be yes, but I'd like to know your opinion. In that case, it's better to use Fiber#storage.

Copy link

github-actions bot commented May 6, 2024

This PR is now marked as stale because it hasn't seen activity for a while. Add a comment or it will be closed soon.

@github-actions github-actions bot added the Stale label May 6, 2024
@ioquatix
Copy link
Author

ioquatix commented May 6, 2024

@phstc do you have time to review? Thanks!

@phstc
Copy link
Collaborator

phstc commented May 7, 2024

Hi @ioquatix

Sorry, I'm a bit out of the loop here. Are there any breaking changes here?

I'd like to start a discussion about how to more efficiently manage the context during logging.

Asking in case this is good to go as a patch version or if there is any concern with a specific version of Ruby or Rails.

@github-actions github-actions bot removed the Stale label May 7, 2024
@ioquatix
Copy link
Author

ioquatix commented May 7, 2024

In general, I don't believe this is a breaking change.

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

2 participants