mirror of
https://github.com/BeamMP/BeamMP-Server.git
synced 2026-02-16 10:41:01 +00:00
Sentry: use locked contexts to send data to avoid races
This commit is contained in:
@@ -48,6 +48,7 @@ void THeartbeatThread::operator()() {
|
||||
debug("server returned \"" + T + "\"");
|
||||
if (T.size() > std::string("YOU_SHALL_NOT_PASS").size()
|
||||
&& Application::Settings.Key.size() == 36) {
|
||||
auto Lock = Sentry.CreateExclusiveContext();
|
||||
Sentry.AddExtra("response-body", T);
|
||||
Sentry.AddExtra("request-body", Body);
|
||||
Sentry.SetTransaction(Application::GetBackendHostname() + Target);
|
||||
|
||||
Reference in New Issue
Block a user