concept OpenTracing in category reactive

appears as: OpenTracing
Reactive Application Development

This is an excerpt from Manning's book Reactive Application Development.

10.4.2. Reducing dependencies with OpenTracing

OpenTracing (http://opentracing.io) addresses implementation dependence by providing standard instrumentation that can be configured with pluggable providers. OpenTracing was initiated by Ben Sigelman, who was also one of the authors of the Google Dapper research paper.

Building an interface to OpenTracing

Each message carries the additional trace, span, and optional parent identifiers. In addition, metadata about each message sent or received by each actor needs to be collected and sent to the trace server. In a reactive system, the messages contain trace information, and the receive functions are instrumented to receive and manage the tracing spans. OpenTracing requires tracers to support two formats to carry the trace information: a binary format and a text-map format. For convenience and readability, choose a text map. The following listing shows a simple trait that can be mixed into message definitions.