Skip to content

feat: add prometheus metrics for DispatchQueryPlan#3109

Merged
barakmich merged 1 commit into
mainfrom
barakmich/dispatch_metrics
May 12, 2026
Merged

feat: add prometheus metrics for DispatchQueryPlan#3109
barakmich merged 1 commit into
mainfrom
barakmich/dispatch_metrics

Conversation

@barakmich
Copy link
Copy Markdown
Contributor

Description

We weren't keeping track of Prometheus dispatch metrics for DispatchQueryPlan in our load testing. This adds them, and separable by operation.

@barakmich barakmich requested a review from a team as a code owner May 12, 2026 00:08
@github-actions github-actions Bot added area/tooling Affects the dev or user toolchain (e.g. tests, ci, build tools) area/dispatch Affects dispatching of requests labels May 12, 2026
@codecov
Copy link
Copy Markdown

codecov Bot commented May 12, 2026

Codecov Report

❌ Patch coverage is 75.47170% with 13 lines in your changes missing coverage. Please review.
✅ Project coverage is 75.66%. Comparing base (b15effc) to head (0310927).

Files with missing lines Patch % Lines
internal/dispatch/caching/caching.go 79.32% 4 Missing and 2 partials ⚠️
internal/dispatch/planlabel.go 57.15% 6 Missing ⚠️
internal/dispatch/remote/cluster.go 83.34% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3109      +/-   ##
==========================================
+ Coverage   75.60%   75.66%   +0.06%     
==========================================
  Files         504      505       +1     
  Lines       62045    62094      +49     
==========================================
+ Hits        46903    46976      +73     
+ Misses      11724    11700      -24     
  Partials     3418     3418              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Copy link
Copy Markdown

@github-actions github-actions Bot left a comment

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: 0310927 Previous: b15effc Ratio
BenchmarkDatastoreDriver/cockroachdb-overlap-static/TestTuple/SnapshotReverseRead (github.com/authzed/spicedb/internal/datastore/benchmark) 35398991 ns/op 175069 B/op 20202 allocs/op 7868627 ns/op 172730 B/op 20195 allocs/op 4.50
BenchmarkDatastoreDriver/cockroachdb-overlap-static/TestTuple/SnapshotReverseRead (github.com/authzed/spicedb/internal/datastore/benchmark) - ns/op 35398991 ns/op 7868627 ns/op 4.50
BenchmarkDatastoreDriver/cockroachdb-overlap-insecure/TestTuple/SnapshotReverseRead (github.com/authzed/spicedb/internal/datastore/benchmark) 33867726 ns/op 172522 B/op 20195 allocs/op 7716523 ns/op 172636 B/op 20195 allocs/op 4.39
BenchmarkDatastoreDriver/cockroachdb-overlap-insecure/TestTuple/SnapshotReverseRead (github.com/authzed/spicedb/internal/datastore/benchmark) - ns/op 33867726 ns/op 7716523 ns/op 4.39

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

@barakmich barakmich force-pushed the barakmich/dispatch_metrics branch from bf0f210 to 0310927 Compare May 12, 2026 00:16
Copy link
Copy Markdown
Contributor

@tstirrat15 tstirrat15 left a comment

Choose a reason for hiding this comment

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

LGTM

@barakmich barakmich merged commit b084074 into main May 12, 2026
44 of 46 checks passed
@barakmich barakmich deleted the barakmich/dispatch_metrics branch May 12, 2026 16:14
@github-actions github-actions Bot locked and limited conversation to collaborators May 12, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area/dispatch Affects dispatching of requests area/tooling Affects the dev or user toolchain (e.g. tests, ci, build tools) Skip-Changelog

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants