Skip to content

fix: do not register metrics in init()#3183

Draft
miparnisari wants to merge 1 commit into
mainfrom
no-init-to-register-crdb-metrics
Draft

fix: do not register metrics in init()#3183
miparnisari wants to merge 1 commit into
mainfrom
no-init-to-register-crdb-metrics

Conversation

@miparnisari

Copy link
Copy Markdown
Contributor

Follow-up to #3170

@github-actions github-actions Bot added area/datastore Affects the storage system area/tooling Affects the dev or user toolchain (e.g. tests, ci, build tools) labels Jun 16, 2026
@codecov

codecov Bot commented Jun 16, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 95.74468% with 4 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
internal/datastore/crdb/pool/pool.go 83.34% 2 Missing and 1 partial ⚠️
internal/datastore/crdb/pool/balancer.go 97.06% 1 Missing ⚠️

📢 Thoughts on this report? Let us know!

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Performance Alert ⚠️

Possible performance regression was detected for benchmark.
Benchmark result of this commit is worse than the previous benchmark result exceeding threshold 2.

Benchmark suite Current: 95c080e Previous: 50b2c8c Ratio
BenchmarkDatastoreDriver/cockroachdb-overlap-static/TestTuple/SnapshotReverseRead (github.com/authzed/spicedb/internal/datastore/benchmark) 34633215 ns/op 172559 B/op 20195 allocs/op 7662684 ns/op 172828 B/op 20195 allocs/op 4.52
BenchmarkDatastoreDriver/cockroachdb-overlap-static/TestTuple/SnapshotReverseRead (github.com/authzed/spicedb/internal/datastore/benchmark) - ns/op 34633215 ns/op 7662684 ns/op 4.52
BenchmarkDatastoreDriver/cockroachdb-overlap-insecure/TestTuple/SnapshotReverseRead (github.com/authzed/spicedb/internal/datastore/benchmark) 33304709 ns/op 172617 B/op 20196 allocs/op 7742081 ns/op 172631 B/op 20195 allocs/op 4.30
BenchmarkDatastoreDriver/cockroachdb-overlap-insecure/TestTuple/SnapshotReverseRead (github.com/authzed/spicedb/internal/datastore/benchmark) - ns/op 33304709 ns/op 7742081 ns/op 4.30

This comment was automatically generated by workflow using github-action-benchmark.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/datastore Affects the storage system area/tooling Affects the dev or user toolchain (e.g. tests, ci, build tools)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant