Factory for creating MetricsReporter instances.
More...
#include <functional>
#include <memory>
#include <string>
#include <string_view>
#include <unordered_map>
#include <unordered_set>
#include "iceberg/iceberg_export.h"
#include "iceberg/metrics/metrics_reporter.h"
#include "iceberg/result.h"
Go to the source code of this file.
|
| constexpr std::string_view | iceberg::kMetricsReporterImpl = "metrics-reporter-impl" |
| | Property key for configuring the metrics reporter implementation.
|
| |
|
constexpr std::string_view | iceberg::kMetricsReporterTypeNoop = "noop" |
| | Property value for the noop metrics reporter.
|
| |
Factory for creating MetricsReporter instances.
◆ MetricsReporterFactory
| using iceberg::MetricsReporterFactory = typedef std::function<Result<std::unique_ptr<MetricsReporter> >( const std::unordered_map<std::string, std::string>& properties)> |
Function type for creating MetricsReporter instances.
- Parameters
-
| properties | Configuration properties for the reporter. |
- Returns
- A new MetricsReporter instance or an error.
◆ kMetricsReporterImpl
| constexpr std::string_view iceberg::kMetricsReporterImpl = "metrics-reporter-impl" |
|
constexpr |
Property key for configuring the metrics reporter implementation.
Set this property in catalog properties to specify which metrics reporter implementation to use. The value should match a registered reporter type.