Skip to content

Conversation

@legendecas
Copy link
Member

@legendecas legendecas commented Dec 2, 2020

Which problem is this PR solving?

Short description of the changes

  • BatchObservers do not have to be created with names
  • BatchObservers do not have instruments for their own

- BatchObservers do not have to be created with names
- BatchObservers do not have instruments for their own
@codecov
Copy link

codecov bot commented Dec 2, 2020

Codecov Report

Merging #1709 (7119c17) into master (74d6e45) will increase coverage by 0.02%.
The diff coverage is 95.23%.

@@            Coverage Diff             @@
##           master    #1709      +/-   ##
==========================================
+ Coverage   92.13%   92.15%   +0.02%     
==========================================
  Files         166      166              
  Lines        5591     5573      -18     
  Branches     1194     1194              
==========================================
- Hits         5151     5136      -15     
+ Misses        440      437       -3     
Impacted Files Coverage Δ
packages/opentelemetry-api/src/metrics/Metric.ts 100.00% <ø> (ø)
...s/opentelemetry-metrics/src/BatchObserverResult.ts 100.00% <ø> (ø)
...ackages/opentelemetry-api/src/metrics/NoopMeter.ts 82.35% <66.66%> (-0.51%) ⬇️
...ackages/opentelemetry-metrics/src/BatchObserver.ts 100.00% <100.00%> (ø)
packages/opentelemetry-metrics/src/Meter.ts 88.39% <100.00%> (+0.58%) ⬆️
packages/opentelemetry-metrics/src/Metric.ts 92.10% <0.00%> (-5.27%) ⬇️
...emetry-core/src/platform/node/RandomIdGenerator.ts 93.75% <0.00%> (+6.25%) ⬆️

Copy link
Member

@vmarchaud vmarchaud left a comment

Choose a reason for hiding this comment

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

lgtm, just need to fix the build

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.

Nice change, please fix the return type, have some concerns with regards to new BatchObserver which still uses the old interface for its options, shouldn't this be changed too ?

# Conflicts:
#	packages/opentelemetry-api/src/metrics/Meter.ts
#	packages/opentelemetry-metrics/src/BatchObserver.ts
#	packages/opentelemetry-metrics/src/Meter.ts
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

@obecny obecny merged commit 48b60c9 into open-telemetry:master Dec 14, 2020
@legendecas legendecas deleted the feat/batch-observer branch December 15, 2020 11:58
dyladan pushed a commit to dyladan/opentelemetry-js that referenced this pull request Sep 9, 2022
…lemetry#1709)

* refactor: batch observer to be independent from metric types

- BatchObservers do not have to be created with names
- BatchObservers do not have instruments for their own

* fixup: nodejs v8 compatibilities

* fixup: replace all batch observer metric occurrences with batch observer
dyladan pushed a commit to dyladan/opentelemetry-js that referenced this pull request Sep 9, 2022
…lemetry#1709)

* refactor: batch observer to be independent from metric types

- BatchObservers do not have to be created with names
- BatchObservers do not have instruments for their own

* fixup: nodejs v8 compatibilities

* fixup: replace all batch observer metric occurrences with batch observer
pichlermarc added a commit to dynatrace-oss-contrib/opentelemetry-js that referenced this pull request Dec 15, 2023
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.

4 participants