diff --git a/eden/fs/telemetry/LogEvent.h b/eden/fs/telemetry/LogEvent.h index 74c4ac045c6c5..0c76399fc1bf5 100644 --- a/eden/fs/telemetry/LogEvent.h +++ b/eden/fs/telemetry/LogEvent.h @@ -750,6 +750,12 @@ struct FileAccessEvent : public EdenFSFileAccessEvent { event.addString("filename", filename); event.addString("source", source); event.addString("source_detail", source_detail); + + if (auto alias = std::getenv("SANDCASTLE_ALIAS")) { + // Log the Sandcastle job alias if set. If we decide to use predictive + // prefetch profiles on sandcastle, we will want the sandcastle alias. + event.addString("sandcastle_alias", alias); + } } };