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

Remove supported temporality #3939

Merged
merged 2 commits into from
Nov 30, 2021

Conversation

jack-berg
Copy link
Member

Per recent change to the spec.

@codecov
Copy link

codecov bot commented Nov 29, 2021

Codecov Report

Merging #3939 (3f559a3) into main (42e72fe) will increase coverage by 0.07%.
The diff coverage is 100.00%.

Impacted file tree graph

@@             Coverage Diff              @@
##               main    #3939      +/-   ##
============================================
+ Coverage     89.71%   89.79%   +0.07%     
+ Complexity     4170     4166       -4     
============================================
  Files           498      498              
  Lines         12661    12646      -15     
  Branches       1223     1221       -2     
============================================
- Hits          11359    11355       -4     
+ Misses          908      900       -8     
+ Partials        394      391       -3     
Impacted Files Coverage Δ
...metry/exporter/prometheus/PrometheusCollector.java 52.94% <ø> (+2.94%) ⬆️
...etry/exporter/prometheus/PrometheusHttpServer.java 75.00% <ø> (-0.24%) ⬇️
...entelemetry/sdk/metrics/export/MetricExporter.java 0.00% <ø> (-50.00%) ⬇️
...metry/sdk/metrics/export/PeriodicMetricReader.java 84.74% <ø> (-0.26%) ⬇️
...ry/sdk/metrics/internal/export/CollectionInfo.java 100.00% <ø> (ø)
...ry/sdk/metrics/testing/InMemoryMetricExporter.java 93.75% <ø> (+5.51%) ⬆️
...etry/sdk/metrics/testing/InMemoryMetricReader.java 82.35% <ø> (-0.99%) ⬇️
...rics/internal/state/AsynchronousMetricStorage.java 90.66% <100.00%> (-0.13%) ⬇️
...nternal/state/DefaultSynchronousMetricStorage.java 82.50% <100.00%> (-0.43%) ⬇️
...y/sdk/metrics/internal/state/TemporalityUtils.java 100.00% <100.00%> (ø)
... and 5 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 42e72fe...3f559a3. Read the comment docs.

EnumSet<AggregationTemporality> supported, @Nullable AggregationTemporality preferred) {
// Next assume preferred should always win.
static AggregationTemporality resolveTemporality(@Nullable AggregationTemporality preferred) {
// If preferred temporality is provided respect it
if (preferred != null) {
return preferred;
Copy link
Contributor

Choose a reason for hiding this comment

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

we could just do a simple one-liner for this whole method now, right?
return preferred == null ? AggregationTemporality.CUMULATIVE : preferred;

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes. Will update.

@anuraaga anuraaga merged commit ec45e94 into open-telemetry:main Nov 30, 2021
This was referenced Dec 19, 2021
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