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

Expand OtlpMetricExporter tests #2670

Merged
merged 16 commits into from
Nov 24, 2021

Conversation

alanwest
Copy link
Member

Fixes #.

Changes

Please provide a brief description of the changes here.

For significant contributions please make sure you have completed the following items:

  • CHANGELOG.md updated for non-trivial changes
  • Design discussion issue #
  • Changes in public API reviewed

@alanwest alanwest requested a review from a team November 23, 2021 23:34

var testCompleted = false;
var attributes = ToAttributes(keysValues).ToArray();
Copy link
Member

Choose a reason for hiding this comment

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

doesnt seem used.

Copy link
Member Author

Choose a reason for hiding this comment

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

Yep you're right. I removed it . No way to set attributes using ObservableGauge right?

Copy link
Member

Choose a reason for hiding this comment

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

Copy link
Member

Choose a reason for hiding this comment

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

MyMeter.CreateObservableCounter("thread.cpu_time", () => GetThreadCpuTime(process), "ms");

Copy link
Member

@reyang reyang left a comment

Choose a reason for hiding this comment

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

LGTM.

@codecov
Copy link

codecov bot commented Nov 24, 2021

Codecov Report

Merging #2670 (d83e19c) into main (794450b) will increase coverage by 0.67%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #2670      +/-   ##
==========================================
+ Coverage   82.25%   82.93%   +0.67%     
==========================================
  Files         249      249              
  Lines        8688     8688              
==========================================
+ Hits         7146     7205      +59     
+ Misses       1542     1483      -59     
Impacted Files Coverage Δ
...tryProtocol/Implementation/MetricItemExtensions.cs 90.64% <100.00%> (+40.28%) ⬆️
...ZPages/Implementation/ZPagesExporterEventSource.cs 56.25% <0.00%> (-6.25%) ⬇️
src/OpenTelemetry/Metrics/AggregatorStore.cs 86.98% <0.00%> (+0.68%) ⬆️
...Telemetry/Internal/SelfDiagnosticsEventListener.cs 97.65% <0.00%> (+0.78%) ⬆️
...metryProtocol/Implementation/ActivityExtensions.cs 85.84% <0.00%> (+0.91%) ⬆️

@cijothomas cijothomas merged commit cabb847 into open-telemetry:main Nov 24, 2021
@alanwest alanwest deleted the alanwest/otlp-metrics-tests branch November 24, 2021 23:25
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.

3 participants