trace

package
v0.28.11 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2022 License: Apache-2.0 Imports: 2 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

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