Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The actual invocation of the request by the client (with process service name tracer-client) and consequent invocation of the service on the server side (process service name tracer-server) is going to generate the following sample traces:

...

The actual invocation of the request by the client (with process service name tracer-client) and consequent invocation of the service on the server side (process service name tracer-server) is going to generate the following sample traces:

...

Example #4: Client and Server with binary annotations (key/value)

In this example server-side implementation of the JAX-RS service is going to add key/value annotations to the active span. The client-side code stays unchanged.

Code Block
java
java
@Produces( { MediaType.APPLICATION_JSON } )
@GET
public Collection<Book> getBooks(@Context final TracerContext tracer) throws Exception {
    final Collection<Book> books = Arrays.asList(
        new Book("Apache CXF Web Service Development", "Naveen Balani, Rajeev Hathi")
    );
        
    tracer.annotate("# of books", Integer.toString(books.size()));
    return books;
}

The actual invocation of the request by the client (with service name tracer-client) and consequent invocation of the service on the server side (service name tracer-server) is going to generate the following sample server trace properties:

Image Added

Example #5: Client and Server with parallel trace (involving thread pools)

...