Skip to content

Commit

Permalink
Remove unnecessary prefix from repo link
Browse files Browse the repository at this point in the history
  • Loading branch information
prathamesh0 committed Jun 6, 2024
1 parent 189df4a commit 6ae73db
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/util/src/metrics.ts
Original file line number Diff line number Diff line change
Expand Up @@ -291,5 +291,9 @@ const registerWatcherInfoMetrics = async (): Promise<void> => {
labelNames: ['repo', 'version', 'commitHash']
});

watcherInfoMetric.set({ repo: pkgJson.repository?.url, version: pkgJson.version, commitHash: pkgJson.commitHash }, 1);
watcherInfoMetric.set({
repo: pkgJson.repository && pkgJson.repository.url.replace(/^git\+/, ''),
version: pkgJson.version,
commitHash: pkgJson.commitHash
}, 1);
};

0 comments on commit 6ae73db

Please sign in to comment.