Skip to content

Commit

Permalink
Merge pull request #1495 from ydb-platform/fix_latency_metrics
Browse files Browse the repository at this point in the history
Do not report latency metrics when metrics are disabled
  • Loading branch information
asmyasnikov authored Oct 2, 2024
2 parents 05a2dde + 4e055be commit 6fb3f52
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
* Disabled reporting of `ydb_go_sdk_ydb_query_session_create_latency histogram metrics` when metrics are disabled
* Allowed skip column for `ScanStruct` by tag `-`

## v3.81.4
Expand Down
2 changes: 1 addition & 1 deletion metrics/query.go
Original file line number Diff line number Diff line change
Expand Up @@ -124,8 +124,8 @@ func query(config Config) (t trace.Query) {
errs.With(map[string]string{
"status": errorBrief(info.Error),
}).Inc()
latency.With(nil).Record(time.Since(start))
}
latency.With(nil).Record(time.Since(start))
}
}
}
Expand Down

0 comments on commit 6fb3f52

Please sign in to comment.