otel-api-common-0.0.0: STUB
Safe HaskellSafe-Inferred
LanguageHaskell2010

OTel.API.Common.Internal

Synopsis

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.

General

class KV (kv :: Type) where Source #

Associated Types

type KVConstraints kv :: Type -> Type -> Constraint Source #

Methods

(.@) :: KVConstraints kv from to => Key to -> from -> kv infixr 8 Source #

Instances

Instances details
KV (AttrsBuilder af) Source # 
Instance details

Defined in OTel.API.Common.Internal

Associated Types

type KVConstraints (AttrsBuilder af) :: Type -> Type -> Constraint Source #

Methods

(.@) :: KVConstraints (AttrsBuilder af) from to => Key to -> from -> AttrsBuilder af Source #

class (k ~ Text, v ~ Text) => IsTextKV k v Source #

Instances

Instances details
IsTextKV Text Text Source # 
Instance details

Defined in OTel.API.Common.Internal

newtype Key a Source #

Constructors

Key 

Fields

Instances

Instances details
IsString (Key a) Source # 
Instance details

Defined in OTel.API.Common.Internal

Methods

fromString :: String -> Key a #

Show (Key a) Source # 
Instance details

Defined in OTel.API.Common.Internal

Methods

showsPrec :: Int -> Key a -> ShowS #

show :: Key a -> String #

showList :: [Key a] -> ShowS #

Eq (Key a) Source # 
Instance details

Defined in OTel.API.Common.Internal

Methods

(==) :: Key a -> Key a -> Bool #

(/=) :: Key a -> Key a -> Bool #

Ord (Key a) Source # 
Instance details

Defined in OTel.API.Common.Internal

Methods

compare :: Key a -> Key a -> Ordering #

(<) :: Key a -> Key a -> Bool #

(<=) :: Key a -> Key a -> Bool #

(>) :: Key a -> Key a -> Bool #

(>=) :: Key a -> Key a -> Bool #

max :: Key a -> Key a -> Key a #

min :: Key a -> Key a -> Key a #

newtype Timestamp Source #

Constructors

Timestamp 

Fields

Instances

Instances details
ToJSON Timestamp Source # 
Instance details

Defined in OTel.API.Common.Internal

Show Timestamp Source # 
Instance details

Defined in OTel.API.Common.Internal

Eq Timestamp Source # 
Instance details

Defined in OTel.API.Common.Internal

data InstrumentationScope Source #

Instances

Instances details
ToJSON InstrumentationScope Source # 
Instance details

Defined in OTel.API.Common.Internal

IsString InstrumentationScope Source # 
Instance details

Defined in OTel.API.Common.Internal

Show InstrumentationScope Source # 
Instance details

Defined in OTel.API.Common.Internal

Eq InstrumentationScope Source # 
Instance details

Defined in OTel.API.Common.Internal

Ord InstrumentationScope Source # 
Instance details

Defined in OTel.API.Common.Internal

newtype InstrumentationScopeName Source #

Instances

Instances details
ToJSON InstrumentationScopeName Source # 
Instance details

Defined in OTel.API.Common.Internal

IsString InstrumentationScopeName Source # 
Instance details

Defined in OTel.API.Common.Internal

Show InstrumentationScopeName Source # 
Instance details

Defined in OTel.API.Common.Internal

Eq InstrumentationScopeName Source # 
Instance details

Defined in OTel.API.Common.Internal

Ord InstrumentationScopeName Source # 
Instance details

Defined in OTel.API.Common.Internal

newtype Version Source #

Constructors

Version 

Fields

Instances

Instances details
ToJSON Version Source # 
Instance details

Defined in OTel.API.Common.Internal

IsString Version Source # 
Instance details

Defined in OTel.API.Common.Internal

Methods

fromString :: String -> Version #

Show Version Source # 
Instance details

Defined in OTel.API.Common.Internal

Eq Version Source # 
Instance details

Defined in OTel.API.Common.Internal

Methods

(==) :: Version -> Version -> Bool #

(/=) :: Version -> Version -> Bool #

Ord Version Source # 
Instance details

Defined in OTel.API.Common.Internal

Attributes

class WithAttrs (a :: Type) where Source #

Associated Types

type WithAttrsAttrType a :: AttrsFor Source #

Methods

(.:@) :: a -> AttrsBuilder (WithAttrsAttrType a) -> a infixr 6 Source #

data Attrs (af :: AttrsFor) Source #

Constructors

Attrs 

Instances

Instances details
ToJSON (Attrs af) Source # 
Instance details

Defined in OTel.API.Common.Internal

Show (Attrs af) Source # 
Instance details

