community icon indicating copy to clipboard operation
community copied to clipboard

Display timestamp of log lines

Open JordanSussman opened this issue 3 years ago • 4 comments

Description

Users are currently unable to determine how long each command takes within any given step without printing timestamps themselves. Adding some sort of timestamp to the given log lines would help alleviate this frustration.

Value

  • Users are able to troubleshoot which command(s) are taking the majority of build time
  • Users are able to determine when command(s) were ran

Definition of Done

  • Users are able to view log line timestamps within the UI and API

Effort (Optional)

Impacted Personas (Optional)

JordanSussman avatar Mar 24 '21 15:03 JordanSussman

Should this be configurable? ie should you be able to hide/show the timestamps in the UI?

Or should the timestamps just always be present?

For the kubernetes runtime, I need to flip one boolean flag to start including timestamps, but then they will always be included: https://github.com/go-vela/worker/blob/69101f70dbf7f2714757673a56b35afef5c1d097/runtime/kubernetes/container.go#L247

		opts := &v1.PodLogOptions{
			Container:  ctn.ID,
			Follow:     true,
-			Timestamps: false,
+			Timestamps: true,
		}

cognifloyd avatar May 20 '22 17:05 cognifloyd

working on some design mockups for this issue

what do you think of this? @JordanSussman

Screenshot 2023-03-13 at 10 13 48 AM

im thinking about placement and purpose, the font color is temporary.

plyr4 avatar Jun 05 '23 15:06 plyr4

@wass3rw3rk any thoughts?

plyr4 avatar Jun 05 '23 15:06 plyr4

@wass3rw3rk any thoughts?

ecrupper avatar Jan 03 '24 15:01 ecrupper