LocalProvider

org.typelevel.otel4s.context.LocalProvider
See theLocalProvider companion trait

Attributes

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

Members list

Value members

Concrete methods

def apply[F[_], C](implicit ev: LocalProvider[F, C]): LocalProvider[F, C]

Attributes

Source
LocalProvider.scala
def fromIOLocal[F[_] : LiftIO, Ctx](ioLocal: IOLocal[Ctx]): LocalProvider[F, Ctx]

Creates LocalProvider that derives Local instance from the given IOLocal.

Creates LocalProvider that derives Local instance from the given IOLocal.

Type parameters

Ctx

the type of the context

F

the higher-kinded type of a polymorphic effect

Value parameters

ioLocal

the IOLocal to use

Attributes

Source
LocalProvider.scala
def fromLiftIO[F[_] : LiftIO, Ctx : Contextual]: LocalProvider[F, Ctx]

Creates LocalProvider that creates IOLocal under the hood to derive the Local instance.

Creates LocalProvider that creates IOLocal under the hood to derive the Local instance.

Type parameters

Ctx

the type of the context

F

the higher-kinded type of a polymorphic effect

Attributes

Note

every invocation of the LocalProvider.local creates new IOLocal. If you want to use a custom IOLocal (e.g. to share it with other components) use LocalProvider.fromIOLocal.

Source
LocalProvider.scala
def fromLocal[F[_] : Applicative, Ctx](l: Local[F, Ctx]): LocalProvider[F, Ctx]

Creates LocalProvider that returns the given Local instance.

Creates LocalProvider that returns the given Local instance.

Type parameters

Ctx

the type of the context

F

the higher-kinded type of a polymorphic effect

Value parameters

l

the Local to use

Attributes

Source
LocalProvider.scala

Implicits

Implicits

implicit def liftFromIOLocal[F[_] : LiftIO, Ctx](implicit evidence$1: MonadCancelThrow[F], evidence$2: LiftIO[F], ioLocal: IOLocal[Ctx]): LocalProvider[F, Ctx]

Attributes

Source
LocalProvider.scala
implicit def liftFromLocal[F[_] : Applicative, Ctx](implicit evidence$1: Applicative[F], local: Local[F, Ctx]): LocalProvider[F, Ctx]

Attributes

Source
LocalProvider.scala

Inherited implicits

implicit def liftFromLiftIO[F[_] : LiftIO, Ctx : Contextual]: LocalProvider[F, Ctx]

Attributes

Inherited from:
LocalProviderLowPriority
Source
LocalProvider.scala