Defined in OTel.API.Common.Internal

Methods

showsPrec :: Int -> Attrs af -> ShowS #

show :: Attrs af -> String #

showList :: [Attrs af] -> ShowS #

Eq (Attrs af) Source # 
Instance details

Defined in OTel.API.Common.Internal

Methods

(==) :: Attrs af -> Attrs af -> Bool #

(/=) :: Attrs af -> Attrs af -> Bool #

lookupAttrs :: forall a af. KnownAttrType a => Key a -> Attrs af -> Maybe (Attr a) Source #

foldMapWithKeyAttrs :: forall m af. Monoid m => (forall a. Key a -> Attr a -> m) -> Attrs af -> m Source #

filterWithKeyAttrs :: forall af. (forall a. Key a -> Attr a -> Bool) -> Attrs af -> Attrs af Source #

mapWithKeyAttrs :: forall af. (forall a. Key a -> Attr a -> Attr a) -> Attrs af -> Attrs af Source #

convertWithKeyAttrs :: forall af. (forall a. Key a -> Attr a -> SomeAttr) -> Attrs af -> Attrs af Source #

Equivalent to mapWithKeyAttrs but allows for changing both the type and value of each attribute rather than just the value of the attribute.

newtype AttrsBuilder (af :: AttrsFor) Source #

Instances

Instances details
Monoid (AttrsBuilder af) Source # 
Instance details

Defined in OTel.API.Common.Internal

Semigroup (AttrsBuilder af) Source # 
Instance details

Defined in OTel.API.Common.Internal

KV (AttrsBuilder af) Source # 
Instance details

Defined in OTel.API.Common.Internal

Associated Types

type KVConstraints (AttrsBuilder af) :: Type -> Type -> Constraint Source #

Methods

(.@) :: KVConstraints (AttrsBuilder af) from to => Key to -> from -> AttrsBuilder af Source #

type KVConstraints (AttrsBuilder af) Source # 
Instance details

Defined in OTel.API.Common.Internal

jsonAttrs :: forall a af. ToJSON a => Text -> a -> AttrsBuilder af Source #

data AttrsLimits (af :: AttrsFor) Source #

Instances

Instances details
ToJSON (AttrsLimits af) Source # 
Instance details

Defined in OTel.API.Common.Internal

data SomeAttr where Source #

Constructors

SomeAttr :: Attr a -> SomeAttr 

Instances

Instances details
ToJSON SomeAttr Source # 
Instance details

Defined in OTel.API.Common.Internal

Show SomeAttr Source # 
Instance details

Defined in OTel.API.Common.Internal

Eq SomeAttr Source # 
Instance details

Defined in OTel.API.Common.Internal

data Attr a Source #

Constructors

Attr 

Fields

Instances

Instances details
Show a => Show (Attr a) Source # 
Instance details

Defined in OTel.API.Common.Internal

Methods

showsPrec :: Int -> Attr a -> ShowS #

show :: Attr a -> String #

showList :: [Attr a] -> ShowS #

Eq a => Eq (Attr a) Source # 
Instance details

Defined in OTel.API.Common.Internal

Methods

(==) :: Attr a -> Attr a -> Bool #

(/=) :: Attr a -> Attr a -> Bool #

asTextAttr :: Attr a -> Attr Text Source #

Convert an attribute to a text attribute.

This function is identity if the attribute already is a text attribute. Otherwise, the attribute value is passed to show.

newtype AttrVals a Source #

Constructors

AttrVals 

Fields

Instances

Instances details
Foldable AttrVals Source # 
Instance details

Defined in OTel.API.Common.Internal

Methods

fold :: Monoid m => AttrVals m -> m #

foldMap :: Monoid m => (a -> m) -> AttrVals a -> m #

foldMap' :: Monoid m => (a -> m) -> AttrVals a -> m #

foldr :: (a -> b -> b) -> b -> AttrVals a -> b #

foldr' :: (a -> b -> b) -> b -> AttrVals a -> b #

foldl :: (b -> a -> b) -> b -> AttrVals a -> b #

foldl' :: (b -> a -> b) -> b -> AttrVals a -> b #

foldr1 :: (a -> a -> a) -> AttrVals a -> a #

foldl1 :: (a -> a -> a) -> AttrVals a -> a #

toList :: AttrVals a -> [a] #

null :: AttrVals a -> Bool #

length :: AttrVals a -> Int #

elem :: Eq a => a -> AttrVals a -> Bool #

maximum :: Ord a => AttrVals a -> a #

minimum :: Ord a => AttrVals a -> a #

sum :: Num a => AttrVals a -> a #

