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: added sum observer metric #1304

Merged
merged 7 commits into from
Jul 14, 2020
Merged

Conversation

lykkin
Copy link
Contributor

@lykkin lykkin commented Jul 11, 2020

Which problem is this PR solving?

Short description of the changes

  • Introduces the sum observer metric type.

@linux-foundation-easycla
Copy link

linux-foundation-easycla bot commented Jul 11, 2020

CLA Check
The committers are authorized under a signed CLA.

@codecov
Copy link

codecov bot commented Jul 11, 2020

Codecov Report

Merging #1304 into master will increase coverage by 0.04%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master    #1304      +/-   ##
==========================================
+ Coverage   93.11%   93.16%   +0.04%     
==========================================
  Files         137      139       +2     
  Lines        3895     3921      +26     
  Branches      801      804       +3     
==========================================
+ Hits         3627     3653      +26     
  Misses        268      268              
Impacted Files Coverage Δ
packages/opentelemetry-api/src/metrics/Metric.ts 100.00% <ø> (ø)
...ackages/opentelemetry-api/src/metrics/NoopMeter.ts 67.92% <100.00%> (+0.61%) ⬆️
...es/opentelemetry-metrics/src/BaseObserverMetric.ts 100.00% <100.00%> (ø)
packages/opentelemetry-metrics/src/Meter.ts 95.91% <100.00%> (+0.46%) ⬆️
...entelemetry-metrics/src/MonotonicObserverResult.ts 100.00% <100.00%> (ø)
...ges/opentelemetry-metrics/src/SumObserverMetric.ts 100.00% <100.00%> (ø)

Copy link
Member

@obecny obecny left a comment

Choose a reason for hiding this comment

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

lgtm

packages/opentelemetry-metrics/README.md Outdated Show resolved Hide resolved
Co-authored-by: Daniel Dyla <dyladan@users.noreply.github.com>
@mayurkale22 mayurkale22 merged commit d4c6928 into open-telemetry:master Jul 14, 2020
dyladan added a commit to dyladan/opentelemetry-js that referenced this pull request Sep 9, 2022
* feat: added sum observer metric

* chore: lint

* fix: sum observer now throws away negative values

* Update packages/opentelemetry-metrics/src/SumObserverMetric.ts

Co-authored-by: Mayur Kale <mayurkale@google.com>

* chore: address review comments

* Update packages/opentelemetry-metrics/README.md

Co-authored-by: Daniel Dyla <dyladan@users.noreply.github.com>

Co-authored-by: Mayur Kale <mayurkale@google.com>
Co-authored-by: Daniel Dyla <dyladan@users.noreply.github.com>
dyladan added a commit to dyladan/opentelemetry-js that referenced this pull request Sep 9, 2022
* feat: added sum observer metric

* chore: lint

* fix: sum observer now throws away negative values

* Update packages/opentelemetry-metrics/src/SumObserverMetric.ts

Co-authored-by: Mayur Kale <mayurkale@google.com>

* chore: address review comments

* Update packages/opentelemetry-metrics/README.md

Co-authored-by: Daniel Dyla <dyladan@users.noreply.github.com>

Co-authored-by: Mayur Kale <mayurkale@google.com>
Co-authored-by: Daniel Dyla <dyladan@users.noreply.github.com>
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.

6 participants