Matteo Collina 06d55b1b74
feat: set worker thread name for transport identification (#2380)
* feat: set worker thread name for transport identification

Pass the transport name to the worker thread via workerOpts.name so that
the thread can be identified correctly. Single transports use their target
name, while multi-target and pipeline transports use 'pino.transport'.

* test: skip worker thread name tests on Node.js < 22.20

threadName was added in Node.js v22.20.0 and v24.6.0
2026-01-22 06:33:29 -08:00
..
2025-10-03 06:12:54 -04:00
2021-10-25 14:35:44 +02:00
2026-01-13 21:59:00 +01:00
2025-10-03 06:12:54 -04:00