hydra-node-0.19.0: The Hydra node
Safe HaskellSafe-Inferred
LanguageGHC2021

Hydra.Logging.Messages

Description

Aggregates all tracing messages in a single type.

This module provides a central point where top-level traced messages are grouped. This is useful for traces consumers that will need to do something specific depending on various tracing messages, eg. monitoring and metrics collection.

Documentation

data HydraLog tx net Source #

Instances

Instances details
(Arbitrary net, Arbitrary (HydraNodeLog tx)) => Arbitrary (HydraLog tx net) Source # 
Instance details

Defined in Hydra.Logging.Messages

Methods

arbitrary :: Gen (HydraLog tx net)

shrink :: HydraLog tx net -> [HydraLog tx net]

(FromJSON net, FromJSON (HydraNodeLog tx)) => FromJSON (HydraLog tx net) Source # 
Instance details

Defined in Hydra.Logging.Messages

Methods

parseJSON :: Value -> Parser (HydraLog tx net)

parseJSONList :: Value -> Parser [HydraLog tx net]

omittedField :: Maybe (HydraLog tx net)

(ToJSON net, ToJSON (HydraNodeLog tx)) => ToJSON (HydraLog tx net) Source # 
Instance details

Defined in Hydra.Logging.Messages

Methods

toJSON :: HydraLog tx net -> Value

toEncoding :: HydraLog tx net -> Encoding

toJSONList :: [HydraLog tx net] -> Value

toEncodingList :: [HydraLog tx net] -> Encoding

omitField :: HydraLog tx net -> Bool

Generic (HydraLog tx net) Source # 
Instance details

Defined in Hydra.Logging.Messages

Associated Types

type Rep (HydraLog tx net) :: Type -> Type Source #

Methods

from :: HydraLog tx net -> Rep (HydraLog tx net) x Source #

to :: Rep (HydraLog tx net) x -> HydraLog tx net Source #

(Show net, Show (HydraNodeLog tx)) => Show (HydraLog tx net) Source # 
Instance details

Defined in Hydra.Logging.Messages

Methods

showsPrec :: Int -> HydraLog tx net -> ShowS Source #

show :: HydraLog tx net -> String Source #

showList :: [HydraLog tx net] -> ShowS Source #

(Eq net, Eq (HydraNodeLog tx)) => Eq (HydraLog tx net) Source # 
Instance details

Defined in Hydra.Logging.Messages

Methods

(==) :: HydraLog tx net -> HydraLog tx net -> Bool Source #

(/=) :: HydraLog tx net -> HydraLog tx net -> Bool Source #

type Rep (HydraLog tx net) Source # 
Instance details

Defined in Hydra.Logging.Messages

type Rep (HydraLog tx net) = D1 ('MetaData "HydraLog" "Hydra.Logging.Messages" "hydra-node-0.19.0-6Z4E5vp1s1XJuLOmmEVMTw" 'False) ((C1 ('MetaCons "DirectChain" 'PrefixI 'True) (S1 ('MetaSel ('Just "directChain") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 DirectChainLog)) :+: (C1 ('MetaCons "APIServer" 'PrefixI 'True) (S1 ('MetaSel ('Just "api") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 APIServerLog)) :+: C1 ('MetaCons "Network" 'PrefixI 'True) (S1 ('MetaSel ('Just "network") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 net)))) :+: ((C1 ('MetaCons "Node" 'PrefixI 'True) (S1 ('MetaSel ('Just "node") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (HydraNodeLog tx))) :+: C1 ('MetaCons "NodeOptions" 'PrefixI 'True) (S1 ('MetaSel ('Just "runOptions") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 RunOptions))) :+: (C1 ('MetaCons "Authentication" 'PrefixI 'True) (S1 ('MetaSel ('Just "authentication") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 AuthLog)) :+: C1 ('MetaCons "Reliability" 'PrefixI 'True) (S1 ('MetaSel ('Just "reliability") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ReliabilityLog)))))