All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
-
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} />;
peerDependencies
forreact
andreact
DOM to allow versions up from16.9
.
- Update to React 18.0.0
- Update some inner dependencies.
- Initial version of the library. It includes both
MetricsProvider
anduseMetrics
. See README for more details.