Compare commits

..

No commits in common. "15563aa75d144808323dd4b9f41de1c204b24b0f" and "56add999c6404822cc502be6c2f22e506737eb4a" have entirely different histories.

View File

@ -15,10 +15,9 @@ import (
)
func writeMetric(timestamp time.Time, endpoint string, statusCode int, responseTime int, method string) {
loc, _ := time.LoadLocation("Europe/Moscow")
s := fmt.Sprintf(
`{"timestamp":"%s","service":"queues","environment":"%s","endpoint":"%s","status_code":%s,"response_time":%s,"method":"%s"}`,
timestamp.In(loc).Format("2006-01-02T15:04:05Z"),
timestamp.Format("2006-01-02T15:04:05Z"),
os.Getenv("STAGE"),
endpoint,
strconv.Itoa(statusCode),