Redact Task outputs from the logs

Eric Allam

Eric Allam

CTO, Trigger.dev

Image for Redact Task outputs from the logs

You can now redact data from Task outputs, so it won't be visible in the dashboard. This is useful for sensitive data like Personally Identifiable Information (PII).

To use, add the redact option to runTask like so:


const result = await io.runTask(
"task-example-1",
async () => {
return {
id: "evt_3NYWgVI0XSgju2ur0PN22Hsu",
object: "event",
api_version: "2022-11-15",
created: 1690473903,
data: {
object: {
id: "ch_3NYWgVI0XSgju2ur0C2UzeKC",
},
},
};
},
{
redact: {
paths: ["data.object.id"],
},
}
);

View docs

Ready to start building?

Build and deploy your first task in 3 minutes.

Get started now