File tree Expand file tree Collapse file tree 1 file changed +0
-16
lines changed Expand file tree Collapse file tree 1 file changed +0
-16
lines changed Original file line number Diff line number Diff line change @@ -165,14 +165,6 @@ namespace telemetry
165
165
}
166
166
span->SetAttribute (" db.user" , stmt->connection ->getCurrentUser ().c_str ());
167
167
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);
176
168
return span;
177
169
}
178
170
@@ -195,14 +187,6 @@ namespace telemetry
195
187
196
188
span->SetAttribute (" db.user" , stmt->connection ->getCurrentUser ().c_str ());
197
189
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);
206
190
return span;
207
191
}
208
192
You can’t perform that action at this time.
0 commit comments