Skip to content

Commit

Permalink
Change deprecated Java example (#1378)
Browse files Browse the repository at this point in the history
Co-authored-by: Alexander Wert <[email protected]>
  • Loading branch information
johantiden and AlexanderWert authored Sep 3, 2024
1 parent 5654b20 commit c492cce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/general/attributes.md
Original file line number Diff line number Diff line change
Expand Up @@ -480,7 +480,7 @@ Examples of where `thread.id` and `thread.name` can be extracted from:

| Language or platform | `thread.id` | `thread.name` |
|-----------------------|----------------------------------------|------------------------------------------------|
| JVM | `Thread.currentThread().getId()` | `Thread.currentThread().getName()` |
| JVM | `Thread.currentThread().threadId()` | `Thread.currentThread().getName()` |
| .NET | `Thread.CurrentThread.ManagedThreadId` | `Thread.CurrentThread.Name` |
| Python | `threading.current_thread().ident` | `threading.current_thread().name` |
| Ruby | `Thread.current.object_id` | `Thread.current.name` |
Expand Down

0 comments on commit c492cce

Please sign in to comment.