TestEntryPoint

trait TestEntryPoint[F[_]] extends EntryPoint[F]

Test implementation of Natchez that is backed by a Ref and additionally lets you see all the completed spans

Companion:
object
trait EntryPoint[F]
class Object
trait Matchable
class Any

Value members

Abstract methods

def spans: F[List[CompletedSpan]]

Inherited methods

def continue(name: String, kernel: Kernel): Resource[F, Span[F]]

Resource that creates a new span as the child of the span specified by the given kernel, which typically arrives via request headers. By this mechanism we can continue a trace that began in another system. If the required headers are not present in kernel an exception will be raised in F.

Resource that creates a new span as the child of the span specified by the given kernel, which typically arrives via request headers. By this mechanism we can continue a trace that began in another system. If the required headers are not present in kernel an exception will be raised in F.

Inherited from:
EntryPoint
def continueOrElseRoot(name: String, kernel: Kernel): Resource[F, Span[F]]

Resource that attempts to creates a new span as with continue, but falls back to a new root span as with root if the kernel does not contain the required headers. In other words, we continue the existing span if we can, otherwise we start a new one.

Resource that attempts to creates a new span as with continue, but falls back to a new root span as with root if the kernel does not contain the required headers. In other words, we continue the existing span if we can, otherwise we start a new one.

Inherited from:
EntryPoint
def root(name: String): Resource[F, Span[F]]

Resource that creates a new root span in a new trace.

Resource that creates a new root span in a new trace.

Inherited from:
EntryPoint