aboutsummaryrefslogtreecommitdiff
path: root/src/zenserver/projectstore/httpprojectstore.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/zenserver/projectstore/httpprojectstore.cpp')
-rw-r--r--src/zenserver/projectstore/httpprojectstore.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/zenserver/projectstore/httpprojectstore.cpp b/src/zenserver/projectstore/httpprojectstore.cpp
index 4babcd224..c06ad8918 100644
--- a/src/zenserver/projectstore/httpprojectstore.cpp
+++ b/src/zenserver/projectstore/httpprojectstore.cpp
@@ -11,6 +11,7 @@
#include <zencore/filesystem.h>
#include <zencore/fmtutils.h>
#include <zencore/logging.h>
+#include <zencore/memory/llm.h>
#include <zencore/stream.h>
#include <zencore/trace.h>
#include <zenstore/zenstore.h>
@@ -18,6 +19,14 @@
namespace zen {
+const FLLMTag&
+GetProjectHttpTag()
+{
+ static FLLMTag CacheHttpTag("http", FLLMTag("project"));
+
+ return CacheHttpTag;
+}
+
void
CSVHeader(bool Details, bool AttachmentDetails, StringBuilderBase& CSVWriter)
{
@@ -372,6 +381,8 @@ HttpProjectService::HandleRequest(HttpServerRequest& Request)
{
m_ProjectStats.RequestCount++;
+ ZEN_MEMSCOPE(GetProjectHttpTag());
+
metrics::OperationTiming::Scope $(m_HttpRequests);
if (m_Router.HandleRequest(Request) == false)