product :: Num a => AttrVals a -> a #

Traversable AttrVals Source # 
Instance details

Defined in OTel.API.Common.Internal

Methods

traverse :: Applicative f => (a -> f b) -> AttrVals a -> f (AttrVals b) #

sequenceA :: Applicative f => AttrVals (f a) -> f (AttrVals a) #

mapM :: Monad m => (a -> m b) -> AttrVals a -> m (AttrVals b) #

sequence :: Monad m => AttrVals (m a) -> m (AttrVals a) #

Applicative AttrVals Source # 
Instance details

Defined in OTel.API.Common.Internal

Methods

pure :: a -> AttrVals a #

(<*>) :: AttrVals (a -> b) -> AttrVals a -> AttrVals b #

liftA2 :: (a -> b -> c) -> AttrVals a -> AttrVals b -> AttrVals c #

(*>) :: AttrVals a -> AttrVals b -> AttrVals b #

(<*) :: AttrVals a -> AttrVals b -> AttrVals a #

Functor AttrVals Source # 
Instance details

Defined in OTel.API.Common.Internal

Methods

fmap :: (a -> b) -> AttrVals a -> AttrVals b #

(<$) :: a -> AttrVals b -> AttrVals a #

Monad AttrVals Source # 
Instance details

Defined in OTel.API.Common.Internal

Methods

(>>=) :: AttrVals a -> (a -> AttrVals b) -> AttrVals b #

(>>) :: AttrVals a -> AttrVals b -> AttrVals b #

return :: a -> AttrVals a #

ToJSON a => ToJSON (AttrVals a) Source # 
Instance details

Defined in OTel.API.Common.Internal

Monoid (AttrVals a) Source # 
Instance details

Defined in OTel.API.Common.Internal

Methods

mempty :: AttrVals a #

mappend :: AttrVals a -> AttrVals a -> AttrVals a #

mconcat :: [AttrVals a] -> AttrVals a #

Semigroup (AttrVals a) Source # 
Instance details

Defined in OTel.API.Common.Internal

Methods

(<>) :: AttrVals a -> AttrVals a -> AttrVals a #

sconcat :: NonEmpty (AttrVals a) -> AttrVals a #

stimes :: Integral b => b -> AttrVals a -> AttrVals a #

Show a => Show (AttrVals a) Source # 
Instance details

Defined in OTel.API.Common.Internal

Methods

showsPrec :: Int -> AttrVals a -> ShowS #

show :: AttrVals a -> String #

showList :: [AttrVals a] -> ShowS #

Eq a => Eq (AttrVals a) Source # 
Instance details

Defined in OTel.API.Common.Internal

Methods

(==) :: AttrVals a -> AttrVals a -> Bool #

(/=) :: AttrVals a -> AttrVals a -> Bool #

KnownAttrType (AttrVals Int64) Source # 
Instance details

Defined in OTel.API.Common.Internal

KnownAttrType (AttrVals Text) Source # 
Instance details

Defined in OTel.API.Common.Internal

KnownAttrType (AttrVals Bool) Source # 
Instance details

Defined in OTel.API.Common.Internal

KnownAttrType (AttrVals Double) Source # 
Instance details

Defined in OTel.API.Common.Internal

ToAttrVal (Seq Int16) (AttrVals Int64) Source # 
Instance details

Defined in OTel.API.Common.Internal

ToAttrVal (Seq Int32) (AttrVals Int64) Source # 
Instance details

Defined in OTel.API.Common.Internal

ToAttrVal (Seq Int64) (AttrVals Int64) Source # 
Instance details

Defined in OTel.API.Common.Internal

ToAttrVal (Seq Int8) (AttrVals Int64) Source # 
Instance details

Defined in OTel.API.Common.Internal

ToAttrVal (Seq Rational) (AttrVals Double) Source #

Precision may be lost.

Instance details

Defined in OTel.API.Common.Internal

ToAttrVal (Seq Word16) (AttrVals Int64) Source # 
Instance details

Defined in OTel.API.Common.Internal

ToAttrVal (Seq Word32) (AttrVals Int64) Source # 
Instance details

Defined in OTel.API.Common.Internal

ToAttrVal (Seq Word8) (AttrVals Int64) Source # 
Instance details

Defined in OTel.API.Common.Internal

ToAttrVal (Seq Text) (AttrVals Text) Source # 
Instance details

Defined in OTel.API.Common.Internal

ToAttrVal (Seq Text) (AttrVals Text) Source # 
Instance details

Defined in OTel.API.Common.Internal

ToAttrVal (Seq String) (AttrVals Text) Source # 
Instance details

Defined in OTel.API.Common.Internal

