Skip to content

[reactor-optional] Deprecate Context utils - #3834

Merged
a-TODO-rov merged 1 commit into
mainfrom
tracing-deprecate-context-7x
Jul 10, 2026
Merged

a-TODO-rov merged 1 commit into
mainfrom
tracing-deprecate-context-7x

Conversation

@a-TODO-rov

@a-TODO-rov a-TODO-rov commented Jul 10, 2026 •

Copy link
Copy Markdown
Collaborator

Part of #3614 and follow up of #3827


Note

Low Risk
Behavior-preserving API relocation with deprecations; only reactive tracing context wiring and call-site migration in tests change.

Overview
Moves Reactor Context helpers for trace propagation off Tracing and onto a new public nested type AbstractRedisReactiveCommands.ReactorTraceContext (getContext, clearContext, withTraceContextProvider). Reactive command creation now reads trace context via ReactorTraceContext.getContext() instead of Tracing.getContext().

The three equivalent Tracing static methods are deprecated since 7.7 (removal in 8.0) with Javadoc pointing to ReactorTraceContext. BraveTracingIntegrationTests is updated to use ReactorTraceContext.withTraceContextProvider for contextWrite.

Reviewed by Cursor Bugbot for commit 4d9396a. Bugbot is set up for automated code reviews on this repo. Configure here.

@atakavci atakavci left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

LGTM

*
* @return a {@link Mono} emitting the {@link TraceContextProvider} held in the subscriber {@link Context}, if any.
*/
public static Mono<TraceContextProvider> getContext() {

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

nit: getContextProvider , clearContextProvider

@a-TODO-rov
a-TODO-rov force-pushed the tracing-deprecate-context-7x branch from 5735ede to 4d9396a Compare July 10, 2026 15:54
@a-TODO-rov
a-TODO-rov merged commit 8e5ed16 into main Jul 10, 2026
10 checks passed
@a-TODO-rov
a-TODO-rov deleted the tracing-deprecate-context-7x branch July 10, 2026 16:02
@chatgpt-codex-connector chatgpt-codex-connector Bot mentioned this pull request Aug 18, 2026
a-TODO-rov added a commit that referenced this pull request Aug 18, 2026
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.

2 participants