Injecting dependencies in workflowImpl

Hello,

I have a usecase where I need to report metrics from workflow to dd. I wanted to check if there is a way to inject dependencies in workflowImpl so that these metrics can be reported to dd ?

Injecting dependencies to workflows is not recommended and supported as it is very error prone due to determinism requirements.

For metrics we recommend using the included integration. See Workflow.getMetricsScope.