Package swiss.trustbroker.common.tracing
package swiss.trustbroker.common.tracing
-
ClassDescriptionThis class is used to do manual operation tracing (OP-tracing).Implemented by classes that provide an application wide request context.Factory for getting hold of the currently valid request context.Pointcut to allow @Traced annotation on services doing client calls to external services the trustbroker depends on.Annotate injected classes on class or public method level to get tracing.This class adopts the OpenTelemetry effort providing these features: MDC traceId to tag every log line with the OpenTelemetry compatible traceId.spanId where spanId is our own root OpTrace logs are tagged with trID=traceId.spanId for request based tracing The related W3C specification lists these propagations: traceparent is set by XTB if not received from client, we derive traceId from x-request-id if it's compliant. tracestate is not (yet) supported Note that the ID displayed in error screen are either based on current requests or the related login conversation depending on the processing phase within XTB.