Added
-
New optional prop for
MetricsLogger
calledlogger
to set a different logger.Usage:
const metricsLogger = useMemo( () => ({ metricName, value, tags }) => { console.debug('Custom log for prom-react!', metricName, value, tags); }, [], ); return <MetricsLogger logger={metricsLogger} />;