Best way to emit Prometheus Gauge from a Workflow (multi-tenant context)

Hi all,

What’s the recommended way to emit a Prometheus Gauge from within a Temporal Workflow?

I’m building a multi-tenant system, and I’d like to emit metrics like a Gauge with labels such as tenantId, applicationId, and eventType during workflow execution.

Since workflows need to be deterministic, I assume the metric emission needs to be done via an Activity or SideEffect— is that the best practice?

Thanks!