Open
Description
Steps to reproduce
Prometheus makes a few too many assumptions about my metrics system factory. I use the multiplex factory that comes from Apple and bootstrap prometheus with it, but then this code tries to cast the multiplexed factory and fails:
guard let prom = self.factory as? PrometheusWrappedMetricsFactory else {
throw PrometheusError.prometheusFactoryNotBootstrapped(bootstrappedWith: "\(self.factory)")
}
return prom.client
Expected behavior
No error is thrown...cause it was in fact bootstrapped
Actual behavior
It throws the error
Environment
- OS version:
- Swift version:
- Serverside Swift Framework:
- Framework version:
Metadata
Metadata
Assignees
Labels
No labels