start writing http lua stuff, also heartbeat debug printing

This commit is contained in:
Lion Kortlepel
2021-11-08 22:08:07 +01:00
parent 3e7aa763ed
commit f8af134dc9
4 changed files with 43 additions and 10 deletions

View File

@@ -30,13 +30,15 @@ void THeartbeatThread::operator()() {
Last = Body;
LastNormalUpdateTime = Now;
if (!Application::Settings.CustomIP.empty())
if (!Application::Settings.CustomIP.empty()) {
Body += "&ip=" + Application::Settings.CustomIP;
}
Body += "&pps=" + Application::PPS();
auto SentryReportError = [&](const std::string& transaction, int status) {
beammp_trace("heartbeat body: '" + Body + "'");
auto SentryReportError = [&](const std::string& transaction, int status) {
auto Lock = Sentry.CreateExclusiveContext();
Sentry.SetContext("heartbeat",
{ { "response-body", T },