The OStreamMetricExporter exports record data through an ostream.
Definition at line 31 of file includes/opentelemetry/exporters/ostream/metric_exporter.h.


Public Member Functions | |
| OStreamMetricExporter (std::ostream &sout=std::cout, sdk::metrics::AggregationTemporality aggregation_temporality=sdk::metrics::AggregationTemporality::kCumulative) noexcept | |
| Create an OStreamMetricExporter. More... | |
| sdk::common::ExportResult | Export (const sdk::metrics::ResourceMetrics &data) noexcept override |
| Export. More... | |
| sdk::metrics::AggregationTemporality | GetAggregationTemporality (sdk::metrics::InstrumentType instrument_type) const noexcept override |
| Get the AggregationTemporality for ostream exporter. More... | |
| bool | ForceFlush (std::chrono::microseconds timeout=(std::chrono::microseconds::max)()) noexcept override |
| Force flush the exporter. More... | |
| bool | Shutdown (std::chrono::microseconds timeout=(std::chrono::microseconds::max)()) noexcept override |
| Shut down the exporter. More... | |
| OStreamMetricExporter (std::ostream &sout=std::cout, sdk::metrics::AggregationTemporality aggregation_temporality=sdk::metrics::AggregationTemporality::kCumulative) noexcept | |
| Create an OStreamMetricExporter. More... | |
| sdk::common::ExportResult | Export (const sdk::metrics::ResourceMetrics &data) noexcept override |
| Export. More... | |
| sdk::metrics::AggregationTemporality | GetAggregationTemporality (sdk::metrics::InstrumentType instrument_type) const noexcept override |
| Get the AggregationTemporality for ostream exporter. More... | |
| bool | ForceFlush (std::chrono::microseconds timeout=(std::chrono::microseconds::max)()) noexcept override |
| Force flush the exporter. More... | |
| bool | Shutdown (std::chrono::microseconds timeout=(std::chrono::microseconds::max)()) noexcept override |
| Shut down the exporter. More... | |
|
explicitnoexcept |
Create an OStreamMetricExporter.
This constructor takes in a reference to an ostream that the export() function will send metrics data into. The default ostream is set to stdout
|
explicitnoexcept |
Create an OStreamMetricExporter.
This constructor takes in a reference to an ostream that the export() function will send metrics data into. The default ostream is set to stdout
|
overridenoexcept |
Export.
| data | metrics data |
|
overridenoexcept |
Export.
| data | metrics data |
|
overridenoexcept |
Force flush the exporter.
|
overridenoexcept |
Force flush the exporter.
|
overridenoexcept |
Get the AggregationTemporality for ostream exporter.
|
overridenoexcept |
Get the AggregationTemporality for ostream exporter.
|
overridenoexcept |
Shut down the exporter.
| timeout | an optional timeout. |
|
overridenoexcept |
Shut down the exporter.
| timeout | an optional timeout. |