Skip to content

Commit

Permalink
chore: output timestamp in debug mode
Browse files Browse the repository at this point in the history
  • Loading branch information
kongfei605 committed Sep 4, 2024
1 parent c6c5451 commit ab04fa3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions writer/writers.go
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,8 @@ func printTestMetrics(samples []*types.Sample) {
func printTestMetric(sample *types.Sample) {
var sb strings.Builder

sb.WriteString(fmt.Sprintf("%d", sample.Timestamp.Unix()))
sb.WriteString(" ")
sb.WriteString(sample.Timestamp.Format("15:04:05"))
sb.WriteString(" ")
sb.WriteString(sample.Metric)
Expand Down

0 comments on commit ab04fa3

Please sign in to comment.