How to Access Start and End Time of Each Step from a Later Step in Workflows for Telemetry Purposes?

This topic was automatically generated from Slack. You can find the original thread here.

Is there any way to access the start and end time of each step from a later step? Pi is trying to access $start_at and $end_at, but they don’t seem to be accessible. I’m trying to add telemetry to my workflows in as generic a fashion as possible.

I would LOVE if this were possible!!

That way we could add a generic “log_telemetry” custom action/step at the end of all our workflows. :ok_hand:

You’d think it’d be a pretty simple feature to save the timestamp a step started & ended at (and make those available along with the values exported from the step)… :man-shrugging:

That’s what I’m trying to do, essentially. I’m about to set all my Node.js and Python steps to export a metrics object with step name, start time, end time, and whatever metrics I want to include for the particular step. Then have a step at the end that takes all of those and generates an insert into a Snowflake telemetry table.