Skip to content

Conversation

@breedx-splk
Copy link
Contributor

Related to open-telemetry/opentelemetry-java-instrumentation#4925

This adds several default-capable get* methods to ConfigProperties. This can help to reduce the number of null checks. These defaults are then wired up in several places.

@breedx-splk breedx-splk requested a review from a user May 27, 2022 20:54
@breedx-splk breedx-splk requested a review from Oberon00 as a code owner May 27, 2022 20:54
@codecov
Copy link

codecov bot commented May 27, 2022

Codecov Report

Merging #4500 (b455b2e) into main (60cc5f4) will decrease coverage by 0.01%.
The diff coverage is 100.00%.

@@             Coverage Diff              @@
##               main    #4500      +/-   ##
============================================
- Coverage     90.06%   90.05%   -0.02%     
- Complexity     5040     5051      +11     
============================================
  Files           578      580       +2     
  Lines         15553    15558       +5     
  Branches       1498     1493       -5     
============================================
+ Hits          14008    14010       +2     
- Misses         1083     1087       +4     
+ Partials        462      461       -1     
Impacted Files Coverage Δ
...emetry/sdk/autoconfigure/spi/ConfigProperties.java 100.00% <100.00%> (ø)
...pentelemetry/sdk/autoconfigure/spi/ConfigUtil.java 100.00% <100.00%> (ø)
.../sdk/autoconfigure/MeterProviderConfiguration.java 77.27% <100.00%> (+2.27%) ⬆️
...sdk/autoconfigure/MetricExporterConfiguration.java 88.52% <100.00%> (ø)
...pentelemetry/sdk/autoconfigure/OtlpConfigUtil.java 91.07% <100.00%> (+0.98%) ⬆️
...try/sdk/autoconfigure/PropagatorConfiguration.java 100.00% <100.00%> (ø)
...sdk/autoconfigure/TracerProviderConfiguration.java 100.00% <100.00%> (ø)
...metry/exporter/internal/okhttp/OkHttpExporter.java 85.71% <0.00%> (-9.53%) ⬇️
...metry/sdk/metrics/export/PeriodicMetricReader.java 86.95% <0.00%> (-2.90%) ⬇️
...rter/otlp/http/metrics/OtlpHttpMetricExporter.java
... and 13 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 60cc5f4...b455b2e. Read the comment docs.

@breedx-splk breedx-splk mentioned this pull request Jun 1, 2022
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.

5 participants