Skip to content

Commit

Permalink
try fixing
Browse files Browse the repository at this point in the history
  • Loading branch information
dashpole committed Sep 26, 2023
1 parent 11a42dc commit 58f8f65
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions sdk/include/opentelemetry/sdk/metrics/export/metric_producer.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,19 @@ struct ScopeMetrics
{
const opentelemetry::sdk::instrumentationscope::InstrumentationScope *scope_ = nullptr;
std::vector<MetricData> metric_data_;

template <class ScopePtr, class MetricDataType>
inline ScopeMetrics(ScopePtr &&scope, MetricDataType &&metric)
: scope_{std::move(scope)}, metric_data_{std::move(metric)}
{}

inline ScopeMetrics() {}
inline ScopeMetrics(const ScopeMetrics &) = default;
inline ScopeMetrics(ScopeMetrics &&) = default;

inline ScopeMetrics &operator=(const ScopeMetrics &) = default;

inline ScopeMetrics &operator=(ScopeMetrics &&) = default;
};

struct ResourceMetrics
Expand Down

0 comments on commit 58f8f65

Please sign in to comment.