ToAttrVal (Seq Bool) (AttrVals Bool) Source # 
Instance details

Defined in OTel.API.Common.Internal

ToAttrVal (Seq Double) (AttrVals Double) Source # 
Instance details

Defined in OTel.API.Common.Internal

ToAttrVal (Seq Float) (AttrVals Double) Source # 
Instance details

Defined in OTel.API.Common.Internal

ToAttrVal (Seq Int) (AttrVals Int64) Source # 
Instance details

Defined in OTel.API.Common.Internal

ToAttrVal (AttrVals Int16) (AttrVals Int64) Source # 
Instance details

Defined in OTel.API.Common.Internal

ToAttrVal (AttrVals Int32) (AttrVals Int64) Source # 
Instance details

Defined in OTel.API.Common.Internal

ToAttrVal (AttrVals Int64) (AttrVals Int64) Source # 
Instance details

Defined in OTel.API.Common.Internal

ToAttrVal (AttrVals Int8) (AttrVals Int64) Source # 
Instance details

Defined in OTel.API.Common.Internal

ToAttrVal (AttrVals Rational) (AttrVals Double) Source #

Precision may be lost.

Instance details

Defined in OTel.API.Common.Internal

ToAttrVal (AttrVals Word16) (AttrVals Int64) Source # 
Instance details

Defined in OTel.API.Common.Internal

ToAttrVal (AttrVals Word32) (AttrVals Int64) Source # 
Instance details

Defined in OTel.API.Common.Internal

ToAttrVal (AttrVals Word8) (AttrVals Int64) Source # 
Instance details

Defined in OTel.API.Common.Internal

ToAttrVal (AttrVals Text) (AttrVals Text) Source # 
Instance details

Defined in OTel.API.Common.Internal

ToAttrVal (AttrVals Text) (AttrVals Text) Source # 
Instance details

Defined in OTel.API.Common.Internal

ToAttrVal (AttrVals String) (AttrVals Text) Source # 
Instance details

Defined in OTel.API.Common.Internal

ToAttrVal (AttrVals Bool) (AttrVals Bool) Source # 
Instance details

Defined in OTel.API.Common.Internal

ToAttrVal (AttrVals Double) (AttrVals Double) Source # 
Instance details

Defined in OTel.API.Common.Internal

ToAttrVal (AttrVals Float) (AttrVals Double) Source # 
Instance details

Defined in OTel.API.Common.Internal

ToAttrVal (AttrVals Int) (AttrVals Int64) Source # 
Instance details

Defined in OTel.API.Common.Internal

ToAttrVal (Vector Int16) (AttrVals Int64) Source # 
Instance details

Defined in OTel.API.Common.Internal

ToAttrVal (Vector Int32) (AttrVals Int64) Source # 
Instance details

Defined in OTel.API.Common.Internal

ToAttrVal (Vector Int64) (AttrVals Int64) Source # 
Instance details

Defined in OTel.API.Common.Internal

ToAttrVal (Vector Int8) (AttrVals Int64) Source # 
Instance details

Defined in OTel.API.Common.Internal

ToAttrVal (Vector Rational) (AttrVals Double) Source #

Precision may be lost.

Instance details

Defined in OTel.API.Common.Internal

ToAttrVal (Vector Word16) (AttrVals Int64) Source # 
Instance details

Defined in OTel.API.Common.Internal

ToAttrVal (Vector Word32) (AttrVals Int64) Source # 
Instance details

Defined in OTel.API.Common.Internal

ToAttrVal (Vector Word8) (AttrVals Int64) Source # 
Instance details

Defined in OTel.API.Common.Internal

ToAttrVal (Vector Text) (AttrVals Text) Source # 
Instance details

Defined in OTel.API.Common.Internal

ToAttrVal (Vector Text) (AttrVals Text) Source # 
Instance details

Defined in OTel.API.Common.Internal

ToAttrVal (Vector String) (AttrVals Text) Source # 
Instance details

Defined in OTel.API.Common.Internal

ToAttrVal (Vector Bool) (AttrVals Bool) Source # 
Instance details

Defined in OTel.API.Common.Internal

ToAttrVal (Vector Double) (AttrVals Double) Source # 
Instance details

Defined in OTel.API.Common.Internal

ToAttrVal (Vector Float) (AttrVals Double) Source # 
Instance details

Defined in OTel.API.Common.Internal

ToAttrVal (Vector Int) (AttrVals Int64) Source # 
Instance details

Defined in OTel.API.Common.Internal

ToAttrVal [Int16] (AttrVals Int64) Source # 
Instance details

Defined in OTel.API.Common.Internal

