ray icon indicating copy to clipboard operation
ray copied to clipboard

[core] Add convenience method `RAY_LOG(INFO).WithField(job_id)`.

Open rynewang opened this issue 7 months ago • 2 comments

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.

rynewang avatar Jun 29 '24 04:06 rynewang