Versions in this module Expand all Collapse all v0 v0.2.0 Mar 13, 2019 v0.1.0 Jul 23, 2018 Changes in this version + const StatusCodeAborted + const StatusCodeAlreadyExists + const StatusCodeCancelled + const StatusCodeDataLoss + const StatusCodeDeadlineExceeded + const StatusCodeFailedPrecondition + const StatusCodeInternal + const StatusCodeInvalidArgument + const StatusCodeNotFound + const StatusCodeOK + const StatusCodeOutOfRange + const StatusCodePermissionDenied + const StatusCodeResourceExhausted + const StatusCodeUnauthenticated + const StatusCodeUnavailable + const StatusCodeUnimplemented + const StatusCodeUnknown + var DefaultLatencyDistribution = view.Distribution(0, 1, 2, 3, 4, 5, 6, 8, 10, 13, 16, 20, 25, 30, 40, 50, 65, 80, 100, 130, 160, ...) + var ErrorTag = NewTag("indigo-node/keys/error") + var PeerIDTag = NewTag("indigo-node/keys/peerid") + var ProtocolIDTag = NewTag("indigo-node/keys/protocolid") + type Float64Metric struct + Measure *stats.Float64Measure + func NewFloat64(m *stats.Float64Measure) *Float64Metric + func (m Float64Metric) Record(ctx context.Context, val float64) + type Int64Metric struct + Measure *stats.Int64Measure + func NewInt64(m *stats.Int64Measure) *Int64Metric + func (m Int64Metric) Record(ctx context.Context, val int64) + type Span struct + func StartSpan(ctx context.Context, service string, method string, opts ...SpanOption) (context.Context, *Span) + func (s *Span) AddBoolAttribute(name string, value bool) + func (s *Span) AddIntAttribute(name string, value int64) + func (s *Span) AddStringAttribute(name string, value string) + func (s *Span) Annotate(ctx context.Context, name, message string) + func (s *Span) End() + func (s *Span) SetAddrs(addrs []multiaddr.Multiaddr) + func (s *Span) SetPeerID(peerID peer.ID) + func (s *Span) SetProtocolID(pid protocol.ID) + func (s *Span) SetStatus(status Status) + func (s *Span) SetUnknownError(err error) + type SpanOption func(context.Context, *Span) context.Context + func SpanOptionPeerID(peerID peer.ID) SpanOption + func SpanOptionProtocolID(pid protocol.ID) SpanOption + type Status struct + Code int32 + Message string + func NewStatus(code int32, message string) Status + type Tag struct + OCTag tag.Key + func NewTag(name string) Tag + type TaggedContext struct + func NewTaggedContext(ctx context.Context) *TaggedContext + func (c *TaggedContext) Build() context.Context + func (c *TaggedContext) Tag(t Tag, val string) *TaggedContext