O'Reilly logo

Hands-On Enterprise Java Microservices with Eclipse MicroProfile by Scott Stark, Antoine Sabot-Durand, Pavol Loffay, Jeff Mesnil, Heiko W. Rupp, Cesar Saavedra

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

JAX-RS

MicroProfile OpenTracing automatically traces all inbound JAX-RS endpoints. However, the JAX-RS client side is more tricky and requires the registration API, org.eclipse.microprofile.opentracing.ClientTracingRegistrar.configure(ClientBuilder clientBuilder), to be called to add tracing capability. MicroProfile implementation can enable tracing for all client interfaces globally; however, it is recommended to use the registration API for better portability.

The default tracing behavior can be modified by disabling the tracing of specific requests or changing operation names of produced server spans. For more information, refer to the Configuration properties section later in this chapter. The instrumentation layer automatically adds ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required