Documentation
¶
Index ¶
- Constants
- Variables
- type HashPrestateFetcher
- type LocalPrestateFetcher
- type Metricer
- type Metrics
- func (m *Metrics) RecordSetupFailure(vmType string)
- func (m *Metrics) RecordSuccess(vmType string)
- func (m *Metrics) RecordUp()
- func (m *Metrics) RecordVmExecutionTime(vmType string, dur time.Duration)
- func (m *Metrics) RecordVmFailure(vmType string, reason string)
- func (m *Metrics) RecordVmMemoryUsed(vmType string, memoryUsed uint64)
- func (m *Metrics) Registry() *prometheus.Registry
- type NamedPrestateFetcher
- type OnChainPrestateFetcher
- type RunConfig
- type Runner
- type TraceProviderCreator
Constants ¶
View Source
const ( ReasonIncorrectStatus = "incorrect_status" ReasonPanic = "panic" ReasonTimeout = "timeout" )
Reason labels for vmFailuresTotal metric
View Source
const Namespace = "op_challenger_runner"
Variables ¶
View Source
var ( ErrUnexpectedStatusCode = errors.New("unexpected status code") ErrVMTimeout = errors.New("VM execution timed out") )
Functions ¶
This section is empty.
Types ¶
type HashPrestateFetcher ¶
type HashPrestateFetcher struct {
// contains filtered or unexported fields
}
type LocalPrestateFetcher ¶
type LocalPrestateFetcher struct {
// contains filtered or unexported fields
}
type Metricer ¶
type Metricer interface {
contractMetrics.ContractMetricer
metrics.VmMetricer
opmetrics.RPCMetricer
RecordSetupFailure(vmType string)
RecordVmFailure(vmType string, reason string)
RecordSuccess(vmType string)
}
type Metrics ¶
type Metrics struct {
*contractMetrics.ContractMetrics
*metrics.VmMetrics
opmetrics.RPCMetrics
// contains filtered or unexported fields
}
func NewMetrics ¶
func (*Metrics) RecordSetupFailure ¶
func (*Metrics) RecordSuccess ¶
func (*Metrics) RecordVmExecutionTime ¶
func (*Metrics) RecordVmFailure ¶
func (*Metrics) RecordVmMemoryUsed ¶
func (*Metrics) Registry ¶
func (m *Metrics) Registry() *prometheus.Registry
type NamedPrestateFetcher ¶
type NamedPrestateFetcher struct {
// contains filtered or unexported fields
}
NamedPrestateFetcher downloads a file with a specified name from the prestate base URL and uses it as the prestate. The file is re-downloaded on each run rather than being cached. This makes it possible to run the latest builds from develop.
type OnChainPrestateFetcher ¶
type OnChainPrestateFetcher struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.