Skip to content

Commit eba436c

Browse files
committed
WL#15808: Remove "thread.id" attribute.
1 parent 9f2ffc5 commit eba436c

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

jdbc/driver/mysql_telemetry.cpp

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -165,14 +165,6 @@ namespace telemetry
165165
}
166166
span->SetAttribute("db.user", stmt->connection->getCurrentUser().c_str());
167167

168-
#ifdef _WIN32
169-
DWORD tid = GetCurrentThreadId();
170-
#else
171-
auto tid = pthread_self();
172-
#endif
173-
// Currently the conversion of native thread ID to unsigned long
174-
// is possible, but in the future it might change.
175-
span->SetAttribute("thread.id", (unsigned long)tid);
176168
return span;
177169
}
178170

@@ -195,14 +187,6 @@ namespace telemetry
195187

196188
span->SetAttribute("db.user", stmt->connection->getCurrentUser().c_str());
197189

198-
#ifdef _WIN32
199-
DWORD tid = GetCurrentThreadId();
200-
#else
201-
auto tid = pthread_self();
202-
#endif
203-
// Currently the conversion of native thread ID to unsigned long
204-
// is possible, but in the future it might change.
205-
span->SetAttribute("thread.id", (unsigned long)tid);
206190
return span;
207191
}
208192

0 commit comments

Comments
 (0)