Skip to content

Commit

Permalink
bug fix: add sandcastle_alias in file access events
Browse files Browse the repository at this point in the history
Reviewed By: jdelliot

Differential Revision: D68737319

fbshipit-source-id: 6b01849ca0465dfbefcd93fc0424460ba09d1c2b
  • Loading branch information
genevievehelsel authored and facebook-github-bot committed Jan 28, 2025
1 parent 78a8a78 commit 35efddd
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions eden/fs/telemetry/LogEvent.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
};

Expand Down

0 comments on commit 35efddd

Please sign in to comment.