Eclipse MicroProfile OpenTracing
Payara Platform 6.15.0 provides MicroProfile OpenTracing 3.0
Background
The Open Tracing API was created to allow easier tracing of the flow of a request in microservices environment across service boundaries.
The complete specification can be found on the Eclipse MicroProfile website.
Breaking changes introduced in MicroProfile OpenTracing 3.0 are listed in the official specification under Incompatible Changes
Support for MicroProfile Open Tracing is provided via compatibility layer for OpenTelemetry.
To achieve full compatibility in naming the spans with the spec a span convention needs to be configured as described in Span Naming Convention.
Text and Binary Carriers Support
The Payara Platform implementation of the io.opentracing.Tracer
interface supports the following carriers:
-
TextMap
carriers withHTTP_HEADERS
andTEXT_MAP
formats
JAX-WS Support
The Payara Platform’s MicroProfile implementation supports tracing of requests that are handled by SOAP Web Services implemented via the JAX-WS API. Since JAX-WS is only supported on Payara Server Full Profile, this support is not covered on Payara Micro.
OpenTracing Configuration
Span Naming Convention
By default, span names for JAX-RS endpoints follow recommendations set forth by OpenTelemetry Semantic Conventions. To have span names follow naming conventions defined by MicroProfile OpenTelemetry, following MicroProfile Config property must be set for application or globally for the server or domain:
payara.telemetry.span-convention=opentracing-class-method
All valid values for the property are documented in OpenTelemetry Span Convention Settings
Using Alternate OpenTracing Implementations
Currently, it is not possible to use other OpenTracing implementations in the Payara Platform.
It is however possible to deploy and configure other OpenTelemetry exporters (i.e. Zipkin) into the server or ship them with application.
Please consult OpenTelemetry Configuration.