Skip to content

Commit

Permalink
fix: link open-telemetry#474 isssue
Browse files Browse the repository at this point in the history
  • Loading branch information
mayurkale22 committed Nov 1, 2019
1 parent 0ec801a commit f3709ea
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions packages/opentelemetry-metrics/src/Meter.ts
Original file line number Diff line number Diff line change
@@ -143,10 +143,7 @@ export class Meter implements types.Meter {
metric: Metric<T>
): void {
if (this._metrics.has(name)) {
// @todo: decide how to handle already registered metric
// 1: Replace the old registered metric by the new
// 2. Throw error
// 3. skip duplicate metric (current approach)
// @todo (issue/474): decide how to handle already registered metric
this._logger.error(
`A metric with the name ${name} has already been registered.`
);

0 comments on commit f3709ea

Please sign in to comment.