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

[Logs] Initial draft to handle batch export into background thread #2096

Draft
wants to merge 13 commits into
base: main
Choose a base branch
from

Conversation

ThomsonTan
Copy link
Contributor

Fixes #2066

Changes

This is an early draft which implements the proposal mentioned in #2066, and looking for feedback.

Merge requirement checklist

  • CONTRIBUTING guidelines followed
  • Unit tests added/updated (if applicable)
  • Appropriate CHANGELOG.md files updated for non-trivial, user-facing changes
  • Changes in public API reviewed (if applicable)

@ThomsonTan ThomsonTan changed the title [DRAFT][Logs] Initial draft to handle batch export into background thread [WIP][Logs] Initial draft to handle batch export into background thread Sep 10, 2024
@cijothomas
Copy link
Member

See https://github.com/open-telemetry/opentelemetry-rust/compare/main...lalitb:thread-runtime?expand=1 also to get some ideas about solving same/similar problems.

@ThomsonTan ThomsonTan changed the title [WIP][Logs] Initial draft to handle batch export into background thread [Logs] Initial draft to handle batch export into background thread Oct 11, 2024
// Either::Left((export_res, _)) => export_res,
// Either::Right((_, _)) => ExportResult::Err(LogError::ExportTimedOut(time_out)),
// }
ExportResult::Ok(())
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So, we are expecting export method to complete in a definite time-period, and we are not handling timeout outside of export method ? any reason why it is so ?

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.

[Feature]: remove async runtime dependency in batch processors
3 participants