From b3af1e8b0325b31898e4c455afedf5dcad602f50 Mon Sep 17 00:00:00 2001 From: fallwith Date: Fri, 22 Apr 2022 21:34:52 -0700 Subject: [PATCH] Specify how to obtain a Ruby thread's id Update the span-general.md#source-code-attributes table for obtaining thread ids and names across languages to explain how to obtain a thread's id for Ruby. --- specification/trace/semantic_conventions/span-general.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/trace/semantic_conventions/span-general.md b/specification/trace/semantic_conventions/span-general.md index 03f99a23ca7..5957f50cc0b 100644 --- a/specification/trace/semantic_conventions/span-general.md +++ b/specification/trace/semantic_conventions/span-general.md @@ -203,7 +203,7 @@ Examples of where `thread.id` and `thread.name` can be extracted from: | JVM | `Thread.currentThread().getId()` | `Thread.currentThread().getName()` | | .NET | `Thread.CurrentThread.ManagedThreadId` | `Thread.CurrentThread.Name` | | Python | `threading.current_thread().ident` | `threading.current_thread().name` | -| Ruby | | `Thread.current.name` | +| Ruby | `Thread.current.object_id` | `Thread.current.name` | | C++ | `std::this_thread::get_id()` | | | Erlang | `erlang:system_info(scheduler_id)` | |