Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add instrumentation to PeriodicWorkerTask and InstantPeriodicWorkerTa… #195

Merged
merged 1 commit into from
Jan 26, 2021

Conversation

jack-berg
Copy link
Contributor

Fix issue preventing activity from Flux.interval() from being linked to the transaction.

In an spring webflux set, this allows the following code to properly link the external activity:

@GetMapping("/reactiveFluxInterval")
Flux<String> handleReactiveWithFluxInterval() {
    return Flux.interval(Duration.ZERO, Duration.ofSeconds(1))
        .flatMap((Function<Long, Publisher<String>>) aLong -> WEB_CLIENT.get().retrieve().bodyToMono(String.class));
}

…sk allowing activity on Flux.interval(..) threads to be linked
@jack-berg jack-berg merged commit 5db206b into main Jan 26, 2021
@twcrone twcrone deleted the fix-flux-interval branch October 26, 2021 14:37
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.

3 participants