ray
ray copied to clipboard
[core] Add convenience method `RAY_LOG(INFO).WithField(job_id)`.
We added structured logging RAY_LOG(INFO).WithField(kLogKeyJobID, job_id)
. However this is still a bit cumbersome and error prone, since one can write kLogKeyJobID with a NodeID and so on. This PR introduces WithField(job_id)
and detects the field key by type, saving hassle and error.
Also added a new key for ObjectID.
As an example, changed all WithField in gcs_actor_manager.cc
.