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

Move autoconfigure exporter tests #5051

Merged

Conversation

jack-berg
Copy link
Member

Related to #4949.

Moves test code for jaeger, zipkin, and logging-otlp from :sdk-extensions:autoconfigure to the respective exporter modules. Note that the exporter modules already have integration style tests which don't need to be duplicated. Testing the providers only requires verifying that they properly interpret ConfigProperties and apply the options when building the exporter. This leads to reduced complexity, which will be especially apparent when moving the OTLP autoconfigure tests in a future PR (we might even see the build time improved since the OTLP autoconfigure tests are fairly slow).

@jack-berg jack-berg requested a review from a team as a code owner December 19, 2022 21:43
@codecov
Copy link

codecov bot commented Dec 19, 2022

Codecov Report

Base: 91.17% // Head: 91.17% // Increases project coverage by +0.00% 🎉

Coverage data is based on head (cdcc9fc) compared to base (5b497b1).
Patch coverage: 100.00% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff            @@
##               main    #5051   +/-   ##
=========================================
  Coverage     91.17%   91.17%           
  Complexity     4871     4871           
=========================================
  Files           553      553           
  Lines         14396    14396           
  Branches       1374     1374           
=========================================
+ Hits          13125    13126    +1     
  Misses          883      883           
+ Partials        388      387    -1     
Impacted Files Coverage Δ
.../autoconfigure/LogRecordExporterConfiguration.java 100.00% <100.00%> (ø)
...etry/exporter/zipkin/LocalInetAddressSupplier.java 72.72% <0.00%> (-4.55%) ⬇️
...nfigure/AutoConfiguredOpenTelemetrySdkBuilder.java 94.63% <0.00%> (-2.69%) ⬇️
...y/exporter/zipkin/OtelToZipkinSpanTransformer.java 91.95% <0.00%> (-1.15%) ⬇️
...telemetry/sdk/trace/export/BatchSpanProcessor.java 93.10% <0.00%> (+0.68%) ⬆️
...metry/sdk/metrics/export/PeriodicMetricReader.java 90.00% <0.00%> (+2.85%) ⬆️
...er/zipkin/internal/ZipkinSpanExporterProvider.java 100.00% <0.00%> (+10.00%) ⬆️
.../logging/internal/LoggingSpanExporterProvider.java 100.00% <0.00%> (+33.33%) ⬆️
...ogging/internal/LoggingMetricExporterProvider.java 100.00% <0.00%> (+33.33%) ⬆️
...ing/internal/LoggingLogRecordExporterProvider.java 100.00% <0.00%> (+33.33%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@jack-berg jack-berg merged commit 7f0889a into open-telemetry:main Dec 21, 2022
dmarkwat pushed a commit to dmarkwat/opentelemetry-java that referenced this pull request Dec 30, 2022
* Move SPI logging-otlp tests to :exporters:logging-otlp

* Move SPI zipkin tests to :exporters:zipkin

* Move SPI jaeger tests to :exporters:jaeger

* Spotless
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.

None yet

3 participants