Merge pull request 'fix' (#26) from master into prod

Reviewed-on: https://gitea.chocomarsh.com/self/monitoring/pulls/26
This commit is contained in:
emmatveev 2025-06-18 16:35:21 +03:00
commit 028db059fe

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,