TraceResourceAcquisition

com.dwolla.tracing.TraceResourceAcquisition

Attributes

Source
TraceResourceAcquisition.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

def apply[F[_] : MonadCancelThrow, A](entryPoint: EntryPoint[F], name: String)(resource: Trace[F] => Resource[F, A])(implicit evidence$1: MonadCancelThrow[F], L1: Local[F, Span[F]], L2: Logger[F]): Resource[F, A]

Given an entrypoint and a root span name, introduce tracing for the resource returned by the passed resource function.

Given an entrypoint and a root span name, introduce tracing for the resource returned by the passed resource function. The acquisition and finalization phases of the Resource[F, A] will be traced in separate root spans.

Type parameters

A

inner type of the Resource[F, A]

F

the effect type in which to run

Value parameters

L1

an implicit Local[F, Span[F]] instance for the given effect type

L2

an implicit Logger[F] instance for the given effect type

entryPoint

a Natchez EntryPoint[F] used to create the new root spans

name

the name of the root span. a good default might be "app initialization"

resource

function that returns a resource to be traced using the ambient Trace[F] passed to the function

Attributes

Returns

Resource[F, A] that is the same as the one returned by the resource function, but with tracing introduced

Source
TraceResourceAcquisition.scala
def apply[F[_] : MonadCancelThrow, A](entryPoint: EntryPoint[F], name: String, options: Options)(resource: Trace[F] => Resource[F, A])(implicit evidence$2: MonadCancelThrow[F], L1: Local[F, Span[F]], L2: Logger[F]): Resource[F, A]

Given an entrypoint and a root span name, introduce tracing for the resource returned by the passed resource function.

Given an entrypoint and a root span name, introduce tracing for the resource returned by the passed resource function. The acquisition and finalization phases of the Resource[F, A] will be traced in separate root spans.

Type parameters

A

inner type of the Resource[F, A]

F

the effect type in which to run

Value parameters

L1

an implicit Local[F, Span[F]] instance for the given effect type

L2

an implicit Logger[F] instance for the given effect type

entryPoint

a Natchez EntryPoint[F] used to create the new root spans

name

the name of the root span. a good default might be "app initialization"

options

options to set on the newly created root span

resource

function that returns a resource to be traced using the ambient Trace[F] passed to the function

Attributes

Returns

Resource[F, A] that is the same as the one returned by the resource function, but with tracing introduced

Source
TraceResourceAcquisition.scala
def apply[F[_] : MonadCancelThrow, A](entryPoint: EntryPoint[F], name: String, resource: Resource[F, A])(implicit evidence$3: MonadCancelThrow[F], L1: Local[F, Span[F]], L2: Logger[F]): Resource[F, A]

Given an entrypoint and a root span name, ensure that the acquisition and finalization phases of the passed Resource[F, A] are traced in separate root spans.

Given an entrypoint and a root span name, ensure that the acquisition and finalization phases of the passed Resource[F, A] are traced in separate root spans.

Type parameters

A

inner type of the Resource[F, A]

F

the effect type in which to run

Value parameters

L1

an implicit Local[F, Span[F]] instance for the given effect type

L2

an implicit Logger[F] instance for the given effect type

entryPoint

a Natchez EntryPoint[F] used to create the new root spans

name

the name of the root span. a good default might be "app initialization"

resource

a resource that was traced using the Local[F, Span[F]] passed implicitly as L

Attributes

Returns

Resource[F, A] that is the same as the one returned by the resource function, but with tracing introduced

Source
TraceResourceAcquisition.scala
def apply[F[_] : MonadCancelThrow, A](entryPoint: EntryPoint[F], name: String, options: Options, resource: Resource[F, A])(implicit evidence$4: MonadCancelThrow[F], L1: Local[F, Span[F]], L2: Logger[F]): Resource[F, A]

Given an entrypoint and a root span name, ensure that the acquisition and finalization phases of the passed Resource[F, A] are traced in separate root spans.

Given an entrypoint and a root span name, ensure that the acquisition and finalization phases of the passed Resource[F, A] are traced in separate root spans.

Type parameters

A

inner type of the Resource[F, A]

F

the effect type in which to run

Value parameters

L1

an implicit Local[F, Span[F]] instance for the given effect type

L2

an implicit Logger[F] instance for the given effect type

entryPoint

a Natchez EntryPoint[F] used to create the new root spans

name

the name of the root span. a good default might be "app initialization"

options

options to set on the newly created root span

resource

a resource that was traced using the Local[F, Span[F]] passed implicitly as L

Attributes

Returns

Resource[F, A] that is the same as the one returned by the resource function, but with tracing introduced

Source
TraceResourceAcquisition.scala

Deprecated methods

def apply[F[_], A](entryPoint: EntryPoint[F], name: String, options: Options, resource: Resource[F, A], F: MonadCancelThrow[F], L: Local[F, Span[F]]): Resource[F, A]

Attributes

Deprecated
true
Source
TraceResourceAcquisition.scala
def apply[F[_], A](entryPoint: EntryPoint[F], name: String, resource: Resource[F, A], F: MonadCancelThrow[F], L: Local[F, Span[F]]): Resource[F, A]

Attributes

Deprecated
true
Source
TraceResourceAcquisition.scala
def apply[F[_], A](entryPoint: EntryPoint[F], name: String, options: Options, resource: Trace[F] => Resource[F, A], F: MonadCancelThrow[F], L: Local[F, Span[F]]): Resource[F, A]

Attributes

Deprecated
true
Source
TraceResourceAcquisition.scala
def apply[F[_], A](entryPoint: EntryPoint[F], name: String, resource: Trace[F] => Resource[F, A], F: MonadCancelThrow[F], L: Local[F, Span[F]]): Resource[F, A]

Attributes

Deprecated
true
Source
TraceResourceAcquisition.scala