Skip to main content

ProfilingFeature

Assembly: ServiceStack.dll​
View Source​
Declaration
public class ProfilingFeature : IPlugin, IHasStringId, IHasId<string>, IPreInitPlugin

Properties​

Id​

View Source​
Declaration
public string Id { get; }

AccessRole​

Limit API access to users in role

View Source​
Declaration
public string AccessRole { get; set; }

Profile​

Which features to Profile, default all

View Source​
Declaration
public ProfileSource Profile { get; set; }

Capacity​

Size of circular buffer of profiled events

View Source​
Declaration
public int Capacity { get; set; }

ExcludeRequestDtoTypes​

Don't log requests of these types. By default Profiling/Metadata requests are excluded

View Source​
Declaration
public List<Type> ExcludeRequestDtoTypes { get; set; }

ExcludeRequestPathInfoStartingWith​

Don't log requests from these path infos prefixes

View Source​
Declaration
public List<string> ExcludeRequestPathInfoStartingWith { get; set; }

ExcludeRequestsFilter​

Turn On/Off Tracking of Responses per-request

View Source​
Declaration
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​
Declaration
public List<Type> HideRequestBodyForRequestDtoTypes { get; set; }

ExcludeResponseTypes​

Don't log Response DTO Types

View Source​
Declaration
public List<Type> ExcludeResponseTypes { get; set; }

ResponseTrackingFilter​

Turn On/Off Tracking of Responses per-request

View Source​
Declaration
public Func<IRequest, bool> ResponseTrackingFilter { get; set; }

IncludeStackTrace​

Whether to include CallStack StackTrace

View Source​
Declaration
public bool? IncludeStackTrace { get; set; }

TagResolver​

Attach custom data to request profiling summary fields

View Source​
Declaration
public Func<IRequest, string> TagResolver { get; set; }

TagLabel​

Label to show for custom tag

View Source​
Declaration
public string TagLabel { get; set; }

SummaryFields​

The properties displayed in Profiling UI results grid

View Source​
Declaration
public List<string> SummaryFields { get; set; }

DefaultLimit​

Default take, if none is specified

View Source​
Declaration
public int DefaultLimit { get; set; }

DiagnosticEntryFilter​

Customize DiagnosticEntry that gets captured

View Source​
Declaration
public Action<DiagnosticEntry, DiagnosticEvent> DiagnosticEntryFilter { get; set; }

MaxBodyLength​

Maximum char/byte length of string response body

View Source​
Declaration
public int MaxBodyLength { get; set; }

Observer​

View Source​
Declaration
protected ProfilerDiagnosticObserver Observer { get; set; }

Fields​

DefaultCapacity​

View Source​
Declaration
public const int DefaultCapacity = 10000

startTick​

View Source​
Declaration
protected long startTick

startDateTime​

View Source​
Declaration
protected DateTime startDateTime

Methods​

Register(IAppHost)​

View Source​
Declaration
public void Register(IAppHost appHost)
Parameters​
TypeName
ServiceStack.IAppHostappHost

BeforePluginsLoaded(IAppHost)​

View Source​
Declaration
public void BeforePluginsLoaded(IAppHost appHost)
Parameters​
TypeName
ServiceStack.IAppHostappHost

Implements​