Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

bruto1/java-reactor

Open more actions menu
 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
41 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OpenTracing Reactor Instrumentation

OpenTracing instrumentation for Reactor. Basically a copy of what was done in https://github.com/rsocket/rsocket-rpc-java/tree/master/rsocket-rpc-core/src/main/java/io/rsocket/rpc/tracing

Allows wrapping any Mono or Flux in a span that starts on subscription and ends on complete, cancel or error signal. Reference to an active span is stored in subscription context during subscribe() invocation and the next span upstream will use the current one as a parent regardless of what thread its subscribe() method is called on. Thus, this library is compatible with other integrations like io.opentracing.contrib.spring.web.client.TracingWebClientBeanPostProcessor which look for the enclosing span in Context at subscribe time. When no span is found in Context, falls back to Tracer.activeSpan().

Usage example (see TracedSubscriberTest for more):

    myFlux.transform(Tracing.trace(tracer, "span name", "span kind", myDecorator))
    

Supports pluggable decorator that can augment span with tags, logs, etc. upon creation as well as upon traced publisher's termination.

About

OpenTracing instrumentation for Reactor

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Java 75.8%
  • Shell 24.2%
Morty Proxy This is a proxified and sanitized view of the page, visit original site.