Hands-On Enterprise Java Microservices with Eclipse MicroProfile
by Cesar Saavedra, Heiko W. Rupp, Jeff Mesnil, Pavol Loffay, Antoine Sabot-Durand, Scott Stark
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 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access