Skip to content

Conversation

@mosche
Copy link
Contributor

@mosche mosche commented Jul 10, 2025

Improve newTraceContext to only modify the current thread context if a trace context exists.
Otherwise, newTraceContext will behave exactly as #newStoredContextPreservingResponseHeaders as there's no reason to cleanup / move tracing headers.

Relates to #ES-10969

…a trace context exists.

Otherwise, this will behave exactly as #newStoredContextPreservingResponseHeaders.

Relates to #ES-10969
@mosche mosche requested review from a team and DaveCTurner July 10, 2025 07:40
@mosche mosche added >non-issue :Core/Infra/Metrics Metrics and metering infrastructure labels Jul 10, 2025
@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/es-core-infra (Team:Core/Infra)

@elasticsearchmachine elasticsearchmachine added Team:Core/Infra Meta label for core/infra team v9.2.0 labels Jul 10, 2025
Copy link
Contributor

@DaveCTurner DaveCTurner left a comment

Choose a reason for hiding this comment

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

LGTM

@mosche mosche added the auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) label Jul 10, 2025
@elasticsearchmachine elasticsearchmachine merged commit 167a943 into elastic:main Jul 10, 2025
33 checks passed
@mosche mosche deleted the tracing/improved_newTraceContext branch July 10, 2025 09:35
mridula-s109 pushed a commit to mridula-s109/elasticsearch that referenced this pull request Jul 17, 2025
…a trace context exists. (elastic#130989)

Improve newTraceContext to only modify the current thread context if a
trace context exists. Otherwise, `newTraceContext` will behave exactly
as #newStoredContextPreservingResponseHeaders as there's no reason to
cleanup / move tracing headers.

Relates to #ES-10969
mridula-s109 pushed a commit to mridula-s109/elasticsearch that referenced this pull request Jul 17, 2025
…a trace context exists. (elastic#130989)

Improve newTraceContext to only modify the current thread context if a
trace context exists. Otherwise, `newTraceContext` will behave exactly
as #newStoredContextPreservingResponseHeaders as there's no reason to
cleanup / move tracing headers.

Relates to #ES-10969
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) :Core/Infra/Metrics Metrics and metering infrastructure >non-issue Team:Core/Infra Meta label for core/infra team v9.2.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants