We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 42de6df commit 8912184Copy full SHA for 8912184
src/lightstep_span.cpp
@@ -300,6 +300,7 @@ void LightStepSpan::Log(std::initializer_list<
300
for (const auto& field : fields) {
301
*key_values->Add() = ToKeyValue(field.first, field.second);
302
}
303
+ std::lock_guard<std::mutex> lock_guard{mutex_};
304
logs_.emplace_back(std::move(log));
305
} catch (const std::exception& e) {
306
logger_.Error("Log failed: ", e.what());
0 commit comments