Skip to content

Commit

Permalink
pick registerMetrics() fn from Registry
Browse files Browse the repository at this point in the history
  • Loading branch information
althoff0 committed Aug 30, 2024
1 parent 6fce3b0 commit e31c78e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,9 @@ export function cacheKey(
};
}

export function registerMetrics(registry: Registry): void {
export function registerMetrics(
registry: Pick<Registry, "registerMetric">
): void {
registry.registerMetric(queryCount);
registry.registerMetric(hitCount);
registry.registerMetric(queryDuration);
Expand Down

0 comments on commit e31c78e

Please sign in to comment.