MetricProducer defines the interface which bridges to third-party metric sources MUST implement, so they can be plugged into an OpenTelemetry MetricReader as a source of aggregated metric data.
Implementations must be thread-safe, and should accept configuration for the AggregationTemporality of produced metrics.
Definition at line 82 of file includes/opentelemetry/sdk/metrics/export/metric_producer.h.

Data Structures | |
| struct | Result |
Public Types | |
| enum | Status { Status::kSuccess, Status::kFailure, Status::kTimeout, Status::kSuccess, Status::kFailure, Status::kTimeout } |
| enum | Status { Status::kSuccess, Status::kFailure, Status::kTimeout, Status::kSuccess, Status::kFailure, Status::kTimeout } |
Public Member Functions | |
| MetricProducer ()=default | |
| virtual | ~MetricProducer ()=default |
| MetricProducer (const MetricProducer &)=delete | |
| MetricProducer (const MetricProducer &&)=delete | |
| virtual Result | Produce () noexcept=0 |
| Produce returns a batch of Metric Points, with a single instrumentation scope that identifies the MetricProducer. More... | |
| MetricProducer ()=default | |
| virtual | ~MetricProducer ()=default |
| MetricProducer (const MetricProducer &)=delete | |
| MetricProducer (const MetricProducer &&)=delete | |
| virtual Result | Produce () noexcept=0 |
| Produce returns a batch of Metric Points, with a single instrumentation scope that identifies the MetricProducer. More... | |
|
strong |
| Enumerator | |
|---|---|
| kSuccess | |
| kFailure | |
| kTimeout | |
| kSuccess | |
| kFailure | |
| kTimeout | |
Definition at line 91 of file includes/opentelemetry/sdk/metrics/export/metric_producer.h.
|
strong |
| Enumerator | |
|---|---|
| kSuccess | |
| kFailure | |
| kTimeout | |
| kSuccess | |
| kFailure | |
| kTimeout | |
Definition at line 91 of file 9.2/includes/opentelemetry/sdk/metrics/export/metric_producer.h.
|
default |
|
virtualdefault |
|
delete |
|
delete |
|
default |
|
virtualdefault |
|
delete |
|
delete |
|
pure virtualnoexcept |
Produce returns a batch of Metric Points, with a single instrumentation scope that identifies the MetricProducer.
Implementations may return successfully collected points even if there is a partial failure.
Implemented in sdk::metrics::MetricCollector, and sdk::metrics::MetricCollector.
|
pure virtualnoexcept |
Produce returns a batch of Metric Points, with a single instrumentation scope that identifies the MetricProducer.
Implementations may return successfully collected points even if there is a partial failure.
Implemented in sdk::metrics::MetricCollector, and sdk::metrics::MetricCollector.