Documentation ¶
Overview ¶
tracing provides high level method tracing for the routing.Routing API. Each method of the API has a corresponding method on Tracer which return either a defered wrapping callback or just defered callback.
Index ¶
- type Tracer
- func (t Tracer) Bootstrap(routerName string, ctx context.Context) (_ context.Context, end func(error))
- func (t Tracer) FindPeer(routerName string, ctx context.Context, id peer.ID) (_ context.Context, end func(peer.AddrInfo, error))
- func (t Tracer) FindProvidersAsync(routerName string, ctx context.Context, key cid.Cid, count int) (_ context.Context, ...)
- func (t Tracer) GetValue(routerName string, ctx context.Context, key string, opts ...routing.Option) (_ context.Context, end func([]byte, error))
- func (t Tracer) Provide(routerName string, ctx context.Context, key cid.Cid, announce bool) (_ context.Context, end func(error))
- func (t Tracer) ProvideMany(routerName string, ctx context.Context, keys []multihash.Multihash) (_ context.Context, end func(error))
- func (t Tracer) PutValue(routerName string, ctx context.Context, key string, val []byte, ...) (_ context.Context, end func(error))
- func (t Tracer) SearchValue(routerName string, ctx context.Context, key string, opts ...routing.Option) (_ context.Context, ...)
- func (t Tracer) StartSpan(ctx context.Context, name string, opts ...trace.SpanStartOption) (context.Context, trace.Span)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Tracer ¶
type Tracer string
Tracer is the librairy name that will be passed to otel.Tracer.
func (Tracer) FindProvidersAsync ¶
func (Tracer) ProvideMany ¶
func (Tracer) SearchValue ¶
Click to show internal directories.
Click to hide internal directories.