aws-xray-client-0.1.0.2: A client for AWS X-Ray.
Safe HaskellNone
LanguageHaskell2010

Network.AWS.XRayClient.TraceId

Synopsis

Documentation

amazonTraceIdHeaderName :: HeaderName Source #

Variable for "X-Amzn-Trace-Id" so you don't have to worry about misspelling it.

Trace ID

newtype XRayTraceId Source #

A trace_id consists of three numbers separated by hyphens. For example, 1-58406520-a006649127e371903a2de979. This includes: The version number, that is, 1. The time of the original request, in Unix epoch time, in 8 hexadecimal digits. For example, 10:00AM December 2nd, 2016 PST in epoch time is 1480615200 seconds, or 58406520 in hexadecimal. A 96-bit identifier for the trace, globally unique, in 24 hexadecimal digits.

Constructors

XRayTraceId 

Fields

generateXRayTraceId :: IORef StdGen -> IO XRayTraceId Source #

Generates an XRayTraceId in IO. WARNING: This uses the global StdGen, so this can be a bottleneck in multi-threaded applications.

newtype XRaySegmentId Source #

A 64-bit identifier for the segment, unique among segments in the same trace, in 16 hexadecimal digits.

Constructors

XRaySegmentId 

Trace ID Header

data XRayTraceIdHeaderData Source #

Instances

Instances details
Eq XRayTraceIdHeaderData Source # 
Instance details

Defined in Network.AWS.XRayClient.TraceId

Show XRayTraceIdHeaderData Source # 
Instance details

Defined in Network.AWS.XRayClient.TraceId

Generic XRayTraceIdHeaderData Source # 
Instance details

Defined in Network.AWS.XRayClient.TraceId

Associated Types

type Rep XRayTraceIdHeaderData :: Type -> Type #

type Rep XRayTraceIdHeaderData Source # 
Instance details

Defined in Network.AWS.XRayClient.TraceId

type Rep XRayTraceIdHeaderData = D1 ('MetaData "XRayTraceIdHeaderData" "Network.AWS.XRayClient.TraceId" "aws-xray-client-0.1.0.2-4DGE19LqMaACcB25FLr6L6" 'False) (C1 ('MetaCons "XRayTraceIdHeaderData" 'PrefixI 'True) (S1 ('MetaSel ('Just "xrayTraceIdHeaderDataRootTraceId") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 XRayTraceId) :*: (S1 ('MetaSel ('Just "xrayTraceIdHeaderDataParentId") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Maybe XRaySegmentId)) :*: S1 ('MetaSel ('Just "xrayTraceIdHeaderDataSampled") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Maybe Bool)))))

parseXRayTraceIdHeaderData :: ByteString -> Maybe XRayTraceIdHeaderData Source #

Try to parse the value of the X-Amzn-Trace-Id into a XRayTraceIdHeaderData.

makeXRayTraceIdHeaderValue :: XRayTraceIdHeaderData -> ByteString Source #

Turns a XRayTraceIdHeaderData into a ByteString meant for the X-Amzn-Trace-Id header value.