From: "ioquatix (Samuel Williams)" <noreply@ruby-lang.org>
To: ruby-core@neon.ruby-lang.org
Subject: [ruby-core:110293] [Ruby master Bug#19056] Introduce `Fiber.annotation` for attaching messages to fibers.
Date: Fri, 14 Oct 2022 23:09:31 +0000 (UTC) [thread overview]
Message-ID: <redmine.issue-19056.20221014230931.3344@ruby-lang.org> (raw)
In-Reply-To: redmine.issue-19056.20221014230931.3344@ruby-lang.org
Issue #19056 has been reported by ioquatix (Samuel Williams).
----------------------------------------
Bug #19056: Introduce `Fiber.annotation` for attaching messages to fibers.
https://bugs.ruby-lang.org/issues/19056
* Author: ioquatix (Samuel Williams)
* Status: Open
* Priority: Normal
* Assignee: ioquatix (Samuel Williams)
* Backport: 2.7: UNKNOWN, 3.0: UNKNOWN, 3.1: UNKNOWN
----------------------------------------
It's useful to know what a fiber is doing especially when they have a temporal execution (i.e. sockets connecting vs connected, binding vs accepting, queue popping, etc)
Let's introduce `Fiber.annotate` and `Fiber#annotation` for logging a short message attached to Fibers.
```ruby
Fiber.annotate "Counting to 10"
10.times{|I| puts I}
# Fiber.current.annotation => "Counting to 10"
```
--
https://bugs.ruby-lang.org/
next parent reply other threads:[~2022-10-14 23:09 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-10-14 23:09 ioquatix (Samuel Williams) [this message]
2022-10-15 0:32 ` [ruby-core:110296] [Ruby master Feature#19056] Introduce `Fiber.annotation` for attaching messages to fibers ioquatix (Samuel Williams)
2022-10-15 12:34 ` [ruby-core:110311] " ioquatix (Samuel Williams)
2022-10-20 6:02 ` [ruby-core:110432] " matz (Yukihiro Matsumoto)
2022-10-21 5:18 ` [ruby-core:110456] " mame (Yusuke Endoh)
2022-11-01 1:09 ` [ruby-core:110562] " ioquatix (Samuel Williams)
2023-06-04 14:33 ` [ruby-core:113751] " ioquatix (Samuel Williams) via ruby-core
2023-06-05 9:30 ` [ruby-core:113767] " Eregon (Benoit Daloze) via ruby-core
2023-06-05 9:31 ` [ruby-core:113768] " ioquatix (Samuel Williams) via ruby-core
2023-06-05 9:37 ` [ruby-core:113769] " Eregon (Benoit Daloze) via ruby-core
2023-06-05 9:43 ` [ruby-core:113770] " ioquatix (Samuel Williams) via ruby-core
2024-04-11 3:34 ` [ruby-core:117489] " ioquatix (Samuel Williams) via ruby-core
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-list from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.ruby-lang.org/en/community/mailing-lists/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=redmine.issue-19056.20221014230931.3344@ruby-lang.org \
--to=ruby-core@ruby-lang.org \
--cc=ruby-core@neon.ruby-lang.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).