KleisliTrace

trace4cats.Trace$.KleisliTrace
class KleisliTrace[F[_]] extends WithContext[[_] =>> Kleisli[F, Span[F], _$11]]

A trace instance for Kleisli[F, Span[F], *], which is the mechanism we use to introduce context into our computations. We can also "lensMap" out to Kleisli[F, E, *] given a lens from E to Span[F].

Attributes

Graph
Supertypes
trait WithContext[[_] =>> Kleisli[F, Span[F], _$11]]
trait Trace[[_] =>> Kleisli[F, Span[F], _$11]]
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

override def context: Kleisli[F, Span[F], SpanContext]

Attributes

Definition Classes
override def headers(toHeaders: ToHeaders): Kleisli[F, Span[F], TraceHeaders]

Convert the span context into headers may be propagated outside of the application

Convert the span context into headers may be propagated outside of the application

Value parameters

toHeaders

ToHeaders implementation. Converts span context to headers that may be propagated outside of the application. Defaults to ToHeaders.standard, which is a collection of headers that conform to open standards. Other header implementations that do not conform to open standards are supported. See ToHeaders for details or use ToHeaders.all

Attributes

Returns

trace4cats.model.TraceHeaders

Definition Classes
def lens[E](f: E => Span[F], g: (E, Span[F]) => E): WithContext[[_] =>> Kleisli[F, E, _$16]]
override def put(key: String, value: AttributeValue): Kleisli[F, Span[F], Unit]

Attributes

Definition Classes
override def putAll(fields: (String, AttributeValue)*): Kleisli[F, Span[F], Unit]

Attributes

Definition Classes
override def setStatus(status: SpanStatus): Kleisli[F, Span[F], Unit]

Attributes

Definition Classes
override def span[A](name: String, kind: SpanKind, errorHandler: ErrorHandler)(k: Kleisli[F, Span[F], A]): Kleisli[F, Span[F], A]

Attributes

Definition Classes
override def traceId: Kleisli[F, Span[F], Option[String]]

Attributes

Definition Classes

Inherited methods

Attributes

Inherited from:
Trace
def span[A](name: String, kind: SpanKind)(fa: Kleisli[F, Span[F], A]): F[A]

Attributes

Inherited from:
Trace
def span[A](name: String, errorHandler: ErrorHandler)(fa: Kleisli[F, Span[F], A]): F[A]

Attributes

Inherited from:
Trace
def span[A](name: String)(fa: Kleisli[F, Span[F], A]): F[A]

Attributes

Inherited from:
Trace