Changelog #21
·
Redact Task outputs from the logs
CTO, Trigger.dev
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:
_21const 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);