ToAttrVal [Int32] (AttrVals Int64) Source # 
Instance details

Defined in OTel.API.Common.Internal

ToAttrVal [Int64] (AttrVals Int64) Source # 
Instance details

Defined in OTel.API.Common.Internal

ToAttrVal [Int8] (AttrVals Int64) Source # 
Instance details

Defined in OTel.API.Common.Internal

ToAttrVal [Rational] (AttrVals Double) Source #

Precision may be lost.

Instance details

Defined in OTel.API.Common.Internal

ToAttrVal [Word16] (AttrVals Int64) Source # 
Instance details

Defined in OTel.API.Common.Internal

ToAttrVal [Word32] (AttrVals Int64) Source # 
Instance details

Defined in OTel.API.Common.Internal

ToAttrVal [Word8] (AttrVals Int64) Source # 
Instance details

Defined in OTel.API.Common.Internal

ToAttrVal [Text] (AttrVals Text) Source # 
Instance details

Defined in OTel.API.Common.Internal

ToAttrVal [Text] (AttrVals Text) Source # 
Instance details

Defined in OTel.API.Common.Internal

ToAttrVal [String] (AttrVals Text) Source # 
Instance details

Defined in OTel.API.Common.Internal

ToAttrVal [Bool] (AttrVals Bool) Source # 
Instance details

Defined in OTel.API.Common.Internal

ToAttrVal [Double] (AttrVals Double) Source # 
Instance details

Defined in OTel.API.Common.Internal

ToAttrVal [Float] (AttrVals Double) Source # 
Instance details

Defined in OTel.API.Common.Internal

ToAttrVal [Int] (AttrVals Int64) Source # 
Instance details

Defined in OTel.API.Common.Internal

class KnownAttrType to => ToAttrVal from to | from -> to where Source #

Methods

toAttrVal :: from -> to Source #

Instances

Instances details
ToAttrVal Int16 Int64 Source # 
Instance details

Defined in OTel.API.Common.Internal

ToAttrVal Int32 Int64 Source # 
Instance details

Defined in OTel.API.Common.Internal

ToAttrVal Int64 Int64 Source # 
Instance details

Defined in OTel.API.Common.Internal

ToAttrVal Int8 Int64 Source # 
Instance details

Defined in OTel.API.Common.Internal

Methods

toAttrVal :: Int8 -> Int64 Source #

ToAttrVal Rational Double Source #

Precision may be lost.

Instance details

Defined in OTel.API.Common.Internal

ToAttrVal Word16 Int64 Source # 
Instance details

Defined in OTel.API.Common.Internal

ToAttrVal Word32 Int64 Source # 
Instance details

Defined in OTel.API.Common.Internal

ToAttrVal Word8 Int64 Source # 
Instance details

Defined in OTel.API.Common.Internal

ToAttrVal Text Text Source # 
Instance details

Defined in OTel.API.Common.Internal

Methods

toAttrVal :: Text -> Text Source #

ToAttrVal Text Text Source # 
Instance details

Defined in OTel.API.Common.Internal

Methods

toAttrVal :: Text -> Text0 Source #

ToAttrVal String Text Source # 
Instance details

Defined in OTel.API.Common.Internal

ToAttrVal Bool Bool Source # 
Instance details

Defined in OTel.API.Common.Internal

Methods

toAttrVal :: Bool -> Bool Source #

ToAttrVal Double Double Source # 
Instance details

Defined in OTel.API.Common.Internal

ToAttrVal Float Double Source # 
Instance details

Defined in OTel.API.Common.Internal

ToAttrVal Int Int64 Source # 
Instance details

Defined in OTel.API.Common.Internal

Methods

toAttrVal :: Int -> Int64 Source #

ToAttrVal (Seq Int16) (AttrVals Int64) Source # 
Instance details

Defined in OTel.API.Common.Internal

ToAttrVal (Seq Int32) (AttrVals Int64) Source # 
Instance details

Defined in OTel.API.Common.Internal

ToAttrVal (Seq Int64) (AttrVals Int64) Source # 
Instance details

Defined in OTel.API.Common.Internal

ToAttrVal (Seq Int8) (AttrVals Int64) Source # 
Instance details

Defined in OTel.API.Common.Internal

ToAttrVal (Seq Rational) (AttrVals Double) Source #

Precision may be lost.

Instance details

Defined in OTel.API.Common.Internal

ToAttrVal (Seq Word16) (AttrVals Int64) Source # 
Instance details

Defined in OTel.API.Common.Internal

ToAttrVal (Seq Word32) (AttrVals Int64) Source # 
Instance details

Defined in OTel.API.Common.Internal

