AWS SDK for C++AWS SDK for C++ Version 1.11.788 |
#include <TraceSpan.h>
The basic unit of a "Trace". Represents a time period during which events occur. Child spans and events can take place within trace. It is a hierarchy and ledger of timing and events during a operation.
Definition at line 30 of file TraceSpan.h.
Emit a event associated with the span.
| name | The name of the event. |
| attributes | the attributes or dimensions associate with this measurement. |
Implemented in smithy::components::tracing::OtelSpanAdapter, and smithy::components::tracing::NoopTracerSpan.
End the span and mark as finished.
Implemented in smithy::components::tracing::OtelSpanAdapter, and smithy::components::tracing::NoopTracerSpan.
Set a Attribute to span.
| key | The key of the dimension/attribute. |
| value | The value of the dimension/attribute. |
Implemented in smithy::components::tracing::OtelSpanAdapter, and smithy::components::tracing::NoopTracerSpan.
Set the statue of the span.
| status | The status to be assigned. |
Implemented in smithy::components::tracing::OtelSpanAdapter, and smithy::components::tracing::NoopTracerSpan.