debug

package
v0.33.30 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2024 License: AGPL-3.0 Imports: 10 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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