debug

package
v0.37.0-crescendo-RC6-... Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 10, 2024 License: AGPL-3.0 Imports: 13 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var NopTracer = &nopTracer{}

Functions

func NewSafeTxTracer added in v0.36.7

func NewSafeTxTracer(ct *CallTracer) *tracers.Tracer

func TraceID

func TraceID(txID gethCommon.Hash, blockID flow.Identifier) string

Types

type CallTracer

type CallTracer struct {
	// contains filtered or unexported fields
}

func NewEVMCallTracer

func NewEVMCallTracer(uploader Uploader, logger zerolog.Logger) (*CallTracer, error)

func (*CallTracer) Collect

func (t *CallTracer) Collect(txID gethCommon.Hash)

func (*CallTracer) ResetTracer added in v0.37.1

func (t *CallTracer) ResetTracer() error

func (*CallTracer) TxTracer

func (t *CallTracer) TxTracer() *tracers.Tracer

func (*CallTracer) WithBlockID

func (t *CallTracer) WithBlockID(id flow.Identifier)

type EVMTracer

type EVMTracer interface {
	WithBlockID(identifier flow.Identifier)
	TxTracer() *tracers.Tracer
	Collect(txID gethCommon.Hash)
}

type GCPUploader

type GCPUploader struct {
	// contains filtered or unexported fields
}

func NewGCPUploader

func NewGCPUploader(bucketName string) (*GCPUploader, error)

func (*GCPUploader) Upload

func (g *GCPUploader) Upload(id string, data json.RawMessage) error

Upload traces to the GCP for the given id. The upload will be retried by the client if the error is transient.

type Uploader

type Uploader interface {
	Upload(id string, data json.RawMessage) error
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL