EntryPoint

natchez.EntryPoint
trait EntryPoint[F[_]]

An entry point, for creating root spans or continuing traces that were started on another system.

Attributes

Source:
EntryPoint.scala
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Concise view

Value members

Abstract 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.

Attributes

Source:
EntryPoint.scala
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.

Attributes

Source:
EntryPoint.scala
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.

Attributes

Source:
EntryPoint.scala

Concrete methods

def mapK[G[_]](f: FunctionK[F, G])(implicit F: MonadCancel[F, _], G: MonadCancel[G, _]): EntryPoint[G]

Converts this EntryPoint[F] to an EntryPoint[G] using an F ~> G.

Converts this EntryPoint[F] to an EntryPoint[G] using an F ~> G.

Attributes

Source:
EntryPoint.scala