Skip to content

Commit 6ff6a72

Browse files
thomasywangmeta-codesync[bot]
authored andcommitted
Log to monarch_executions directly
Summary: Each process only logs to monarch_executions once at the beginning of the execution so there is no need to add a scuba client that logs to this table into our tracing subscriber Differential Revision: D87664117
1 parent cc3f3f5 commit 6ff6a72

File tree

1 file changed

+14
-0
lines changed
  • hyperactor_telemetry/src

1 file changed

+14
-0
lines changed

hyperactor_telemetry/src/lib.rs

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -650,6 +650,7 @@ pub fn initialize_logging_with_log_prefix(
650650
tracing::debug!("logging already initialized for this process: {}", err);
651651
}
652652
let exec_id = env::execution_id();
653+
653654
tracing::info!(
654655
target: "execution",
655656
execution_id = exec_id,
@@ -665,6 +666,19 @@ pub fn initialize_logging_with_log_prefix(
665666
revision = build_info::BuildInfo::get_revision(),
666667
"logging_initialized"
667668
);
669+
meta::log_execution_event(
670+
&exec_id,
671+
&Env::current().to_string(),
672+
std::env::args().collect(),
673+
build_info::BuildInfo::get_build_mode(),
674+
build_info::BuildInfo::get_compiler(),
675+
build_info::BuildInfo::get_compiler_version(),
676+
build_info::BuildInfo::get_rule(),
677+
build_info::BuildInfo::get_package_name(),
678+
build_info::BuildInfo::get_package_release(),
679+
build_info::BuildInfo::get_upstream_revision(),
680+
build_info::BuildInfo::get_revision(),
681+
);
668682

669683
if !is_layer_disabled(DISABLE_OTEL_METRICS) {
670684
otel::init_metrics();

0 commit comments

Comments
 (0)