TraceResourceAcquisition
Attributes
- Source
- TraceResourceAcquisition.scala
- Graph
-
- Supertypes
- Self type
Members list
Value members
Concrete methods
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
- L
-
an implicit
Local[F, Span[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 theresource
function, but with tracing introduced - Source
- TraceResourceAcquisition.scala
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
- L
-
an implicit
Local[F, Span[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 theresource
function, but with tracing introduced - Source
- TraceResourceAcquisition.scala
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
- L
-
an implicit
Local[F, Span[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 asL
Attributes
- Returns
-
Resource[F, A]
that is the same as the one returned by theresource
function, but with tracing introduced - Source
- TraceResourceAcquisition.scala
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
- L
-
an implicit
Local[F, Span[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 asL
Attributes
- Returns
-
Resource[F, A]
that is the same as the one returned by theresource
function, but with tracing introduced - Source
- TraceResourceAcquisition.scala