Skip to content

Commit

Permalink
Take GUID from processGUID() singleton in StatisticsSenderService
Browse files Browse the repository at this point in the history
This will allow correlating information from the same process in
different monitoring systems.
  • Loading branch information
makortel committed Dec 21, 2021
1 parent a3d0a21 commit 68dc812
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions FWCore/Framework/src/InputSource.cc
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
#include "FWCore/ServiceRegistry/interface/StreamContext.h"
#include "FWCore/ParameterSet/interface/ConfigurationDescriptions.h"
#include "FWCore/ParameterSet/interface/ParameterSetDescription.h"
#include "FWCore/Utilities/interface/GlobalIdentifier.h"
#include "FWCore/Utilities/interface/processGUID.h"
#include "FWCore/Utilities/interface/TimeOfDay.h"

#include <cassert>
Expand Down Expand Up @@ -59,7 +59,7 @@ namespace edm {
branchIDListHelper_(desc.branchIDListHelper_),
processBlockHelper_(desc.processBlockHelper_),
thinnedAssociationsHelper_(desc.thinnedAssociationsHelper_),
processGUID_(createGlobalIdentifier(true)),
processGUID_(edm::processGUID().toBinary()),
time_(),
newRun_(true),
newLumi_(true),
Expand Down
4 changes: 2 additions & 2 deletions Utilities/StorageFactory/src/StatisticsSenderService.cc
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#include "FWCore/Catalog/interface/SiteLocalConfig.h"
#include "FWCore/ServiceRegistry/interface/Service.h"
#include "FWCore/MessageLogger/interface/MessageLogger.h"
#include "FWCore/Utilities/interface/Guid.h"
#include "FWCore/Utilities/interface/processGUID.h"

#include <string>
#include <cmath>
Expand Down Expand Up @@ -169,7 +169,7 @@ StatisticsSenderService::StatisticsSenderService(edm::ParameterSet const &iPSet,
: m_clienthost("unknown"),
m_clientdomain("unknown"),
m_filestats(),
m_guid(Guid().toString()),
m_guid(edm::processGUID().toString()),
m_counter(0),
m_userdn("unknown"),
m_debug(iPSet.getUntrackedParameter<bool>("debug", false)) {
Expand Down

0 comments on commit 68dc812

Please sign in to comment.