ProfilingFeature
Assembly: ServiceStack.dll
View Source
public class ProfilingFeature : IPlugin, IHasStringId, IHasId<string>, IPreInitPlugin
Properties
Id
View Source
public string Id { get; }
AccessRole
Limit API access to users in role
View Source
public string AccessRole { get; set; }
Profile
Which features to Profile, default all
View Source
public ProfileSource Profile { get; set; }
Capacity
Size of circular buffer of profiled events
View Source
public int Capacity { get; set; }
ExcludeRequestDtoTypes
Don't log requests of these types. By default Profiling/Metadata requests are excluded
View Source
public List<Type> ExcludeRequestDtoTypes { get; set; }
ExcludeRequestPathInfoStartingWith
Don't log requests from these path infos prefixes
View Source
public List<string> ExcludeRequestPathInfoStartingWith { get; set; }
ExcludeRequestsFilter
Turn On/Off Tracking of Responses per-request
View Source
public Func<IRequest, bool> ExcludeRequestsFilter { get; set; }
HideRequestBodyForRequestDtoTypes
Don't log request body's for services with sensitive information. By default Auth and Registration requests are hidden.
View Source
public List<Type> HideRequestBodyForRequestDtoTypes { get; set; }
ExcludeResponseTypes
Don't log Response DTO Types
View Source
public List<Type> ExcludeResponseTypes { get; set; }
ResponseTrackingFilter
Turn On/Off Tracking of Responses per-request
View Source
public Func<IRequest, bool> ResponseTrackingFilter { get; set; }
IncludeStackTrace
Whether to include CallStack StackTrace
View Source
public bool? IncludeStackTrace { get; set; }
TagResolver
Attach custom data to request profiling summary fields
View Source
public Func<IRequest, string> TagResolver { get; set; }
TagLabel
Label to show for custom tag
View Source
public string TagLabel { get; set; }
SummaryFields
The properties displayed in Profiling UI results grid
View Source
public List<string> SummaryFields { get; set; }
DefaultLimit
Default take, if none is specified
View Source
public int DefaultLimit { get; set; }
DiagnosticEntryFilter
Customize DiagnosticEntry that gets captured
View Source
public Action<DiagnosticEntry, DiagnosticEvent> DiagnosticEntryFilter { get; set; }
MaxBodyLength
Maximum char/byte length of string response body
View Source
public int MaxBodyLength { get; set; }
Observer
View Source
protected ProfilerDiagnosticObserver Observer { get; set; }
Fields
DefaultCapacity
View Source
public const int DefaultCapacity = 10000
startTick
View Source
protected long startTick
startDateTime
View Source
protected DateTime startDateTime
Methods
Register(IAppHost)
View Source
public void Register(IAppHost appHost)
Parameters
Type | Name |
---|---|
ServiceStack.IAppHost | appHost |
BeforePluginsLoaded(IAppHost)
View Source
public void BeforePluginsLoaded(IAppHost appHost)
Parameters
Type | Name |
---|---|
ServiceStack.IAppHost | appHost |