Skip to content

Commit e3045be

Browse files
authored
Merge pull request #1461 from ydb-platform/fix-panic
* Fixed panic on usage metrics package from prometheus adapter on `tr…
2 parents 900393f + 1970ee8 commit e3045be

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
* Fixed panic on usage metrics package from prometheus adapter on `trace.Driver.OnNewStream` callback
2+
13
## v3.80.3
24
* Added option `ydb.WithSessionPoolSessionIdleTimeToLive` for restrict idle time of query sessions
35
* Fixed bug with leak of query transactions

metrics/driver.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,10 @@ func driver(config Config) (t trace.Driver) {
6565
if config.Details()&trace.DriverConnStreamEvents != 0 {
6666
requestStatuses.With(map[string]string{
6767
"status": errorBrief(info.Error),
68+
"endpoint": endpoint,
69+
"node_id": strconv.FormatUint(uint64(nodeID), 10),
70+
}).Inc()
71+
requestMethods.With(map[string]string{
6872
"method": string(method),
6973
"endpoint": endpoint,
7074
"node_id": strconv.FormatUint(uint64(nodeID), 10),

0 commit comments

Comments
 (0)