|
|
NVIDIA DeepStream SDK API Reference
|
9.2 Release
|
Go to the documentation of this file.
9 #include "opentelemetry/nostd/function_ref.h"
10 #include "opentelemetry/sdk/metrics/export/metric_producer.h"
11 #include "opentelemetry/sdk/metrics/instruments.h"
12 #include "opentelemetry/version.h"
62 virtual bool OnForceFlush(std::chrono::microseconds timeout) noexcept = 0;
64 virtual bool OnShutDown(std::chrono::microseconds timeout) noexcept = 0;
66 virtual void OnInitialized() noexcept {}
71 std::atomic<bool> shutdown_{
false};
MetricReader defines the interface to collect metrics from SDK.
void SetMetricProducer(MetricProducer *metric_producer)
virtual AggregationTemporality GetAggregationTemporality(InstrumentType instrument_type) const noexcept=0
Get the AggregationTemporality for given Instrument Type for this reader.
#define OPENTELEMETRY_BEGIN_NAMESPACE
bool IsShutdown() const noexcept
Return the status of Metric reader.
bool Collect(nostd::function_ref< bool(ResourceMetrics &metric_data)> callback) noexcept
Collect the metrics from SDK.
MetricProducer defines the interface which bridges to third-party metric sources MUST implement,...
virtual ~MetricReader()=default
int max(int a, int b)
Compute the component-wise maximum.
#define OPENTELEMETRY_END_NAMESPACE
bool ForceFlush(std::chrono::microseconds timeout=(std::chrono::microseconds::max)()) noexcept
Force flush the metric read by the reader.
bool Shutdown(std::chrono::microseconds timeout=(std::chrono::microseconds::max)()) noexcept
Shutdown the metric reader.