metrics
Build and Publish / BuildAndDeployAmd64 (push) Failing after 3s
Build and Publish / BuildAndDeployArm64 (push) Failing after 5s

This commit is contained in:
2026-07-02 10:37:36 +02:00
parent 26fd6dc970
commit 2e2060da5c
11 changed files with 481 additions and 65 deletions
+7 -12
View File
@@ -19,8 +19,6 @@ import (
"git.k6n.net/mats/platform/inventory"
adyen "github.com/adyen/adyen-go-api-library/v21/src/adyen"
"github.com/prometheus/client_golang/prometheus"
"github.com/prometheus/client_golang/prometheus/promauto"
"go.opentelemetry.io/contrib/bridges/otelslog"
"go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp"
"google.golang.org/protobuf/proto"
@@ -33,16 +31,13 @@ import (
"go.opentelemetry.io/otel/trace"
)
var (
grainMutations = promauto.NewCounter(prometheus.CounterOpts{
Name: "checkout_grain_mutations_total",
Help: "The total number of mutations",
})
grainLookups = promauto.NewCounter(prometheus.CounterOpts{
Name: "checkout_grain_lookups_total",
Help: "The total number of lookups",
})
)
// Pool metrics (checkout_grain_spawned_total, checkout_grain_lookups_total,
// checkout_mutations_total, checkout_remote_negotiation_total,
// checkout_connected_remotes, …) are bumped centrally by
// SimpleGrainPool — see pkg/actor/simple_grain_pool.go. The checkout
// Metrics is registered once in cmd/checkout/main.go and shared with
// DiskStorage via SetMetrics, so the per-handler counters this file
// used to maintain are no longer needed.
type CheckoutPoolServer struct {
actor.GrainPool[checkout.CheckoutGrain]