{"source":"semconv","version":"1.44.0","attribute":{"id":"thread.id","type":"int","stability":"development","brief":"Current \"managed\" thread ID (as opposed to OS thread ID).","note":"Examples of where the value can be extracted from:\n\n| Language or platform | Source |\n| --- | --- |\n| JVM | `Thread.currentThread().threadId()` |\n| .NET | `Thread.CurrentThread.ManagedThreadId` |\n| Python | `threading.current_thread().ident` |\n| Ruby | `Thread.current.object_id` |\n| C++ | `std::this_thread::get_id()` |\n| Erlang | `erlang:self()` |","examples":["42"],"namespace":"thread","definedIn":"model/thread/registry.yaml","usedBy":[{"groupId":"thread","groupType":"attribute_group","requirementLevel":"recommended"}]},"history":[{"version":"1.30.0","publishedAt":"2025-01-24T19:11:42Z","kind":"first-seen","detail":"Already present at v1.30.0, the oldest release tracked here (experimental)."},{"version":"1.31.0","publishedAt":"2025-03-11T00:53:13Z","kind":"stability-changed","detail":"Stability label respelled from experimental to development.","severity":"informational"}],"replaces":[]}