Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- class Monad m => MonadBaggage m where
- getBaggage :: m Baggage
- setBaggage :: Baggage -> m a -> m a
- newtype Baggage = Baggage {}
- nullBaggage :: Baggage -> Bool
- sizeBaggage :: Baggage -> Int
- memberBaggage :: Key Text -> Baggage -> Bool
- lookupBaggage :: Key Text -> Baggage -> Maybe Text
- findWithDefaultBaggage :: Text -> Key Text -> Baggage -> Text
- deleteBaggage :: Key Text -> Baggage -> Baggage
- filterBaggage :: (Text -> Bool) -> Baggage -> Baggage
- filterWithKeyBaggage :: (Key Text -> Text -> Bool) -> Baggage -> Baggage
- foldMapWithKeyBaggage :: forall m. Monoid m => (Key Text -> Text -> m) -> Baggage -> m
- toListBaggage :: Baggage -> [(Key Text, Text)]
- newtype BaggageBuilder a = BaggageBuilder {
- unBaggageBuilder :: Either (DList BaggageError) a
- buildBaggage :: forall m. MonadThrow m => BaggageBuilder Baggage -> m Baggage
- buildBaggagePure :: BaggageBuilder Baggage -> Either BaggageErrors Baggage
- contextBackendBaggage :: ContextBackend Baggage
- contextKeyBaggage :: ContextKey Baggage
- isRFC7230TokenChar :: Char -> Bool
- isRFC7230VCHARChar :: Char -> Bool
Disclaimer
In general, changes to this module will not be reflected in the library's version updates. Direct use of this module should be done with utmost care, otherwise invariants will easily be violated.
class Monad m => MonadBaggage m where Source #
Nothing
getBaggage :: m Baggage Source #
default getBaggage :: (MonadTrans t, MonadBaggage n, m ~ t n) => m Baggage Source #
setBaggage :: Baggage -> m a -> m a Source #
default setBaggage :: (MonadTransControl t, MonadBaggage n, m ~ t n) => Baggage -> m a -> m a Source #
Instances
Instances
Monoid Baggage Source # | |
Semigroup Baggage Source # | |
Show Baggage Source # | |
Eq Baggage Source # | |
KV (BaggageBuilder Baggage) Source # | |
Defined in OTel.API.Baggage.Core.Internal type KVConstraints (BaggageBuilder Baggage) :: Type -> Type -> Constraint # (.@) :: KVConstraints (BaggageBuilder Baggage) from to => Key to -> from -> BaggageBuilder Baggage # | |
type KVConstraints (BaggageBuilder Baggage) Source # | |
Defined in OTel.API.Baggage.Core.Internal |
nullBaggage :: Baggage -> Bool Source #
sizeBaggage :: Baggage -> Int Source #
newtype BaggageBuilder a Source #
Instances
buildBaggage :: forall m. MonadThrow m => BaggageBuilder Baggage -> m Baggage Source #
isRFC7230TokenChar :: Char -> Bool Source #
isRFC7230VCHARChar :: Char -> Bool Source #