본문으로 바로가기 본문 바로가기
WIKI 기술 지식 베이스

Thread

원문 보기 위키 갱신

이 속성들은 스팬(span)을 시작한 스레드에 대한 정보를 저장하기 위해 어떤 연산에서도 사용될 수 있어요.

출처: 문서

본문

Thread 속성

이 속성들은 스팬을 시작한 스레드에 대한 정보를 저장하기 위해 어떤 연산에서도 사용될 수 있어요.

속성:

Key Stability Value Type Description Example Values
thread.id int Current “managed” thread ID (as opposed to OS thread ID). [1] 42
thread.name string Current thread name. [2] main

[1] thread.id: Examples of where the value can be extracted from: | Language or platform | Source | |---|---| | JVM | Thread.currentThread().threadId() | | .NET | Thread.CurrentThread.ManagedThreadId | | Python | threading.current_thread().ident | | Ruby | Thread.current.object_id | | C++ | std::this_thread::get_id() | | Erlang | erlang:self() |

[2] thread.name: Examples of where the value can be extracted from: | Language or platform | Source | |---|---| | JVM | Thread.currentThread().getName() | | .NET | Thread.CurrentThread.Name | | Python | threading.current_thread().name | | Ruby | Thread.current.name | | Erlang | erlang:process_info(self(), registered_name) |

더 알아보기 (Learn more)