Skip to content

Commit

Permalink
chore: output timestamp in debug mode (#1044)
Browse files Browse the repository at this point in the history
  • Loading branch information
kongfei605 authored Sep 4, 2024
1 parent 452a183 commit f7c4156
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 f7c4156

Please sign in to comment.