Providing a custom logging service to each map execution from within an effect
I understand how to provide services at the top level of an execution, but I'm not sure how to provide services from within an execution.
For example, a logging service that appends an ID to each log for every mapped operation of an array (to that function, and any calls that it makes).
Should I restructure the main function so that each event runs as its own effect with its own services?
In short, each concurrent execution needs its own instance of LoggerService, with its own ID.
For example, a logging service that appends an ID to each log for every mapped operation of an array (to that function, and any calls that it makes).
Should I restructure the main function so that each event runs as its own effect with its own services?
In short, each concurrent execution needs its own instance of LoggerService, with its own ID.
