We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c18c454 commit 48bc324Copy full SHA for 48bc324
test/system-tests/main.cpp
@@ -92,7 +92,14 @@ int main(int argc, char* argv[]) {
92
93
// Health check endpoint for container health checks
94
svr.Get("/healthcheck", [](const httplib::Request&, httplib::Response& res) {
95
- res.set_content("OK", "text/plain");
+ 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");
103
res.status = 200;
104
});
105
0 commit comments