[][src]Crate holochain_tracing

Modules

reporter

Reporter to the jaeger agent

span

Span.

span_map

A HashMap of finished span. Used by ConsoleReporter.

tracer_console
tracer_network

Structs

AllSampler

This samples all traces.

AndSampler

and combinator.

Error

This crate specific error type.

HSpan

A wrapper around a simple rustracing_jaeger::RtSpan, providing some convenience functions. It overshadows the lower-level child and follower methods with simpler versions. To access the lower-level methods, use .0.

HSpanContext

An OpenTracing SpanContext is used to send span info across a process boundary. This is a simple wrapper around that, again with some helper functions.

NullSampler

This samples no traces.

OrSampler

or combinator.

PassiveSampler

This samples traces which have one or more references.

ProbabilisticSampler

This samples a certain percentage of traces.

SpanWrap

SpanWrap is a simple way to couple some data along with a struct It is common to send some data on a channel which will be used as arguments to a function on the receiving side, where we also want to continue the trace on the receiving side. This struct helps keep that data together with minimal boilerplate.

Tracer

Tracer.

Enums

ErrorKind

The list of the possible error kinds

Traits

Sampler

Sampler decides whether a new trace should be sampled or not.

Functions

null_tracer

Tracer placeholder (use only as last resort)

test_span

Dummy span, useful for tests that don't test tracing

Type Definitions

BoxSampler

Boxed version of Sampler.

EncodedSpanContext

Binary representation is exactly 37 bytes, so ideally we would use a [u8; 37], but this is easier...

Reporter
Result

This crate specific Result type.

RjSpan

Span.

Span
SpanContext
Tag
Tracer