aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--OpenSim/Framework/Servers/HttpServer/BaseRequestHandler.cs29
1 files changed, 17 insertions, 12 deletions
diff --git a/OpenSim/Framework/Servers/HttpServer/BaseRequestHandler.cs b/OpenSim/Framework/Servers/HttpServer/BaseRequestHandler.cs
index 72ffb0e..d4a1ec3 100644
--- a/OpenSim/Framework/Servers/HttpServer/BaseRequestHandler.cs
+++ b/OpenSim/Framework/Servers/HttpServer/BaseRequestHandler.cs
@@ -63,18 +63,23 @@ namespace OpenSim.Framework.Servers.HttpServer
63 m_httpMethod = httpMethod; 63 m_httpMethod = httpMethod;
64 m_path = path; 64 m_path = path;
65 65
66 StatsManager.RegisterStat( 66 // FIXME: A very temporary measure to stop the simulator stats being overwhelmed with user CAPS info.
67 new Stat( 67 // Needs to be fixed properly in stats display
68 "requests", 68 if (!path.StartsWith("/CAPS/"))
69 "requests", 69 {
70 "Number of requests received by this service endpoint", 70 StatsManager.RegisterStat(
71 "requests", 71 new Stat(
72 "service", 72 "requests",
73 string.Format("{0}:{1}", httpMethod, path), 73 "requests",
74 StatType.Pull, 74 "Number of requests received by this service endpoint",
75 MeasuresOfInterest.AverageChangeOverTime, 75 "requests",
76 s => s.Value = RequestsReceived, 76 "service",
77 StatVerbosity.Debug)); 77 string.Format("{0}:{1}", httpMethod, path),
78 StatType.Pull,
79 MeasuresOfInterest.AverageChangeOverTime,
80 s => s.Value = RequestsReceived,
81 StatVerbosity.Debug));
82 }
78 } 83 }
79 84
80 public virtual string Path 85 public virtual string Path