Skip to content

Conversation

prwhelan
Copy link
Member

There is the potential for a memory leak, depending on which thread handles the onComplete message. Currently, the child span does not add anything to debugging, so we will disable it until we can figure out a clean way to propagate the child span's context throughout the stream.

In any case, it would be better to replace it entirely with a child span capturing the outbound service call and response for both streaming and non-streaming requests, so this may remain disabled in the long run anyway in favor of that child span.

There is the potential for a memory leak, depending on which thread
handles the onComplete message. Currently, the child span does not add
anything to debugging, so we will disable it until we can figure out
a clean way to propagate the child span's context throughout the stream.

In any case, it would be better to replace it entirely with a child span
capturing the outbound service call and response for both streaming and
non-streaming requests, so this may remain disabled in the long run
anyway in favor of that child span.
@prwhelan prwhelan added >bug :ml Machine learning Team:ML Meta label for the ML team auto-backport Automatically create backport pull requests when merged v9.2.0 v8.18.6 v9.0.6 v9.1.3 v8.19.3 labels Aug 14, 2025
@elasticsearchmachine
Copy link
Collaborator

Hi @prwhelan, I've created a changelog YAML for you.

@prwhelan prwhelan marked this pull request as ready for review August 14, 2025 17:41
@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/ml-core (Team:ML)

Copy link
Member

@davidkyle davidkyle left a comment

Choose a reason for hiding this comment

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

LGTM

@prwhelan prwhelan enabled auto-merge (squash) August 18, 2025 12:25
@prwhelan prwhelan merged commit aaeb10f into elastic:main Aug 18, 2025
34 checks passed
prwhelan added a commit to prwhelan/elasticsearch that referenced this pull request Aug 18, 2025
There is the potential for a memory leak, depending on which thread
handles the onComplete message. Currently, the child span does not add
anything to debugging, so we will disable it until we can figure out
a clean way to propagate the child span's context throughout the stream.

In any case, it would be better to replace it entirely with a child span
capturing the outbound service call and response for both streaming and
non-streaming requests, so this may remain disabled in the long run
anyway in favor of that child span.
@elasticsearchmachine
Copy link
Collaborator

💚 Backport successful

Status Branch Result
8.18
9.0
9.1
8.19

prwhelan added a commit to prwhelan/elasticsearch that referenced this pull request Aug 18, 2025
There is the potential for a memory leak, depending on which thread
handles the onComplete message. Currently, the child span does not add
anything to debugging, so we will disable it until we can figure out
a clean way to propagate the child span's context throughout the stream.

In any case, it would be better to replace it entirely with a child span
capturing the outbound service call and response for both streaming and
non-streaming requests, so this may remain disabled in the long run
anyway in favor of that child span.
prwhelan added a commit to prwhelan/elasticsearch that referenced this pull request Aug 18, 2025
There is the potential for a memory leak, depending on which thread
handles the onComplete message. Currently, the child span does not add
anything to debugging, so we will disable it until we can figure out
a clean way to propagate the child span's context throughout the stream.

In any case, it would be better to replace it entirely with a child span
capturing the outbound service call and response for both streaming and
non-streaming requests, so this may remain disabled in the long run
anyway in favor of that child span.
prwhelan added a commit to prwhelan/elasticsearch that referenced this pull request Aug 18, 2025
There is the potential for a memory leak, depending on which thread
handles the onComplete message. Currently, the child span does not add
anything to debugging, so we will disable it until we can figure out
a clean way to propagate the child span's context throughout the stream.

In any case, it would be better to replace it entirely with a child span
capturing the outbound service call and response for both streaming and
non-streaming requests, so this may remain disabled in the long run
anyway in favor of that child span.
elasticsearchmachine pushed a commit that referenced this pull request Aug 18, 2025
There is the potential for a memory leak, depending on which thread
handles the onComplete message. Currently, the child span does not add
anything to debugging, so we will disable it until we can figure out
a clean way to propagate the child span's context throughout the stream.

In any case, it would be better to replace it entirely with a child span
capturing the outbound service call and response for both streaming and
non-streaming requests, so this may remain disabled in the long run
anyway in favor of that child span.
elasticsearchmachine pushed a commit that referenced this pull request Aug 18, 2025
There is the potential for a memory leak, depending on which thread
handles the onComplete message. Currently, the child span does not add
anything to debugging, so we will disable it until we can figure out
a clean way to propagate the child span's context throughout the stream.

In any case, it would be better to replace it entirely with a child span
capturing the outbound service call and response for both streaming and
non-streaming requests, so this may remain disabled in the long run
anyway in favor of that child span.
elasticsearchmachine pushed a commit that referenced this pull request Aug 18, 2025
There is the potential for a memory leak, depending on which thread
handles the onComplete message. Currently, the child span does not add
anything to debugging, so we will disable it until we can figure out
a clean way to propagate the child span's context throughout the stream.

In any case, it would be better to replace it entirely with a child span
capturing the outbound service call and response for both streaming and
non-streaming requests, so this may remain disabled in the long run
anyway in favor of that child span.
elasticsearchmachine pushed a commit that referenced this pull request Aug 18, 2025
There is the potential for a memory leak, depending on which thread
handles the onComplete message. Currently, the child span does not add
anything to debugging, so we will disable it until we can figure out
a clean way to propagate the child span's context throughout the stream.

In any case, it would be better to replace it entirely with a child span
capturing the outbound service call and response for both streaming and
non-streaming requests, so this may remain disabled in the long run
anyway in favor of that child span.
rjernst pushed a commit to rjernst/elasticsearch that referenced this pull request Aug 18, 2025
There is the potential for a memory leak, depending on which thread
handles the onComplete message. Currently, the child span does not add
anything to debugging, so we will disable it until we can figure out
a clean way to propagate the child span's context throughout the stream.

In any case, it would be better to replace it entirely with a child span
capturing the outbound service call and response for both streaming and
non-streaming requests, so this may remain disabled in the long run
anyway in favor of that child span.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

auto-backport Automatically create backport pull requests when merged >bug :ml Machine learning Team:ML Meta label for the ML team v8.18.6 v8.19.3 v9.0.6 v9.1.3 v9.2.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants