Skip to main content

Data Redaction

Sidekick Node agent lets you define custom data redaction functions. Below you can see the related confing and an example:

ConfigRequirementdefault
captureFrameDataReductionCallbackOptionalfalse
logMessageDataReductionCallbackOptionalfalse
SidekickDebugger.start({
apiKey: 'your-api-key',
applicationName: 'testApp',
captureFrameDataReductionCallback: (captureFrames) => {
//edit this function based on your needs
return captureFrames;
},
logMessageDataReductionCallback: (
logMessageDataReductionInfo,
locals) => {
//edit this function based on your needs
return logMessageDataReductionInfo.logMessage + '-' + 'custom logs'
}
})