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

Validate maxExportBatchSize in BatchSpanProcessorBase #3232

Merged

Conversation

samimusallam
Copy link
Member

@samimusallam samimusallam commented Sep 5, 2022

Which problem is this PR solving?

Some exporters' README mention that the maxExportBatchSize parameter in the BatchSpanProcessor must be smaller or equal to maxQueueSize, but no validation is performed in the code.

Fixes #3155

Type of change

  • [X ] Bug fix (non-breaking change which fixes an issue)

@samimusallam samimusallam requested a review from a team September 5, 2022 17:08
@dyladan
Copy link
Member

dyladan commented Sep 6, 2022

Can you please add a test for this behavior?

@codecov
Copy link

codecov bot commented Sep 11, 2022

Codecov Report

Merging #3232 (e6a0cdf) into main (7870438) will increase coverage by 0.01%.
The diff coverage is 100.00%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3232      +/-   ##
==========================================
+ Coverage   93.29%   93.31%   +0.01%     
==========================================
  Files         203      203              
  Lines        6606     6609       +3     
  Branches     1389     1390       +1     
==========================================
+ Hits         6163     6167       +4     
+ Misses        443      442       -1     
Impacted Files Coverage Δ
...dk-trace-base/src/export/BatchSpanProcessorBase.ts 94.56% <100.00%> (+0.18%) ⬆️
...-trace-base/src/platform/node/RandomIdGenerator.ts 93.75% <0.00%> (+6.25%) ⬆️

@samimusallam
Copy link
Member Author

@dyladan Can you please review the last changes if possible?

@vmarchaud vmarchaud merged commit 0074ee2 into open-telemetry:main Sep 18, 2022
@samimusallam samimusallam deleted the fix/batchProcessor-validation branch September 18, 2022 09:21
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.

Validate maxExportBatchSize in BatchSpanProcessor
4 participants