Troubleshooting Effect-Prometheus Integration
I'm trying to integrate Effect with Prometheus and it seems that I'm not doing something properly. I have a counter:
and I increment this in my code:
with a function I created:
When I run my app I can see
Note that I wrapped
I add the
and I increment this in my code:
with a function I created:
When I run my app I can see
"Incrementing counter" printed to the console, but the metric reader I provided is not called:Note that I wrapped
PrometheusExporter to check whether it is an infrastructure issue, and I can see that the only function that is called is setMetricProducer, and no metrics are sent to the PrometheusExporter.I add the
NodeSdkLive to my services, and create a runtime out of it. Is this supposed to work?