increase log metadata size to 10000 characters

This commit is contained in:
Hongbo Wu 2024-04-26 15:18:34 +08:00
parent 342db3928c
commit 89d6564d74

View file

@ -132,8 +132,8 @@ const truncateObjectDeep = (object: any, length: number): any => {
class GcpLoggingTransport extends LoggingWinston {
log(info: any, callback: (err: Error | null, apiResponse?: any) => void) {
// reduce the size of the log entry by truncating any string values to 500 characters
info = truncateObjectDeep(info, 500) as never
// reduce the size of the log entry by truncating any string values to 10000 characters
info = truncateObjectDeep(info, 10000) as never
super.log(info, callback)
}
}