Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
NoopSpan trace.Span = trace.SpanFromContext(context.Background())
)
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
Click to show internal directories.
Click to hide internal directories.