trace

package
v0.31.14 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

This section is empty.

Types

type NoopTracer

type NoopTracer struct{}

NoopTracer is the implementation of the Tracer interface.

func NewNoopTracer

func NewNoopTracer() *NoopTracer

NewNoopTracer creates a new tracer with no ops

func (*NoopTracer) Done

func (t *NoopTracer) Done() <-chan struct{}

Done returns a channel that will close when shutdown is complete.

func (*NoopTracer) Ready

func (t *NoopTracer) Ready() <-chan struct{}

Ready returns a channel that will close when the network stack is ready.

func (*NoopTracer) StartSpanFromContext

func (t *NoopTracer) StartSpanFromContext(
	ctx context.Context,
	operationName SpanName,
	opts ...trace.SpanStartOption,
) (context.Context, trace.Span)

type SpanName

type SpanName string
const (

	// Archive API
	GetFirst                  SpanName = "archive.getFirst"
	GetLast                   SpanName = "archive.getLast"
	GetHeightForBlock         SpanName = "archive.getHeightForBlock"
	GetCommit                 SpanName = "archive.getCommit"
	GetHeader                 SpanName = "archive.getHeader"
	GetEvents                 SpanName = "archive.getEvents"
	GetRegisterValues         SpanName = "archive.getRegisterValues"
	GetCollection             SpanName = "archive.getCollection"
	ListCollectionsForHeight  SpanName = "archive.listCollectionsForHeight"
	GetGuarantee              SpanName = "archive.getGuarantee"
	GetTransaction            SpanName = "archive.getTransaction"
	GetHeightForTransaction   SpanName = "archive.getHeightForTransaction"
	ListTransactionsForHeight SpanName = "archive.listTransactionsForHeight"
	GetResult                 SpanName = "archive.getResult"
	GetSeal                   SpanName = "archive.getSeal"
	ListSealsForHeight        SpanName = "archive.listSealsForHeight"
)

type Tracer

type Tracer interface {
	// Ready commences startup
	Ready() <-chan struct{}

	// Done commences shutdown
	Done() <-chan struct{}

	StartSpanFromContext(
		ctx context.Context,
		operationName SpanName,
		opts ...otelTrace.SpanStartOption,
	) (context.Context, otelTrace.Span)
}

Tracer interface for tracers in the Archive Node

Jump to

Keyboard shortcuts

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