Skip to content

Commit

Permalink
Fix incorrectly named timing metrics
Browse files Browse the repository at this point in the history
  • Loading branch information
chrissnell committed Dec 7, 2016
1 parent b3c68ea commit 7fcbde9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions simple.go
Original file line number Diff line number Diff line change
Expand Up @@ -112,13 +112,13 @@ func RunSimpleTest(ctx context.Context, j Job, storage *Storage, client *http.Cl
storage.MetricDistributor <- makeMetric(j.Name, "dns_duration", t1.Sub(t0).Seconds()*1000)
storage.MetricDistributor <- makeMetric(j.Name, "server_connection_duration", t2.Sub(t0).Seconds()*1000)
storage.MetricDistributor <- makeMetric(j.Name, "tls_handshake_duration", t3.Sub(t2).Seconds()*1000)
storage.MetricDistributor <- makeMetric(j.Name, "server_response_duration", t4.Sub(t3).Seconds()*1000)
storage.MetricDistributor <- makeMetric(j.Name, "server_processing_duration", t5.Sub(t4).Seconds()*1000)
storage.MetricDistributor <- makeMetric(j.Name, "server_processing_duration", t4.Sub(t3).Seconds()*1000)
storage.MetricDistributor <- makeMetric(j.Name, "server_response_duration", t5.Sub(t4).Seconds()*1000)

case "http":
storage.MetricDistributor <- makeMetric(j.Name, "dns_duration", t1.Sub(t0).Seconds()*1000)
storage.MetricDistributor <- makeMetric(j.Name, "server_connection_duration", t3.Sub(t1).Seconds()*1000)
storage.MetricDistributor <- makeMetric(j.Name, "server_response_duration", t4.Sub(t3).Seconds()*1000)
storage.MetricDistributor <- makeMetric(j.Name, "server_processing_duration", t5.Sub(t4).Seconds()*1000)
storage.MetricDistributor <- makeMetric(j.Name, "server_processing_duration", t4.Sub(t3).Seconds()*1000)
storage.MetricDistributor <- makeMetric(j.Name, "server_response_duration", t5.Sub(t4).Seconds()*1000)
}
}

0 comments on commit 7fcbde9

Please sign in to comment.