master #27

Merged
emmatveev merged 2 commits from master into dev 2025-06-21 12:05:30 +03:00
Showing only changes of commit dce65faffd - Show all commits

View File

@ -14,9 +14,8 @@ import (
)
func writeMetric(timestamp time.Time, endpoint string, statusCode int, responseTime int, method string) {
loc, _ := time.LoadLocation("Europe/Moscow")
err := endpoints.AddEndpointMetric(endpoints.EndpointMetric{
Timestamp: timestamp.In(loc),
Timestamp: timestamp.Add(time.Hour * 3),
Service: "monitoring",
Environment: os.Getenv("STAGE"),
Endpoint: endpoint,