Skip to content

Commit a92cdf3

Browse files
committed
Reordering things
1 parent 5ec1769 commit a92cdf3

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/datadog/tracer_telemetry.h

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -47,14 +47,6 @@ class TracerTelemetry {
4747
RuntimeID runtime_id_;
4848
std::string hostname_;
4949
uint64_t seq_id_ = 0;
50-
// Each metric has an associated MetricSnapshot that contains the data points,
51-
// represented as a timestamp and the value of that metric.
52-
using MetricSnapshot = std::vector<std::pair<time_t, uint64_t>>;
53-
// This uses a reference_wrapper so references to internal metric values can
54-
// be captured, and be iterated trivially when the values need to be
55-
// snapshotted and published in telemetry messages.
56-
std::vector<std::pair<std::reference_wrapper<Metric>, MetricSnapshot>>
57-
metrics_snapshots_;
5850
// This structure contains all the metrics that are exposed by tracer
5951
// telemetry.
6052
struct {
@@ -94,6 +86,14 @@ class TracerTelemetry {
9486

9587
} trace_api;
9688
} metrics_;
89+
// Each metric has an associated MetricSnapshot that contains the data points,
90+
// represented as a timestamp and the value of that metric.
91+
using MetricSnapshot = std::vector<std::pair<time_t, uint64_t>>;
92+
// This uses a reference_wrapper so references to internal metric values can
93+
// be captured, and be iterated trivially when the values need to be
94+
// snapshotted and published in telemetry messages.
95+
std::vector<std::pair<std::reference_wrapper<Metric>, MetricSnapshot>>
96+
metrics_snapshots_;
9797

9898
nlohmann::json generate_telemetry_body(std::string request_type);
9999

0 commit comments

Comments
 (0)