Skip to content

Commit b91869f

Browse files
committed
Remove comforting developer noise
1 parent f41f4d4 commit b91869f

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

src/datadog/tracer_telemetry.cpp

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
#include "tracer_telemetry.h"
22

3-
#include <iostream>
4-
53
#include "json.hpp"
64
#include "logger.h"
75
#include "platform_util.h"
@@ -48,9 +46,6 @@ std::string TracerTelemetry::app_started() {
4846
clock_().wall.time_since_epoch())
4947
.count();
5048
std::string hostname = get_hostname().value_or("hostname-unavailable");
51-
config_.logger->log_error([&](auto& stream) {
52-
stream << "app-started: hostname=" << hostname << " seq_id=" << seq_id;
53-
});
5449

5550
seq_id++;
5651
auto payload =
@@ -99,13 +94,6 @@ void TracerTelemetry::capture_metrics() {
9994
}
10095
m.second.emplace_back(timepoint, value);
10196
}
102-
103-
for (auto& m : metrics_snapshots_) {
104-
std::cout << "metrics: " << m.first.get().name() << std::endl;
105-
for (auto& v : m.second) {
106-
std::cout << v.first << " " << v.second << std::endl;
107-
}
108-
}
10997
}
11098

11199
std::string TracerTelemetry::heartbeat_and_telemetry() {
@@ -172,8 +160,6 @@ std::string TracerTelemetry::heartbeat_and_telemetry() {
172160
})},
173161
})
174162
.dump();
175-
config_.logger->log_error(
176-
[&](auto& stream) { stream << "telemetry payload: " << payload; });
177163
return payload;
178164
}
179165

0 commit comments

Comments
 (0)