Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- data Resource (attrs :: AttrsFor -> Type) = Resource {
- resourceAttrs :: attrs 'AttrsForResource
- resourceSchemaURL :: Maybe SchemaURL
- defaultResourceBuilder :: Text -> ResourceBuilder
- forSpecificSchema :: SchemaURL -> ResourceBuilder -> ResourceBuilder
- resourceBuilderFromAttrs :: AttrsBuilder 'AttrsForResource -> ResourceBuilder
- newtype ResourceBuilder = ResourceBuilder {}
- buildResource :: forall m. MonadThrow m => ResourceBuilder -> m (Resource Attrs)
- buildResourcePure :: ResourceBuilder -> Either ResourceMergeError (Resource Attrs)
- newtype ResourceMergeError = ResourceMergeError {}
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.
data Resource (attrs :: AttrsFor -> Type) Source #
Resource | |
|
newtype ResourceBuilder Source #
Instances
Monoid ResourceBuilder Source # | |
Defined in OTel.SDK.Resource.Core.Internal mappend :: ResourceBuilder -> ResourceBuilder -> ResourceBuilder # mconcat :: [ResourceBuilder] -> ResourceBuilder # | |
Semigroup ResourceBuilder Source # | |
Defined in OTel.SDK.Resource.Core.Internal (<>) :: ResourceBuilder -> ResourceBuilder -> ResourceBuilder # sconcat :: NonEmpty ResourceBuilder -> ResourceBuilder # stimes :: Integral b => b -> ResourceBuilder -> ResourceBuilder # | |
KV ResourceBuilder Source # | |
Defined in OTel.SDK.Resource.Core.Internal type KVConstraints ResourceBuilder :: Type -> Type -> Constraint # (.@) :: KVConstraints ResourceBuilder from to => Key to -> from -> ResourceBuilder # | |
type KVConstraints ResourceBuilder Source # | |
Defined in OTel.SDK.Resource.Core.Internal |
buildResource :: forall m. MonadThrow m => ResourceBuilder -> m (Resource Attrs) Source #
newtype ResourceMergeError Source #
Instances
Exception ResourceMergeError Source # | |
Show ResourceMergeError Source # | |
Defined in OTel.SDK.Resource.Core.Internal showsPrec :: Int -> ResourceMergeError -> ShowS # show :: ResourceMergeError -> String # showList :: [ResourceMergeError] -> ShowS # | |
Eq ResourceMergeError Source # | |
Defined in OTel.SDK.Resource.Core.Internal (==) :: ResourceMergeError -> ResourceMergeError -> Bool # (/=) :: ResourceMergeError -> ResourceMergeError -> Bool # |