mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2025-01-05 09:14:28 +00:00
59be30e9f4
* initial commit for metrics, tracing, and code coverage * fixing unit test, logs, and naming conventions * Update validator/keymanager/remote-web3signer/internal/client.go Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com> * Update validator/keymanager/remote-web3signer/internal/client.go Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com> * adding required dependency * adding more error annotations * adding in negative test * fixing bazel build * gaz * Update validator/client/validator_test.go Co-authored-by: Raul Jordan <raul@prysmaticlabs.com> * Update validator/client/validator_test.go Co-authored-by: Raul Jordan <raul@prysmaticlabs.com> * Update validator/client/service.go Co-authored-by: Raul Jordan <raul@prysmaticlabs.com> * Update validator/keymanager/remote-web3signer/internal/client.go Co-authored-by: Raul Jordan <raul@prysmaticlabs.com> * Update validator/client/validator_test.go Co-authored-by: Raul Jordan <raul@prysmaticlabs.com> * Update validator/client/validator_test.go Co-authored-by: Raul Jordan <raul@prysmaticlabs.com> * addressing review comments * Update validator/keymanager/remote-web3signer/internal/client_test.go * reverting channel direction Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com> Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
18 lines
451 B
Go
18 lines
451 B
Go
package internal
|
|
|
|
import (
|
|
"github.com/prometheus/client_golang/prometheus"
|
|
"github.com/prometheus/client_golang/prometheus/promauto"
|
|
)
|
|
|
|
var (
|
|
signRequestDurationSeconds = promauto.NewHistogramVec(
|
|
prometheus.HistogramOpts{
|
|
Name: "remote_web3signer_internal_client_request_duration_seconds",
|
|
Help: "Time (in seconds) spent doing client HTTP requests",
|
|
Buckets: prometheus.DefBuckets,
|
|
},
|
|
[]string{"method", "status_code"},
|
|
)
|
|
)
|