AWS SDK for C++AWS SDK for C++ Version 1.11.930 |
#include <TraceSpan.h>
Public Member Functions | |
| TraceSpan (Aws::String name) | |
| virtual | ~TraceSpan ()=default |
| virtual void | emitEvent (Aws::String name, const Aws::Map< Aws::String, Aws::String > &attributes)=0 |
| virtual void | setAttribute (Aws::String key, Aws::String value)=0 |
| virtual void | setStatus (TraceSpanStatus status)=0 |
| virtual void | end ()=0 |
| virtual void | releaseScope () |
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.
|
inline |
|
virtualdefault |
|
pure virtual |
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::NoopTracerSpan, and smithy::components::tracing::OtelSpanAdapter.
|
pure virtual |
End the span and mark as finished.
Implemented in smithy::components::tracing::NoopTracerSpan, and smithy::components::tracing::OtelSpanAdapter.
|
inlinevirtual |
Reimplemented in smithy::components::tracing::OtelSpanAdapter.
Definition at line 65 of file TraceSpan.h.
|
pure virtual |
Set a Attribute to span.
| key | The key of the dimension/attribute. |
| value | The value of the dimension/attribute. |
Implemented in smithy::components::tracing::NoopTracerSpan, and smithy::components::tracing::OtelSpanAdapter.
|
pure virtual |
Set the statue of the span.
| status | The status to be assigned. |
Implemented in smithy::components::tracing::NoopTracerSpan, and smithy::components::tracing::OtelSpanAdapter.