Skip to content

[AutoOps] Improve Batching Configuration#10492

Merged
pickypg merged 3 commits intomainfrom
autoops/improve-batching
Oct 14, 2025
Merged

[AutoOps] Improve Batching Configuration#10492
pickypg merged 3 commits intomainfrom
autoops/improve-batching

Conversation

@pickypg
Copy link
Member

@pickypg pickypg commented Oct 10, 2025

This brings in recommendations from external testing on OTel data shipping to better understand solid batching.

Note: block_on_overflow: true is going to become the default behavior in a future version of OTel.

What does this PR do?

Updates the batching behavior of the OTLP exporter to be more performant.

Why is it important?

This should improve performance end-to-end.

Checklist

  • I have read and understood the pull request guidelines of this project.
  • My code follows the style guidelines of this project
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • I have made corresponding change to the default configuration files
  • I have added tests that prove my fix is effective or that my feature works
  • I have added an entry in ./changelog/fragments using the changelog tool
  • I have added an integration test or an E2E test

Disruptive User Impact

None. This should actually improve performance in practically all scenarios.

How to test this PR locally

Run the Elastic Agent using the configurations provided and ensure it still ships data.

Related issues

Internal discussions around better queueing.

This brings in recommendations from external testing on OTel data
shipping to better understand solid batching.

Note: `block_on_overflow: true` is going to become the default
behavior in a future version of OTel.
@pickypg pickypg self-assigned this Oct 10, 2025
@pickypg pickypg requested a review from a team as a code owner October 10, 2025 22:06
@pickypg pickypg added bug Something isn't working backport-9.1 Automated backport to the 9.1 branch backport-9.2 Automated backport to the 9.2 branch labels Oct 10, 2025
@pickypg pickypg enabled auto-merge (squash) October 10, 2025 22:07
@gizas
Copy link
Contributor

gizas commented Oct 13, 2025

@pickypg are we going to also update the https://github.com/elastic/elastic-agent/blob/main/deploy/helm/edot-collector/kube-stack/values.yaml?

If yes, in this are we going to split the otlphttp exporter one for logs and one for metrics/traces?

@pickypg
Copy link
Member Author

pickypg commented Oct 13, 2025

are we going to also update the https://github.com/elastic/elastic-agent/blob/main/deploy/helm/edot-collector/kube-stack/values.yaml?

This PR is explicitly for AutoOps for Self-managed (via Cloud Connected) usage, which currently only uses the logs telemetry type because that's all that Elastic Agent supports.

There is a wider effort that is standardizing the batching behavior for EDOT, but it's not intended to be this PR.

Copy link

@romulo-batista-elastic romulo-batista-elastic left a comment

Choose a reason for hiding this comment

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

LGTM.

@pickypg pickypg merged commit 552463b into main Oct 14, 2025
21 checks passed
@pickypg pickypg deleted the autoops/improve-batching branch October 14, 2025 17:43
@elasticmachine
Copy link
Contributor

💚 Build Succeeded

History

cc @pickypg

mergify bot pushed a commit that referenced this pull request Oct 14, 2025
This brings in recommendations from external testing on OTel data
shipping to better understand solid batching.

Note: `block_on_overflow: true` is going to become the default
behavior in a future version of OTel.

(cherry picked from commit 552463b)
mergify bot pushed a commit that referenced this pull request Oct 14, 2025
This brings in recommendations from external testing on OTel data
shipping to better understand solid batching.

Note: `block_on_overflow: true` is going to become the default
behavior in a future version of OTel.

(cherry picked from commit 552463b)
pickypg added a commit that referenced this pull request Oct 14, 2025
This brings in recommendations from external testing on OTel data
shipping to better understand solid batching.

Note: `block_on_overflow: true` is going to become the default
behavior in a future version of OTel.

(cherry picked from commit 552463b)

Co-authored-by: Chris Earle <pickypg@users.noreply.github.com>
pickypg added a commit that referenced this pull request Oct 14, 2025
This brings in recommendations from external testing on OTel data
shipping to better understand solid batching.

Note: `block_on_overflow: true` is going to become the default
behavior in a future version of OTel.

(cherry picked from commit 552463b)

Co-authored-by: Chris Earle <pickypg@users.noreply.github.com>
hayotbisonai pushed a commit to hayotbisonai/elastic-agent that referenced this pull request Nov 23, 2025
This brings in recommendations from external testing on OTel data
shipping to better understand solid batching.

Note: `block_on_overflow: true` is going to become the default
behavior in a future version of OTel.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport-9.1 Automated backport to the 9.1 branch backport-9.2 Automated backport to the 9.2 branch bug Something isn't working

4 participants