Skip to content

Commit c5290ff

Browse files
committed
init host info
1 parent fa58332 commit c5290ff

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/datadog/telemetry/telemetry_impl.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,8 @@ Telemetry::Telemetry(FinalizedConfiguration config,
103103
tracing::get_process_name(), ""),
104104
http_client_(client),
105105
clock_(std::move(clock)),
106-
scheduler_(event_scheduler) {
106+
scheduler_(event_scheduler),
107+
host_info_(get_host_info()) {
107108
// Register all the metrics that we're tracking by adding them to the
108109
// metrics_snapshots_ container. This allows for simpler iteration logic
109110
// when using the values in `generate-metrics` messages.

0 commit comments

Comments
 (0)