AWS SDK for C++

AWS SDK for C++ Version 1.11.788

Loading...
Searching...
No Matches
Public Member Functions | List of all members
smithy::components::tracing::NoopTracerSpan Class Reference

#include <NoopTracerProvider.h>

Inheritance diagram for smithy::components::tracing::NoopTracerSpan:
[legend]

Public Member Functions

 NoopTracerSpan (const Aws::String &name)
 
void emitEvent (Aws::String name, const Aws::Map< Aws::String, Aws::String > &attributes) override
 
void setAttribute (Aws::String key, Aws::String value) override
 
void setStatus (TraceSpanStatus status) override
 
void end () override
 

Public Member Functions inherited from smithy::components::tracing::TraceSpan

 
virtual ~TraceSpan ()=default
 

Detailed Description

A no-op implementation of TraceSpan that is pass through.

Definition at line 17 of file NoopTracerProvider.h.

Constructor & Destructor Documentation

◆ NoopTracerSpan()

smithy::components::tracing::NoopTracerSpan::NoopTracerSpan ( const Aws::String name)
inline

Definition at line 19 of file NoopTracerProvider.h.

Member Function Documentation

◆ emitEvent()

void smithy::components::tracing::NoopTracerSpan::emitEvent ( Aws::String  name,
const Aws::Map< Aws::String, Aws::String > &  attributes 
)
inlineoverridevirtual

Emit a event associated with the span.

Parameters
nameThe name of the event.
attributesthe attributes or dimensions associate with this measurement.

Implements smithy::components::tracing::TraceSpan.

Definition at line 21 of file NoopTracerProvider.h.

◆ end()

void smithy::components::tracing::NoopTracerSpan::end ( )
inlineoverridevirtual

End the span and mark as finished.

Implements smithy::components::tracing::TraceSpan.

Definition at line 35 of file NoopTracerProvider.h.

◆ setAttribute()

void smithy::components::tracing::NoopTracerSpan::setAttribute ( Aws::String  key,
Aws::String  value 
)
inlineoverridevirtual

Set a Attribute to span.

Parameters
keyThe key of the dimension/attribute.
valueThe value of the dimension/attribute.

Implements smithy::components::tracing::TraceSpan.

Definition at line 26 of file NoopTracerProvider.h.

◆ setStatus()

void smithy::components::tracing::NoopTracerSpan::setStatus ( TraceSpanStatus  status)
inlineoverridevirtual

Set the statue of the span.

Parameters
statusThe status to be assigned.

Implements smithy::components::tracing::TraceSpan.

Definition at line 31 of file NoopTracerProvider.h.


The documentation for this class was generated from the following file: