Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(metrics): adds NoopMeter implementation #278

Merged
merged 10 commits into from
Sep 19, 2019

Conversation

bg451
Copy link
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
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
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.

Copy link
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
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
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