|
|
NVIDIA DeepStream SDK API Reference
|
9.2 Release
|
Go to the documentation of this file.
13 #include "opentelemetry/sdk/common/attribute_utils.h"
14 #include "opentelemetry/sdk/common/exporter_utils.h"
15 #include "opentelemetry/sdk/metrics/data/metric_data.h"
16 #include "opentelemetry/sdk/metrics/export/metric_producer.h"
17 #include "opentelemetry/sdk/metrics/instruments.h"
18 #include "opentelemetry/sdk/metrics/push_metric_exporter.h"
19 #include "opentelemetry/sdk/resource/resource.h"
20 #include "opentelemetry/version.h"
73 std::atomic<bool> is_shutdown_{
false};
74 std::mutex serialize_lock_;
76 bool isShutdown()
const noexcept;
81 void printAttributes(
const std::map<std::string, sdk::common::OwnedAttributeValue> &map,
82 const std::string &prefix);
83 void printResources(
const opentelemetry::sdk::resource::Resource &resources);
ExportResult
ExportResult is returned as result of exporting a batch of Records.
Metric Data to be exported along with resources and Instrumentation scope.
bool ForceFlush(std::chrono::microseconds timeout=(std::chrono::microseconds::max)()) noexcept override
Force flush the exporter.
sdk::common::ExportResult Export(const sdk::metrics::ResourceMetrics &data) noexcept override
Export.
opentelemetry::sdk::common::OrderedAttributeMap PointAttributes
#define OPENTELEMETRY_BEGIN_NAMESPACE
sdk::metrics::AggregationTemporality GetAggregationTemporality(sdk::metrics::InstrumentType instrument_type) const noexcept override
Get the AggregationTemporality for ostream exporter.
int max(int a, int b)
Compute the component-wise maximum.
#define OPENTELEMETRY_END_NAMESPACE
bool Shutdown(std::chrono::microseconds timeout=(std::chrono::microseconds::max)()) noexcept override
Shut down the exporter.
OStreamMetricExporter(std::ostream &sout=std::cout, sdk::metrics::AggregationTemporality aggregation_temporality=sdk::metrics::AggregationTemporality::kCumulative) noexcept
Create an OStreamMetricExporter.
The OStreamMetricExporter exports record data through an ostream.
opentelemetry::nostd::variant< SumPointData, HistogramPointData, Base2ExponentialHistogramPointData, LastValuePointData, DropPointData > PointType