prefect icon indicating copy to clipboard operation
prefect copied to clipboard

Provide Clarity On Which agent generates logs related to a flow run.

Open masonmenges opened this issue 2 years ago • 2 comments

First check

  • [X] I added a descriptive title to this issue.
  • [X] I used the GitHub search to find a similar request and didn't find it.
  • [X] I searched the Prefect documentation for this feature.

Prefect Version

2.x

Describe the current behavior

In situations where multiple agents tied to the same workqueue pick up the same flow run it's unclear in the logs which agent is generating the logs.

2 Simple Examples where this would be helpful to know which agent generated the log

  • Flow run submitted successfully
  • Flow run aborted.

Describe the proposed behavior

Logs created for a flow run would contain some identifying information to allow users to determine where their flows were executed.

Example Use

No response

Additional context

No response

masonmenges avatar Sep 09 '22 19:09 masonmenges

Thanks @masonmenges! We have a similar issue about tracking the agent in the UI (#6256), which might be of interest to you. But, I agree that seeing that information in the logs would be helpful as well.

bunchesofdonald avatar Sep 12 '22 14:09 bunchesofdonald

What kind of information will be used to uniquely identify the agent here?

zanieb avatar Sep 12 '22 16:09 zanieb