aws_ex_ray v0.1.16 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
namespace()
namespace()
namespace() :: :none | :remote | :aws
namespace() :: :none | :remote | :aws
Link to this type
t()
t()
t() :: %AwsExRay.Subsegment{
aws: map() | nil,
namespace: namespace(),
segment: AwsExRay.Segment.t(),
sql: AwsExRay.Record.SQL.t() | nil
}
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
finished?(seg)
Link to this function
generate_trace_value(seg)
Link to this function
get_trace(seg)
get_trace(seg)
get_trace(seg :: t()) :: AwsExRay.Trace.t()
get_trace(seg :: t()) :: AwsExRay.Trace.t()
Link to this function
id(seg)
Link to this function
new(trace, name, namespace \\ :none)
new(trace, name, namespace \\ :none)
new(trace :: AwsExRay.Trace.t(), name :: String.t(), namespace :: namespace()) ::
t()
new(trace :: AwsExRay.Trace.t(), name :: String.t(), namespace :: namespace()) :: t()
Link to this function
sampled?(seg)
Link to this function
set_aws(seg, params)
Link to this function
set_error(seg, error)
set_error(seg, error)
set_error(seg :: t(), error :: AwsExRay.Record.Error.t()) :: t()
set_error(seg :: t(), error :: AwsExRay.Record.Error.t()) :: t()
Link to this function
set_http_request(seg, req)
set_http_request(seg, req)
set_http_request(seg :: t(), req :: AwsExRay.Record.HTTPRequest.t()) ::
t()
set_http_request(seg :: t(), req :: AwsExRay.Record.HTTPRequest.t()) :: t()
Link to this function
set_http_response(seg, res)
set_http_response(seg, res)
set_http_response(seg :: t(), res :: AwsExRay.Record.HTTPResponse.t()) ::
t()
set_http_response(seg :: t(), res :: AwsExRay.Record.HTTPResponse.t()) :: t()
Link to this function
set_sql(seg, sql)
set_sql(seg, sql)
set_sql(seg :: t(), sql :: AwsExRay.Record.SQL.t()) :: t()
set_sql(seg :: t(), sql :: AwsExRay.Record.SQL.t()) :: t()
Link to this function
set_start_time(seg, start_time)
Link to this function