Skip to content

Commit

Permalink
Fix constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
owent committed Sep 9, 2023
1 parent ca3286a commit 1436368
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions sdk/include/opentelemetry/sdk/metrics/export/metric_producer.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,15 +34,23 @@ struct ScopeMetrics
const opentelemetry::sdk::instrumentationscope::InstrumentationScope *scope_ = nullptr;
std::vector<MetricData> metric_data_;

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

struct ResourceMetrics
{
const opentelemetry::sdk::resource::Resource *resource_ = nullptr;
std::vector<ScopeMetrics> scope_metric_data_;

ResourceMetrics() = default;
ResourceMetrics() = default;
ResourceMetrics(const ResourceMetrics &) = default;
ResourceMetrics(ResourceMetrics &&) = default;
ResourceMetrics &operator=(const ResourceMetrics &) = default;
ResourceMetrics &operator=(ResourceMetrics &&) = default;
};

/**
Expand Down

0 comments on commit 1436368

Please sign in to comment.