Is it possible to get the worker id in an expression? Or somehow make it available during pipeline processing?
You can get the Worker ID through the CRIBL_WORKER_ID
environment variable. In your JavaScript expression, you can obtain this value by using this syntax: C.env.CRIBL_WORKER_ID