AWS SDK for C++AWS SDK for C++ Version 1.11.928 |
#include <TelemetryProvider.h>
Public Member Functions | |
| TelemetryProvider (Aws::UniquePtr< TracerProvider > tracerProvider, Aws::UniquePtr< MeterProvider > meterProvider, std::function< void()> init, std::function< void()> shutdown) | |
| virtual | ~TelemetryProvider () |
| std::shared_ptr< Tracer > | getTracer (Aws::String scope, const Aws::Map< Aws::String, Aws::String > &attributes) |
| std::shared_ptr< Meter > | getMeter (Aws::String scope, const Aws::Map< Aws::String, Aws::String > &attributes) |
| void | RunInit () |
| void | RunShutDown () |
A Utility holder class that manages the creation and management of telemetry related operations.
Definition at line 21 of file TelemetryProvider.h.
|
inline |
Creates a Telemetry provider with given providers and a init and shutdown function that is run during its ctor/dtor.
| tracerProvider | The TracerProvider to be used in the SDK. |
| meterProvider | The MeterProvider to be used in the SDK. |
| init | The initialization function that will be run at creation. |
| shutdown | The shutdown function that will be run at destruction. |
Definition at line 31 of file TelemetryProvider.h.
|
inlinevirtual |
Definition at line 43 of file TelemetryProvider.h.
|
inline |
Returns a reference to a Meter used to create metrics.
| scope | The scope of the Meter that is being used. |
| attributes | the attributes or dimensions associate with this measurement. |
Definition at line 67 of file TelemetryProvider.h.
|
inline |
Returns a reference to a Tracer used to create spans.
| scope | The scope of the Tracer that is being used. |
| attributes | the attributes or dimensions associate with this measurement. |
Definition at line 55 of file TelemetryProvider.h.
|
inline |
Runs initialization of the Tracer Provider and the MeterProvider. Will only be run once during initialization.
Definition at line 75 of file TelemetryProvider.h.
|
inline |
Runs shutdown of the Tracer Provider and the MeterProvider. Will only be run once during destruction.
Definition at line 83 of file TelemetryProvider.h.