Update dependency async to v2.20.0 #258
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
2.18.0
->2.20.0
Release Notes
socketry/async (async)
v2.20.0
Compare Source
Traces and Metrics Providers
Async now has traces and metrics providers for various core classes. This allows you to emit traces and metrics to a suitable backend (including DataDog, New Relic, OpenTelemetry, etc.) for monitoring and debugging purposes.
To take advantage of this feature, you will need to introduce your own
config/traces.rb
andconfig/metrics.rb
. Async's own repository includes these files for testing purposes, you could copy them into your own project and modify them as needed.v2.19.0
Compare Source
Async::Scheduler Debugging
Occasionally on issues, I encounter people asking for help and I need more information. Pressing Ctrl-C to exit a hung program is common, but it usually doesn't provide enough information to diagnose the problem. Setting the
CONSOLE_LEVEL=debug
environment variable will now print additional information about the scheduler when you interrupt it, including a backtrace of the current tasks.This gives better visibility into what the scheduler is doing, and should help diagnose issues.
Console Shims
The
async
gem depends onconsole
gem, because my goal was to have good logging by default without thinking about it too much. However, some users prefer to avoid using theconsole
gem for logging, so I've added an experimental set of shims which should allow you to bypass theconsole
gem entirely.Will now use
Kernel#warn
to print the task failure warning:Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.