Skip to content

Commit 48bc324

Browse files
committed
return json
1 parent c18c454 commit 48bc324

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

test/system-tests/main.cpp

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,14 @@ int main(int argc, char* argv[]) {
9292

9393
// Health check endpoint for container health checks
9494
svr.Get("/healthcheck", [](const httplib::Request&, httplib::Response& res) {
95-
res.set_content("OK", "text/plain");
95+
nlohmann::json health_response = {
96+
{"status", "ok"},
97+
{"library", {
98+
{"name", "cpp"},
99+
{"version", datadog::tracing::tracer_version}
100+
}}
101+
};
102+
res.set_content(health_response.dump(), "application/json");
96103
res.status = 200;
97104
});
98105

0 commit comments

Comments
 (0)