ToAttrVal (Seq Word8) (AttrVals Int64) Source # 
Instance details

Defined in OTel.API.Common.Internal

ToAttrVal (Seq Text) (AttrVals Text) Source # 
Instance details

Defined in OTel.API.Common.Internal

ToAttrVal (Seq Text) (AttrVals Text) Source # 
Instance details

Defined in OTel.API.Common.Internal

ToAttrVal (Seq String) (AttrVals Text) Source # 
Instance details

Defined in OTel.API.Common.Internal

ToAttrVal (Seq Bool) (AttrVals Bool) Source # 
Instance details

Defined in OTel.API.Common.Internal

ToAttrVal (Seq Double) (AttrVals Double) Source # 
Instance details

Defined in OTel.API.Common.Internal

ToAttrVal (Seq Float) (AttrVals Double) Source # 
Instance details

Defined in OTel.API.Common.Internal

ToAttrVal (Seq Int) (AttrVals Int64) Source # 
Instance details

Defined in OTel.API.Common.Internal

ToAttrVal (AttrVals Int16) (AttrVals Int64) Source # 
Instance details

Defined in OTel.API.Common.Internal

ToAttrVal (AttrVals Int32) (AttrVals Int64) Source # 
Instance details

Defined in OTel.API.Common.Internal

ToAttrVal (AttrVals Int64) (AttrVals Int64) Source # 
Instance details

Defined in OTel.API.Common.Internal

ToAttrVal (AttrVals Int8) (AttrVals Int64) Source # 
Instance details

Defined in OTel.API.Common.Internal

ToAttrVal (AttrVals Rational) (AttrVals Double) Source #

Precision may be lost.

Instance details

Defined in OTel.API.Common.Internal

ToAttrVal (AttrVals Word16) (AttrVals Int64) Source # 
Instance details

Defined in OTel.API.Common.Internal

ToAttrVal (AttrVals Word32) (AttrVals Int64) Source # 
Instance details

Defined in OTel.API.Common.Internal

ToAttrVal (AttrVals Word8) (AttrVals Int64) Source # 
Instance details

Defined in OTel.API.Common.Internal

ToAttrVal (AttrVals Text) (AttrVals Text) Source # 
Instance details

Defined in OTel.API.Common.Internal

ToAttrVal (AttrVals Text) (AttrVals Text) Source # 
Instance details

Defined in OTel.API.Common.Internal

ToAttrVal (AttrVals String) (AttrVals Text) Source # 
Instance details

Defined in OTel.API.Common.Internal

ToAttrVal (AttrVals Bool) (AttrVals Bool) Source # 
Instance details

Defined in OTel.API.Common.Internal

ToAttrVal (AttrVals Double) (AttrVals Double) Source # 
Instance details

Defined in OTel.API.Common.Internal

ToAttrVal (AttrVals Float) (AttrVals Double) Source # 
Instance details

Defined in OTel.API.Common.Internal

ToAttrVal (AttrVals Int) (AttrVals Int64) Source # 
Instance details

Defined in OTel.API.Common.Internal

ToAttrVal (Vector Int16) (AttrVals Int64) Source # 
Instance details

Defined in OTel.API.Common.Internal

ToAttrVal (Vector Int32) (AttrVals Int64) Source # 
Instance details

Defined in OTel.API.Common.Internal

ToAttrVal (Vector Int64) (AttrVals Int64) Source # 
Instance details

Defined in OTel.API.Common.Internal

ToAttrVal (Vector Int8) (AttrVals Int64) Source # 
Instance details

Defined in OTel.API.Common.Internal

ToAttrVal (Vector Rational) (AttrVals Double) Source #

Precision may be lost.

Instance details

Defined in OTel.API.Common.Internal

ToAttrVal (Vector Word16) (AttrVals Int64) Source # 
Instance details

Defined in OTel.API.Common.Internal

ToAttrVal (Vector Word32) (AttrVals Int64) Source # 
Instance details

Defined in OTel.API.Common.Internal

ToAttrVal (Vector Word8) (AttrVals Int64) Source # 
Instance details

Defined in OTel.API.Common.Internal

ToAttrVal (Vector Text) (AttrVals Text) Source # 
Instance details

Defined in OTel.API.Common.Internal

ToAttrVal (Vector Text) (AttrVals Text) Source # 
Instance details

Defined in OTel.API.Common.Internal

ToAttrVal (Vector String) (AttrVals Text) Source # 
Instance details

Defined in OTel.API.Common.Internal

ToAttrVal (Vector Bool) (AttrVals Bool) Source # 
Instance details

Defined in OTel.API.Common.Internal

