Skip to content

Commit

Permalink
MetricStorage dtors (open-telemetry#1270)
Browse files Browse the repository at this point in the history
  • Loading branch information
esigo authored Mar 18, 2022
1 parent 0b1a74c commit 6bd2f96
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -50,3 +50,4 @@
/build

tags
.cache/clangd/*
3 changes: 3 additions & 0 deletions sdk/include/opentelemetry/sdk/metrics/state/metric_storage.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ class MetricStorage
opentelemetry::sdk::instrumentationlibrary::InstrumentationLibrary *instrumentation_library,
opentelemetry::sdk::resource::Resource *resource,
nostd::function_ref<bool(MetricData &)> callback) noexcept = 0;

virtual ~MetricStorage() = default;
};

class WritableMetricStorage
Expand All @@ -38,6 +40,7 @@ class WritableMetricStorage

virtual void RecordDouble(double value,
const opentelemetry::common::KeyValueIterable &attributes) noexcept = 0;
virtual ~WritableMetricStorage() = default;
};

class NoopMetricStorage : public MetricStorage
Expand Down

0 comments on commit 6bd2f96

Please sign in to comment.