prefect
prefect copied to clipboard
Provide Clarity On Which agent generates logs related to a flow run.
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
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.
What kind of information will be used to uniquely identify the agent here?