@@ -164,20 +164,20 @@ Expected<void> DatadogAgent::send(
164164 return std::nullopt ;
165165}
166166
167- void DatadogAgent::config_json (nlohmann::json& destination ) const {
167+ nlohmann::json DatadogAgent::config_json () const {
168168 const auto & url = traces_endpoint_; // brevity
169169 const auto flush_interval_milliseconds =
170170 std::chrono::duration_cast<std::chrono::milliseconds>(flush_interval_)
171171 .count ();
172172
173173 // clang-format off
174- destination = nlohmann::json::object ({
175- {" type" , " DatadogAgent" },
174+ return nlohmann::json::object ({
175+ {" type" , " datadog::tracing:: DatadogAgent" },
176176 {" config" , nlohmann::json::object ({
177177 {" url" , (url.scheme + " ://" + url.authority + url.path )},
178178 {" flush_interval_milliseconds" , flush_interval_milliseconds},
179- {" http_client_typeid " , typeid (* http_client_). name ()},
180- {" event_scheduler_typeid " , typeid (* event_scheduler_). name ()},
179+ {" http_client " , http_client_-> config_json ()},
180+ {" event_scheduler " , event_scheduler_-> config_json ()},
181181 })},
182182 });
183183 // clang-format on
0 commit comments