← ZIO Profiling docs

CostCenter

zio.profiling.CostCenter
See theCostCenter companion class
object CostCenter

Attributes

Companion
class
Source
CostCenter.scala
Graph
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
CostCenter.type

Members list

Type members

Inherited and Abstract types

The names of the product elements

The names of the product elements

Attributes

Inherited from:
Mirror
Source
Mirror.scala

The name of the type

The name of the type

Attributes

Inherited from:
Mirror
Source
Mirror.scala

Value members

Concrete methods

def getCurrent(implicit trace: Trace): UIO[CostCenter]

Get the current cost center.

Get the current cost center.

Attributes

Source
CostCenter.scala
def getCurrentUnsafe(fiber: Runtime[_, _])(implicit unsafe: Unsafe): CostCenter

Get the current cost center this fiber is executing in.

Get the current cost center this fiber is executing in.

Attributes

Source
CostCenter.scala
def withChildCostCenter[R, E, A](name: String)(zio: ZIO[R, E, A])(implicit trace: Trace): ZIO[R, E, A]

Run an effect with a child cost center nested under the current one.

Run an effect with a child cost center nested under the current one.

Attributes

Source
CostCenter.scala
def withChildCostCenterStream[R, E, A](name: String)(stream: ZStream[R, E, A])(implicit trace: Trace): ZStream[R, E, A]

Run an effect with a child cost center nested under the current one.

Run an effect with a child cost center nested under the current one.

Attributes

Source
CostCenter.scala

Concrete fields

The root cost center.

The root cost center.

Attributes

Source
CostCenter.scala