Fix internal breakage.

PiperOrigin-RevId: 253907570
This commit is contained in:
A. Unique TensorFlower 2019-06-18 18:02:53 -07:00 committed by TensorFlower Gardener
parent 3b72942bee
commit a41f003d37

View File

@ -21,8 +21,9 @@ namespace tensorflow {
namespace {
auto* session_created = monitoring::Gauge<bool, 0>::New(
"/tensorflow/core/session_created", "True if a session was created.");
auto* worker_session_created =
monitoring::Gauge<bool, 0>::New("/tensorflow/core/worker_session_created",
"True if a worker session was created.");
// A private cache that wraps worker_cache and allows reuse of
// WorkerInterface objects.
@ -117,7 +118,7 @@ WorkerSession::WorkerSession(const string& session_name,
// Starts exporting metrics through a platform-specific monitoring API (if
// provided). For builds using "tensorflow/core/platform/default", this is
// currently a no-op.
session_created->GetCell()->Set(true);
worker_session_created->GetCell()->Set(true);
monitoring::StartExporter();
}
@ -150,7 +151,7 @@ WorkerSession::WorkerSession(const string& session_name,
// Starts exporting metrics through a platform-specific monitoring API (if
// provided). For builds using "tensorflow/core/platform/default", this is
// currently a no-op.
session_created->GetCell()->Set(true);
worker_session_created->GetCell()->Set(true);
monitoring::StartExporter();
}