From c492cce4a7115f1cab229783dbdfbe3cbead9c43 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Johan=20Tid=C3=A9n?= Date: Tue, 3 Sep 2024 12:30:35 +0200 Subject: [PATCH] Change deprecated Java example (#1378) Co-authored-by: Alexander Wert --- docs/general/attributes.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/general/attributes.md b/docs/general/attributes.md index 62f572e00e..e59e4e5688 100644 --- a/docs/general/attributes.md +++ b/docs/general/attributes.md @@ -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` |