(log: Sentry.Log)
| 104 | } |
| 105 | |
| 106 | function redactLog(log: Sentry.Log): Sentry.Log | null { |
| 107 | if (!log) { |
| 108 | return null; |
| 109 | } |
| 110 | |
| 111 | if (typeof log.message === 'string') { |
| 112 | log.message = redactPathLikeData(log.message); |
| 113 | } |
| 114 | |
| 115 | if (log.attributes !== undefined) { |
| 116 | log.attributes = redactUnknown(log.attributes) as Record<string, unknown>; |
| 117 | } |
| 118 | |
| 119 | return log; |
| 120 | } |
| 121 | |
| 122 | export function __redactEventForTests(event: Sentry.Event): Sentry.Event { |
| 123 | const clone = structuredClone(event); |
no test coverage detected