Skip to main content

Installation

npm install @apitally/serverless

Supported frameworks

Parameters

The following parameters apply for all integrations.
ParameterDescriptionTypeDefault
enabledWhether to enable the Apitally integration.booleantrue
logRequestHeadersWhether to include request headers in the logs. Default masking for common sensitive headers (e.g. Authorization) applies.booleanfalse
logRequestBodyWhether to include the request body in the logs. Only JSON and text are supported, up to 10 KB.booleanfalse
logResponseHeadersWhether to include response headers in the logs.booleantrue
logResponseBodyWhether to include the response body in the logs. Only JSON and text are supported, up to 10 KB.booleanfalse
maskHeadersArray of regular expressions for matching headers to mask. These are in addition to the default masking patterns.RegExp[][]
maskBodyFieldsArray of regular expressions for matching request/response body fields to mask. These are in addition to the default masking patterns.RegExp[][]
excludePathsArray of regular expressions for matching paths to exclude from logging.RegExp[][]