Class RequestTracing

java.lang.Object
org.sdase.commons.shared.tracing.RequestTracing

@Deprecated(forRemoval=true) public class RequestTracing extends Object
Deprecated, for removal: This API element is subject to removal in a future version.
all kept properties defined here moved to TraceTokenContext. Trace-Tokens should be obtained with TraceTokenContext.getOrCreateTraceTokenContext(). On all obtained contexts TraceTokenContext.closeIfCreated() or AutoCloseable.close() must be called after the local context finished.
Shared properties to trace all service calls initiated by a request entering SDA platform. The trace token is generated when not existing and shared in the request and used for logging and monitoring. Note that the purpose is different from the Trace ID of Open Telemetry which is used to find.
  • Field Details

    • TOKEN_HEADER

      @Deprecated(forRemoval=true) public static final String TOKEN_HEADER
      Deprecated, for removal: This API element is subject to removal in a future version.
      The header name used to send the request token.
      See Also:
    • TOKEN_ATTRIBUTE

      @Deprecated(forRemoval=true) public static final String TOKEN_ATTRIBUTE
      Deprecated, for removal: This API element is subject to removal in a future version.
      As "Trace-Token" support is no longer a unique feature for HTTP requests, the primary storage for the trace token of the current context is the MDC. In contrast to Open Telemetry's trace id, the "Trace-Token" is used to correlate log message. Therefore, the MDC is used to save the context.
      Common name to share the token internally, e.g. as attribute in the request context
      See Also:
    • TOKEN_MDC_KEY

      @Deprecated(forRemoval=true) public static final String TOKEN_MDC_KEY
      Deprecated, for removal: This API element is subject to removal in a future version.
      in favor of TraceTokenContext
      Name of the trace token used to promote it in the org.slf4j.MDC
      See Also: