debug

package
v0.37.9-en-fetch-retry... Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2024 License: AGPL-3.0 Imports: 13 Imported by: 0

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) GetResultByTxHash added in v0.37.1

func (t *CallTracer) GetResultByTxHash(txID gethCommon.Hash) json.RawMessage

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 NoopUploader added in v0.37.2

type NoopUploader struct{}

func (*NoopUploader) Upload added in v0.37.2

func (np *NoopUploader) Upload(id string, data json.RawMessage) error

type Uploader

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

func NewNoopUploader added in v0.37.2

func NewNoopUploader() Uploader

NewNoopUploader constructs a new noop uploader

Jump to

Keyboard shortcuts

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