Skip to content

Commit

Permalink
Re-add #6e8ae64 Avoid concurrent writes in TestingMonitoring that acc…
Browse files Browse the repository at this point in the history
…identally got reverted
  • Loading branch information
SergeyRyabinin committed May 30, 2024
1 parent 0a88a11 commit 4ba2831
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -83,6 +83,8 @@ class TestingMonitoring : public Aws::Monitoring::MonitoringInterface
AWS_UNREFERENCED_PARAM(serviceName);
AWS_UNREFERENCED_PARAM(requestName);
AWS_UNREFERENCED_PARAM(context);
std::unique_lock<std::mutex> locker(s_lastMutex);

TestingMonitoringMetrics::s_lastUriString = request->GetUri().GetURIString().c_str();
TestingMonitoringMetrics::s_lastSigningRegion = request->GetSigningRegion().c_str();
Aws::Vector<Aws::String> authComponents = request->HasAwsAuthorization() ?
@@ -155,6 +157,7 @@ class TestingMonitoringManager
private:
static void Init()
{
std::unique_lock<std::mutex> locker(s_lastMutex);
TestingMonitoringMetrics::Config::s_enablePayload = false;

TestingMonitoringMetrics::s_lastUriString = "";

0 comments on commit 4ba2831

Please sign in to comment.