Package org.sdase.commons.shared.tracing
Class RequestTracing
java.lang.Object
org.sdase.commons.shared.tracing.RequestTracing
Deprecated, for removal: This API element is subject to removal in a future version.
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 Summary
FieldsModifier and TypeFieldDescriptionstatic final StringDeprecated, 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.static final StringDeprecated, for removal: This API element is subject to removal in a future version.in favor ofTraceTokenContext.TRACE_TOKEN_HTTP_HEADER_NAMEstatic final StringDeprecated, for removal: This API element is subject to removal in a future version.in favor ofTraceTokenContext -
Method Summary
-
Field Details
-
TOKEN_HEADER
Deprecated, for removal: This API element is subject to removal in a future version.in favor ofTraceTokenContext.TRACE_TOKEN_HTTP_HEADER_NAMEThe header name used to send the request token.- See Also:
-
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, theMDCis 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, for removal: This API element is subject to removal in a future version.in favor ofTraceTokenContextName of the trace token used to promote it in theorg.slf4j.MDC- See Also:
-
TraceTokenContext. Trace-Tokens should be obtained withTraceTokenContext.getOrCreateTraceTokenContext(). On all obtained contextsTraceTokenContext.closeIfCreated()orAutoCloseable.close()must be called after the local context finished.