Skip to content

Commit

Permalink
Implement in-memory metric exporter
Browse files Browse the repository at this point in the history
  • Loading branch information
punya committed Sep 8, 2024
1 parent 10f697d commit 3d51b3d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
#include "opentelemetry/exporters/memory/in_memory_data.h"
#include "opentelemetry/sdk/metrics/export/metric_producer.h"

#include <vector>
#include <map>
#include <tuple>

OPENTELEMETRY_BEGIN_NAMESPACE
namespace exporter
Expand All @@ -19,14 +20,14 @@ namespace memory
class InMemoryMetricData
{
public:
InMemoryMetricData(){};
InMemoryMetricData() = default;
virtual ~InMemoryMetricData() = default;

InMemoryMetricData(const InMemoryMetricData &) = delete;
InMemoryMetricData(InMemoryMetricData &&) = delete;
InMemoryMetricData &operator=(const InMemoryMetricData &) = delete;
InMemoryMetricData &operator=(InMemoryMetricData &&) = delete;

virtual ~InMemoryMetricData() = default;

virtual void Add(std::unique_ptr<sdk::metrics::ResourceMetrics> resource_metrics) = 0;
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,8 @@

#pragma once

#include <atomic>
#include <vector>
#include <memory>

#include "opentelemetry/exporters/memory/in_memory_data.h"
#include "opentelemetry/sdk/metrics/export/metric_producer.h"
#include "opentelemetry/sdk/metrics/instruments.h"
#include "opentelemetry/sdk/metrics/push_metric_exporter.h"
#include "opentelemetry/version.h"
Expand Down

0 comments on commit 3d51b3d

Please sign in to comment.