Is there any way with GKE to tag logs with the prefect task id that the log belongs to? I can see flow run ID as part of the logging tabs, but can I get more granular?
c
Christopher Boyd
12/13/2022, 2:06 PM
you should be able to include the TaskRunContext which has task_run_id
I’m not sure if GKE is doing anything special specifically for logging, but Prefect itself is logging based on the default logging configuration + whatever you have additionally configured. Additional configuration to raise / export the task run context and ID would be exported / logged based on these values here
Christopher Boyd
12/13/2022, 5:45 PM
it looks like what you posted above is a K8s job in prefect v1?