aws_ex_ray v0.1.7 AwsExRay.Subsegment
This module provides data structure which represents X-Ray’s subsegment
Link to this section Summary
Link to this section Types
Link to this type
t()
t() :: %AwsExRay.Subsegment{ aws: map() | nil, namespace: namespace(), segment: AwsExRay.Segment.t(), sql: AwsExRay.Record.SQL.t() | nil }
Link to this section Functions
Link to this function
add_annotation(seg, key, value)
Link to this function
add_annotations(seg, annotations)
Link to this function
finish(seg, end_time \\ Util.now())
Link to this function
new(trace, name, namespace \\ :none)
new(trace :: AwsExRay.Trace.t(), name :: String.t(), namespace :: namespace()) :: t()
Link to this function
set_error(seg, error)
set_error(seg :: t(), error :: AwsExRay.Record.Error.t()) :: t()
Link to this function
set_http_request(seg, req)
set_http_request(seg :: t(), req :: AwsExRay.Record.HTTPRequest.t()) :: t()
Link to this function
set_http_response(seg, res)
set_http_response(seg :: t(), res :: AwsExRay.Record.HTTPResponse.t()) :: t()
Link to this function
set_start_time(seg, start_time)