Trace

natchez.Trace
See theTrace companion object
trait Trace[F[_]]

A tracing effect, which always has a current span.

Attributes

Companion:
object
Source:
Trace.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
class KleisliTrace[F]

Members list

Concise view

Value members

Abstract methods

def attachError(err: Throwable): F[Unit]

Adds error information to the current span.

Adds error information to the current span.

Attributes

Source:
Trace.scala
def kernel: F[Kernel]

The kernel for the current span, which can be sent as headers to remote systems, which can then continue this trace by constructing spans that are children of the current one.

The kernel for the current span, which can be sent as headers to remote systems, which can then continue this trace by constructing spans that are children of the current one.

Attributes

Source:
Trace.scala
def log(fields: (String, TraceValue)*): F[Unit]

Logs a sequence of fields on the current span.

Logs a sequence of fields on the current span.

Attributes

Source:
Trace.scala
def log(event: String): F[Unit]

Logs a single event on the current span.

Logs a single event on the current span.

Attributes

Source:
Trace.scala
def put(fields: (String, TraceValue)*): F[Unit]

Puts a sequence of fields into the current span.

Puts a sequence of fields into the current span.

Attributes

Source:
Trace.scala
def span[A](name: String, options: Options)(k: F[A]): F[A]

Create a new span, and within it run the continuation k.

Create a new span, and within it run the continuation k.

Attributes

Source:
Trace.scala
def spanR(name: String, options: Options): Resource[F, FunctionK[F, F]]

Creates a new span as a resource.

Creates a new span as a resource.

Attributes

Source:
Trace.scala

A unique ID for this trace, if available. This can be useful to include in error messages for example, so you can quickly find the associated trace.

A unique ID for this trace, if available. This can be useful to include in error messages for example, so you can quickly find the associated trace.

Attributes

Source:
Trace.scala

A unique URI for this trace, if available. This can be useful to include in error messages for example, so you can quickly find the associated trace.

A unique URI for this trace, if available. This can be useful to include in error messages for example, so you can quickly find the associated trace.

Attributes

Source:
Trace.scala

Concrete methods

def spanK(name: String, options: Options): FunctionK[F, F]

Same as span, expressed as a cats.arrow.FunctionK.

Same as span, expressed as a cats.arrow.FunctionK.

Attributes

Source:
Trace.scala