Skip to content

feat: Introducing Tracing.withContext()#1006

Open
copybara-service[bot] wants to merge 1 commit intomainfrom
test_881522544
Open

feat: Introducing Tracing.withContext()#1006
copybara-service[bot] wants to merge 1 commit intomainfrom
test_881522544

Conversation

@copybara-service
Copy link

feat: Introducing Tracing.withContext()

Tracing.withContext() will improve how RxJava + Tracing works. Here's an example of how it will be used:

this.pluginManager
  .onUserMessageCallback(initialContext, newMessage)
  .compose(Tracing.<Content>withContext(capturedContext))

The .compose() is a standin for calling capturedContext.makeCurrent() in the event handler.

@copybara-service copybara-service bot force-pushed the test_881522544 branch 3 times, most recently from f255a7e to 93d8cfe Compare March 12, 2026 17:16
Tracing.withContext() will improve how RxJava + Tracing works.  Here's an example of how it will be used:

```
this.pluginManager
  .onUserMessageCallback(initialContext, newMessage)
  .compose(Tracing.<Content>withContext(capturedContext))
```

The `.compose()` is a standin for calling `capturedContext.makeCurrent()` in the event handler.

PiperOrigin-RevId: 881522544
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.

1 participant