swaggerStatsEnabled

swaggerStatsEnabled

Available in Profound.js 7.23.0 and later.

Description

Set this option to Boolean true to enable API metrics collection via Swagger-Stats. When true, the server collects request and response statistics and exposes a dashboard with all metrics.

When false, the middleware does not run, which improves Profound API response times by skipping stat recording. The Test tab remains available.

Example

swaggerStatsEnabled: true

To include response bodies in the collected statistics, see saveResponseBody.

For information on how to modify this setting, see Configuration File.