Skip to content

feat(metrics): adds NoopMeter implementation#278

Merged
bg451 merged 10 commits intoopen-telemetry:masterfrom
bg451:noop_meter
Sep 19, 2019
Merged

feat(metrics): adds NoopMeter implementation#278
bg451 merged 10 commits intoopen-telemetry:masterfrom
bg451:noop_meter

Conversation

@bg451
Copy link
Copy Markdown
Member

@bg451 bg451 commented Sep 17, 2019

Which problem is this PR solving?

Resolves #264


This change is Reviewable

return;
}

record(value: number, distContext: DistributedContext): void {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Duplicate function implementation is not allowed, I think you should change this to:

  record(
    value: number,
    distContext?: DistributedContext,
    spanContext?: SpanContext
  ): void {
    return;
  }

Copy link
Copy Markdown
Member

@OlivierAlbertini OlivierAlbertini Sep 17, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comment thread packages/opentelemetry-core/test/metrics/NoopMeter.test.ts Outdated
Comment thread packages/opentelemetry-core/test/metrics/NoopMeter.test.ts Outdated
Comment thread packages/opentelemetry-core/test/metrics/NoopMeter.test.ts
Comment thread packages/opentelemetry-core/src/metrics/NoopMeter.ts Outdated
Copy link
Copy Markdown
Contributor

@draffensperger draffensperger left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM pending Mayur's request to use real objects in the unit tests instead of force casting with as

Copy link
Copy Markdown
Member

@mayurkale22 mayurkale22 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

@mayurkale22
Copy link
Copy Markdown
Member

@bg451 Feel free to merge once build passed

@bg451 bg451 merged commit a9df567 into open-telemetry:master Sep 19, 2019
@bg451 bg451 deleted the noop_meter branch September 19, 2019 18:46
pichlermarc pushed a commit to dynatrace-oss-contrib/opentelemetry-js that referenced this pull request Dec 15, 2023
* fix(express): listener leak

* chore(express): more middleware tests
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add noop metrics implementation

4 participants