Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- data Context
- emptyContext :: Context
- lookupContext :: ContextKey a -> Context -> Maybe a
- insertContext :: ContextKey a -> a -> Context -> Context
- data ContextKey a
- contextKeyName :: ContextKey a -> Text
- attachContextValueUsing :: forall m a b. (MonadIO m, MonadMask m) => ContextBackend a -> a -> m b -> m b
- getAttachedContextValueUsing :: forall m a. (MonadIO m, MonadThrow m) => ContextBackend a -> m (Maybe a)
- getAttachedContextUsing :: forall m a. (MonadIO m, MonadThrow m) => ContextBackend a -> m Context
- data ContextBackend a
Introduction
otel-api-context-core
STUB
lookupContext :: ContextKey a -> Context -> Maybe a Source #
insertContext :: ContextKey a -> a -> Context -> Context Source #
data ContextKey a Source #
contextKeyName :: ContextKey a -> Text Source #
attachContextValueUsing :: forall m a b. (MonadIO m, MonadMask m) => ContextBackend a -> a -> m b -> m b Source #
getAttachedContextValueUsing :: forall m a. (MonadIO m, MonadThrow m) => ContextBackend a -> m (Maybe a) Source #
getAttachedContextUsing :: forall m a. (MonadIO m, MonadThrow m) => ContextBackend a -> m Context Source #
data ContextBackend a Source #