ToAttrVal (Vector Double) (AttrVals Double) Source # 
Instance details

Defined in OTel.API.Common.Internal

ToAttrVal (Vector Float) (AttrVals Double) Source # 
Instance details

Defined in OTel.API.Common.Internal

ToAttrVal (Vector Int) (AttrVals Int64) Source # 
Instance details

Defined in OTel.API.Common.Internal

ToAttrVal [Int16] (AttrVals Int64) Source # 
Instance details

Defined in OTel.API.Common.Internal

ToAttrVal [Int32] (AttrVals Int64) Source # 
Instance details

Defined in OTel.API.Common.Internal

ToAttrVal [Int64] (AttrVals Int64) Source # 
Instance details

Defined in OTel.API.Common.Internal

ToAttrVal [Int8] (AttrVals Int64) Source # 
Instance details

Defined in OTel.API.Common.Internal

ToAttrVal [Rational] (AttrVals Double) Source #

Precision may be lost.

Instance details

Defined in OTel.API.Common.Internal

ToAttrVal [Word16] (AttrVals Int64) Source # 
Instance details

Defined in OTel.API.Common.Internal

ToAttrVal [Word32] (AttrVals Int64) Source # 
Instance details

Defined in OTel.API.Common.Internal

ToAttrVal [Word8] (AttrVals Int64) Source # 
Instance details

Defined in OTel.API.Common.Internal

ToAttrVal [Text] (AttrVals Text) Source # 
Instance details

Defined in OTel.API.Common.Internal

ToAttrVal [Text] (AttrVals Text) Source # 
Instance details

Defined in OTel.API.Common.Internal

ToAttrVal [String] (AttrVals Text) Source # 
Instance details

Defined in OTel.API.Common.Internal

ToAttrVal [Bool] (AttrVals Bool) Source # 
Instance details

Defined in OTel.API.Common.Internal

ToAttrVal [Double] (AttrVals Double) Source # 
Instance details

Defined in OTel.API.Common.Internal

ToAttrVal [Float] (AttrVals Double) Source # 
Instance details

Defined in OTel.API.Common.Internal

ToAttrVal [Int] (AttrVals Int64) Source # 
Instance details

Defined in OTel.API.Common.Internal

with :: a -> (a -> b) -> b Source #

newtype OnException a Source #

Constructors

OnException 

Instances

Instances details
MonadIO OnException Source # 
Instance details

Defined in OTel.API.Common.Internal

Methods

liftIO :: IO a -> OnException a #

Applicative OnException Source # 
Instance details

Defined in OTel.API.Common.Internal

Methods

pure :: a -> OnException a #

(<*>) :: OnException (a -> b) -> OnException a -> OnException b #

liftA2 :: (a -> b -> c) -> OnException a -> OnException b -> OnException c #

(*>) :: OnException a -> OnException b -> OnException b #

(<*) :: OnException a -> OnException b -> OnException a #

Functor OnException Source # 
Instance details

Defined in OTel.API.Common.Internal

Methods

fmap :: (a -> b) -> OnException a -> OnException b #

(<$) :: a -> OnException b -> OnException a #

Monad OnException Source # 
Instance details

Defined in OTel.API.Common.Internal

Methods

(>>=) :: OnException a -> (a -> OnException b) -> OnException b #

(>>) :: OnException a -> OnException b -> OnException b #

return :: a -> OnException a #

MonadCatch OnException Source # 
Instance details

Defined in OTel.API.Common.Internal

Methods

catch :: (HasCallStack, Exception e) => OnException a -> (e -> OnException a) -> OnException a #

MonadMask OnException Source # 
Instance details

Defined in OTel.API.Common.Internal

Methods

mask :: HasCallStack => ((forall a. OnException a -> OnException a) -> OnException b) -> OnException b #

uninterruptibleMask :: HasCallStack => ((forall a. OnException a -> OnException a) -> OnException b) -> OnException b #

generalBracket :: HasCallStack => OnException a -> (a -> ExitCase b -> OnException c) -> (a -> OnException b) -> OnException (b, c) #

MonadThrow OnException Source # 
Instance details

Defined in OTel.API.Common.Internal

Methods

throwM :: (HasCallStack, Exception e) => e -> OnException a #

MonadLogger OnException Source # 
Instance details

Defined in OTel.API.Common.Internal

Methods

monadLoggerLog :: ToLogStr msg => Loc -> LogSource -> LogLevel -> msg -> OnException () #

MonadLoggerIO OnException Source # 
Instance details

Defined in OTel.API.Common.Internal

Methods

