Skip to content

feat: Introducing Tracing.withContext()#1006

Merged
copybara-service[bot] merged 1 commit intomainfrom
test_881522544
Mar 13, 2026
Merged

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

Conversation

@copybara-service
Copy link
Copy Markdown

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 5 times, most recently from 6ac16b3 to 2b10026 Compare March 13, 2026 14:40
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: 883160268
@copybara-service copybara-service Bot merged commit 0d2c37c into main Mar 13, 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.

1 participant