Changelog #21

·

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:


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

View docs

Ready to start building?

Build and deploy your first task in 3 minutes.

Get started now
,