Skip to content

v0.3.0

Latest
Compare
Choose a tag to compare
@alexgallardo alexgallardo released this 07 Sep 08:25
· 520 commits to main since this release
b40d9b6

Added

  • New optional prop for MetricsLogger called logger 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} />;