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.

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