Temporary stop CAPS service points from being added to stats as this can be a huge number.
A stop gap solution - a better one may be to improve stats display on simulator-side. Caps information is still accessible via the "show caps stats by user" and "show caps stats by cap" commands0.8.0.3
parent
2f7d950ead
commit
3410b36d76
|
@ -63,18 +63,23 @@ namespace OpenSim.Framework.Servers.HttpServer
|
||||||
m_httpMethod = httpMethod;
|
m_httpMethod = httpMethod;
|
||||||
m_path = path;
|
m_path = path;
|
||||||
|
|
||||||
StatsManager.RegisterStat(
|
// FIXME: A very temporary measure to stop the simulator stats being overwhelmed with user CAPS info.
|
||||||
new Stat(
|
// Needs to be fixed properly in stats display
|
||||||
"requests",
|
if (!path.StartsWith("/CAPS/"))
|
||||||
"requests",
|
{
|
||||||
"Number of requests received by this service endpoint",
|
StatsManager.RegisterStat(
|
||||||
"requests",
|
new Stat(
|
||||||
"service",
|
"requests",
|
||||||
string.Format("{0}:{1}", httpMethod, path),
|
"requests",
|
||||||
StatType.Pull,
|
"Number of requests received by this service endpoint",
|
||||||
MeasuresOfInterest.AverageChangeOverTime,
|
"requests",
|
||||||
s => s.Value = RequestsReceived,
|
"service",
|
||||||
StatVerbosity.Debug));
|
string.Format("{0}:{1}", httpMethod, path),
|
||||||
|
StatType.Pull,
|
||||||
|
MeasuresOfInterest.AverageChangeOverTime,
|
||||||
|
s => s.Value = RequestsReceived,
|
||||||
|
StatVerbosity.Debug));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public virtual string Path
|
public virtual string Path
|
||||||
|
|
Loading…
Reference in New Issue