amazonka-xray-2.0: Amazon X-Ray SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.XRay.Types.Trace

Description

 
Synopsis

Documentation

data Trace Source #

A collection of segment documents with matching trace IDs.

See: newTrace smart constructor.

Constructors

Trace' 

Fields

  • duration :: Maybe Double

    The length of time in seconds between the start time of the root segment and the end time of the last segment that completed.

  • id :: Maybe Text

    The unique identifier for the request that generated the trace's segments and subsegments.

  • limitExceeded :: Maybe Bool

    LimitExceeded is set to true when the trace has exceeded the Trace document size limit. For more information about this limit and other X-Ray limits and quotas, see Amazon Web Services X-Ray endpoints and quotas.

  • segments :: Maybe [Segment]

    Segment documents for the segments and subsegments that comprise the trace.

Instances

Instances details
FromJSON Trace Source # 
Instance details

Defined in Amazonka.XRay.Types.Trace

Generic Trace Source # 
Instance details

Defined in Amazonka.XRay.Types.Trace

Associated Types

type Rep Trace :: Type -> Type #

Methods

from :: Trace -> Rep Trace x #

to :: Rep Trace x -> Trace #

Read Trace Source # 
Instance details

Defined in Amazonka.XRay.Types.Trace

Show Trace Source # 
Instance details

Defined in Amazonka.XRay.Types.Trace

Methods

showsPrec :: Int -> Trace -> ShowS #

show :: Trace -> String #

showList :: [Trace] -> ShowS #

NFData Trace Source # 
Instance details

Defined in Amazonka.XRay.Types.Trace

Methods

rnf :: Trace -> () #

Eq Trace Source # 
Instance details

Defined in Amazonka.XRay.Types.Trace

Methods

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

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

Hashable Trace Source # 
Instance details

Defined in Amazonka.XRay.Types.Trace

Methods

hashWithSalt :: Int -> Trace -> Int #

hash :: Trace -> Int #

type Rep Trace Source # 
Instance details

Defined in Amazonka.XRay.Types.Trace

type Rep Trace = D1 ('MetaData "Trace" "Amazonka.XRay.Types.Trace" "amazonka-xray-2.0-EVMSPoflqtHB9ZqvEIOE4Q" 'False) (C1 ('MetaCons "Trace'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "duration") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Double)) :*: S1 ('MetaSel ('Just "id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "limitExceeded") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "segments") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Segment])))))

newTrace :: Trace Source #

Create a value of Trace with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:duration:Trace', trace_duration - The length of time in seconds between the start time of the root segment and the end time of the last segment that completed.

Trace, trace_id - The unique identifier for the request that generated the trace's segments and subsegments.

$sel:limitExceeded:Trace', trace_limitExceeded - LimitExceeded is set to true when the trace has exceeded the Trace document size limit. For more information about this limit and other X-Ray limits and quotas, see Amazon Web Services X-Ray endpoints and quotas.

$sel:segments:Trace', trace_segments - Segment documents for the segments and subsegments that comprise the trace.

trace_duration :: Lens' Trace (Maybe Double) Source #

The length of time in seconds between the start time of the root segment and the end time of the last segment that completed.

trace_id :: Lens' Trace (Maybe Text) Source #

The unique identifier for the request that generated the trace's segments and subsegments.

trace_limitExceeded :: Lens' Trace (Maybe Bool) Source #

LimitExceeded is set to true when the trace has exceeded the Trace document size limit. For more information about this limit and other X-Ray limits and quotas, see Amazon Web Services X-Ray endpoints and quotas.

trace_segments :: Lens' Trace (Maybe [Segment]) Source #

Segment documents for the segments and subsegments that comprise the trace.