Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: add reason tag in failed requests and failed events stats #2430

Merged
merged 7 commits into from
Oct 11, 2022
2 changes: 2 additions & 0 deletions gateway/gateway.go
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,7 @@ func (gateway *HandleT) updateSourceStats(sourceStats map[string]int, bucket str
"writeKey": sourceTagMap[sourceTag],
"reqType": sourceTagMap["reqType"],
"workspaceId": sourceTagMap["workspaceId"],
"sourceID": sourceTagMap["sourceID"],
}
sourceStatsD := gateway.stats.NewTaggedStat(bucket, stats.CountType, tags)
sourceStatsD.Count(count)
Expand All @@ -210,6 +211,7 @@ func (gateway *HandleT) updateFailedSourceStats(sourceStats map[string]int, buck
"reqType": sourceTagMap["reqType"],
"workspaceId": sourceTagMap["workspaceId"],
"reason": sourceTagMap["reason"],
"sourceID": sourceTagMap["sourceID"],
chandumlg marked this conversation as resolved.
Show resolved Hide resolved
}
sourceStatsD := gateway.stats.NewTaggedStat(bucket, stats.CountType, tags)
sourceStatsD.Count(count)
Expand Down