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

Refactor testing of batching config #5106

Merged
merged 1 commit into from
Mar 26, 2024

Conversation

MrAlias
Copy link
Contributor

@MrAlias MrAlias commented Mar 25, 2024

The BatchingProcessor is not expected to ultimately contain configuration fields for queue size or export parameters (see #5093). This will break TestNewBatchingProcessorConfiguration which tests the configuration by evaluating the BatchingProcessor directly.

Instead, test the batchingConfig and rename the test to TestNewBatchingConfig to match what is being tested.

The BatchingProcessor is not expected to ultimately contain
configuration fields for queue size or export parameters (see open-telemetry#5093).
This will break TestNewBatchingProcessorConfiguration which tests the
configuration by evaluating the BatchingProcessor directly.

Instead, test the batchingConfig and rename the test to
TestNewBatchingConfig to match what is being tested.
@MrAlias MrAlias added area:logs Part of OpenTelemetry logs Skip Changelog PRs that do not require a CHANGELOG.md entry labels Mar 25, 2024
Copy link

codecov bot commented Mar 25, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 83.8%. Comparing base (540663b) to head (e31249f).

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##            main   #5106     +/-   ##
=======================================
- Coverage   83.8%   83.8%   -0.1%     
=======================================
  Files        248     248             
  Lines      16201   16201             
=======================================
- Hits       13589   13581      -8     
- Misses      2324    2332      +8     
  Partials     288     288             

see 2 files with indirect coverage changes

@pellared pellared merged commit 6033938 into open-telemetry:main Mar 26, 2024
31 checks passed
@MrAlias MrAlias deleted the test-batching-conf branch March 26, 2024 14:13
@MrAlias MrAlias mentioned this pull request Apr 3, 2024
8 tasks
@MrAlias MrAlias added this to the v1.25.0 milestone Apr 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:logs Part of OpenTelemetry logs Skip Changelog PRs that do not require a CHANGELOG.md entry
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

5 participants