askLoggerIO :: OnException (Loc -> LogSource -> LogLevel -> LogStr -> IO ()) #

MonadUnliftIO OnException Source # 
Instance details

Defined in OTel.API.Common.Internal

Methods

withRunInIO :: ((forall a. OnException a -> IO a) -> IO b) -> OnException b #

Monoid a => Monoid (OnException a) Source # 
Instance details

Defined in OTel.API.Common.Internal

Semigroup a => Semigroup (OnException a) Source # 
Instance details

Defined in OTel.API.Common.Internal

newtype OnTimeout a Source #

Constructors

OnTimeout 

Fields

Instances

Instances details
MonadIO OnTimeout Source # 
Instance details

Defined in OTel.API.Common.Internal

Methods

liftIO :: IO a -> OnTimeout a #

Applicative OnTimeout Source # 
Instance details

Defined in OTel.API.Common.Internal

Methods

pure :: a -> OnTimeout a #

(<*>) :: OnTimeout (a -> b) -> OnTimeout a -> OnTimeout b #

liftA2 :: (a -> b -> c) -> OnTimeout a -> OnTimeout b -> OnTimeout c #

(*>) :: OnTimeout a -> OnTimeout b -> OnTimeout b #

(<*) :: OnTimeout a -> OnTimeout b -> OnTimeout a #

Functor OnTimeout Source # 
Instance details

Defined in OTel.API.Common.Internal

Methods

fmap :: (a -> b) -> OnTimeout a -> OnTimeout b #

(<$) :: a -> OnTimeout b -> OnTimeout a #

Monad OnTimeout Source # 
Instance details

Defined in OTel.API.Common.Internal

Methods

(>>=) :: OnTimeout a -> (a -> OnTimeout b) -> OnTimeout b #

(>>) :: OnTimeout a -> OnTimeout b -> OnTimeout b #

return :: a -> OnTimeout a #

MonadCatch OnTimeout Source # 
Instance details

Defined in OTel.API.Common.Internal

Methods

catch :: (HasCallStack, Exception e) => OnTimeout a -> (e -> OnTimeout a) -> OnTimeout a #

MonadMask OnTimeout Source # 
Instance details

Defined in OTel.API.Common.Internal

Methods

mask :: HasCallStack => ((forall a. OnTimeout a -> OnTimeout a) -> OnTimeout b) -> OnTimeout b #

uninterruptibleMask :: HasCallStack => ((forall a. OnTimeout a -> OnTimeout a) -> OnTimeout b) -> OnTimeout b #

generalBracket :: HasCallStack => OnTimeout a -> (a -> ExitCase b -> OnTimeout c) -> (a -> OnTimeout b) -> OnTimeout (b, c) #

MonadThrow OnTimeout Source # 
Instance details

Defined in OTel.API.Common.Internal

Methods

throwM :: (HasCallStack, Exception e) => e -> OnTimeout a #

MonadLogger OnTimeout Source # 
Instance details

Defined in OTel.API.Common.Internal

Methods

monadLoggerLog :: ToLogStr msg => Loc -> LogSource -> LogLevel -> msg -> OnTimeout () #

MonadLoggerIO OnTimeout Source # 
Instance details

Defined in OTel.API.Common.Internal

Methods

askLoggerIO :: OnTimeout (Loc -> LogSource -> LogLevel -> LogStr -> IO ()) #

MonadUnliftIO OnTimeout Source # 
Instance details

Defined in OTel.API.Common.Internal

Methods

withRunInIO :: ((forall a. OnTimeout a -> IO a) -> IO b) -> OnTimeout b #

Monoid a => Monoid (OnTimeout a) Source # 
Instance details

Defined in OTel.API.Common.Internal

Semigroup a => Semigroup (OnTimeout a) Source # 
Instance details

Defined in OTel.API.Common.Internal

Methods

(<>) :: OnTimeout a -> OnTimeout a -> OnTimeout a #

sconcat :: NonEmpty (OnTimeout a) -> OnTimeout a #

stimes :: Integral b => b -> OnTimeout a -> OnTimeout a #

data BufferedLoggerSpec Source #

Constructors

BufferedLoggerSpec 

Fields

includeLogAggregateViaAeson Source #

Arguments

:: forall a. ToJSON a 
=> (BufferedLogAgg -> Maybe a)

Summarizes the aggregated info

-> BufferedLog 
-> BufferedLogAgg 
-> [SeriesElem] 
-> LogStr 

withBufferedLogger :: forall m a. MonadUnliftIO m => BufferedLoggerSpec -> (Logger -> m a) -> m a Source #

type Logger = Loc -> LogSource -> LogLevel -> LogStr -> IO () Source #