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 batch processor export method #11309

Merged
merged 2 commits into from
Sep 30, 2024

Conversation

jmacd
Copy link
Contributor

@jmacd jmacd commented Sep 30, 2024

Description

Split the internal batcher.export() interface into three methods. This is a refactoring that was applied in https://github.com/open-telemetry/otel-arrow/tree/main/collector/processor/concurrentbatchprocessor and is being back-ported as part of #11308. The reason this refactoring is needed is that the parent context of the export() request will be manipulated in common code (vs signal-specific code) for tracing support.

Link to tracking issue

Part of #11308

Testing

Existing tests cover this.

@jmacd jmacd added the Skip Changelog PRs that do not require a CHANGELOG.md entry label Sep 30, 2024
@jmacd jmacd requested a review from a team as a code owner September 30, 2024 20:22
@jmacd jmacd requested a review from songy23 September 30, 2024 20:22
Copy link

codecov bot commented Sep 30, 2024

Codecov Report

Attention: Patch coverage is 96.42857% with 1 line in your changes missing coverage. Please review.

Project coverage is 91.50%. Comparing base (2181bdc) to head (3f2e6a8).
Report is 2 commits behind head on main.

Files with missing lines Patch % Lines
processor/batchprocessor/batch_processor.go 96.42% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main   #11309      +/-   ##
==========================================
- Coverage   91.50%   91.50%   -0.01%     
==========================================
  Files         424      424              
  Lines       20194    20250      +56     
==========================================
+ Hits        18479    18529      +50     
- Misses       1332     1345      +13     
+ Partials      383      376       -7     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

processor/batchprocessor/batch_processor.go Outdated Show resolved Hide resolved
@bogdandrutu bogdandrutu merged commit c3bd972 into open-telemetry:main Sep 30, 2024
48 checks passed
@github-actions github-actions bot added this to the next release milestone Sep 30, 2024
jackgopack4 pushed a commit to jackgopack4/opentelemetry-collector that referenced this pull request Oct 8, 2024
#### Description

Split the internal `batcher.export()` interface into three methods. This
is a refactoring that was applied in
https://github.com/open-telemetry/otel-arrow/tree/main/collector/processor/concurrentbatchprocessor
and is being back-ported as part of open-telemetry#11308. The reason this refactoring
is needed is that the parent context of the export() request will be
manipulated in common code (vs signal-specific code) for tracing
support.

#### Link to tracking issue
Part of open-telemetry#11308

#### Testing
Existing tests cover this.

---------

Co-authored-by: Bogdan Drutu <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Skip Changelog PRs that do not require a CHANGELOG.md entry
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants