Deployments
Azure Blob Plugin
Enterprise Feature
Custom logging is available as an add-on as part of an enterprise plan. If you would like to purchase this feature, please contact us at sales@zuplo.com or reach out to your account manager.
Most enterprise features can be used in a trial mode for a limited time. Feel free to use enterprise features for development and testing purposes.
Setup#
This plugin pushes request/response logs to Azure Blob Storage.
You can define the fields created in the CSV by creating a custom type in
TypeScript and a function to extract the field data from the Response
,
ZuploRequest
, and ZuploContext
.
The plugin is configured in the Runtime Extensions
file zuplo.runtime.ts
:
The plugin writes Block Blobs using SAS signatures. Ensure that your SAS URL has the correct structure and contains the container name, and the SAS has the appropriate permissions.
Writing the response or request#
Writing the full request or response body can be expensive but is supported. Alternatively, you may want to parse the body for a particular property to log, in this case it is important that the request or response is cloned so that the stream is available for the response.
Also, note that the generateLogEntry
function will be called after the
request stream has been read. So if you need to read the request, you will need
to store the cloned response before it reaches the request handler and store it,
ideally using ContextData.