Skip to content

Commit

Permalink
Specify how to obtain a Ruby thread's id
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
fallwith committed Apr 23, 2022
1 parent 9623aec commit b3af1e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion specification/trace/semantic_conventions/span-general.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)` | |

Expand Down

0 comments on commit b3af1e8

Please sign in to comment.