debug

package
v0.36.4 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var NopTracer = &nopTracer{}

Functions

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) 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