ydb-nodejs-sdk icon indicating copy to clipboard operation
ydb-nodejs-sdk copied to clipboard

feat: Improve logging, so it can be used to collect information for SLO Workload

Open Zork33 opened this issue 2 years ago • 1 comments

Feature Request

Describe the Problem

Currently, logging is performed with simple strings, without context, and replacing the logger with your own is not possible everywhere.

Describe Preferred Solution

It would be more convenient if the logger passed in the driver constructor was used everywhere. And in logging method you could pass the data structure with key parameters - for example, query, execution time, result code, or error, etc. This format of methods supported by pino js and allows more efficient logs analizes, e.g. using mezmo.com

Zork33 avatar Jun 29 '23 09:06 Zork33

partially duplicates 316

Zork33 avatar Sep 18 '23 13:09 Zork33

done

Zork33 avatar May 13 '24 10:05 Zork33