Index
All Classes and Interfaces|All Packages|Constant Field Values
C
- close() - Method in class org.sdase.commons.shared.tracing.TraceTokenContext
-
Closes this
TraceTokenContext
and removes all associated properties from theMDC
only if thisTraceTokenContext
represents the initial creation of the context. - closeIfCreated() - Method in class org.sdase.commons.shared.tracing.TraceTokenContext
-
Closes this
TraceTokenContext
and removes all associated properties from theMDC
only if thisTraceTokenContext
represents the initial creation of the context. - ConsumerTracing - Class in org.sdase.commons.shared.tracing
-
Shared properties to trace the consumer that initiated a request.
- continueSynchronousTraceTokenContext(String) - Static method in class org.sdase.commons.shared.tracing.TraceTokenContext
-
Continues the "Trace-Token" context of a synchronous process that started outside this service.
- createFromAsynchronousTraceTokenContext(String) - Static method in class org.sdase.commons.shared.tracing.TraceTokenContext
-
Creates a new
TraceTokenContext
with a reference to a parent context.
G
- get() - Method in class org.sdase.commons.shared.tracing.TraceTokenContext
- getOrCreateTraceTokenContext() - Static method in class org.sdase.commons.shared.tracing.TraceTokenContext
I
- isCreated() - Method in class org.sdase.commons.shared.tracing.TraceTokenContext
- isReused() - Method in class org.sdase.commons.shared.tracing.TraceTokenContext
- isTraceTokenContextActive() - Static method in class org.sdase.commons.shared.tracing.TraceTokenContext
N
- NAME_ATTRIBUTE - Static variable in class org.sdase.commons.shared.tracing.ConsumerTracing
-
Common name to share the consumer name internally, e.g.
- NAME_MDC_KEY - Static variable in class org.sdase.commons.shared.tracing.ConsumerTracing
-
Name of the consumer name used to promote it in the
org.slf4j.MDC
O
- org.sdase.commons.shared.tracing - package org.sdase.commons.shared.tracing
R
- RequestTracing - Class in org.sdase.commons.shared.tracing
-
Deprecated, for removal: This API element is subject to removal in a future version.
T
- TOKEN_ATTRIBUTE - Static variable in class org.sdase.commons.shared.tracing.ConsumerTracing
-
Common name to share the consumer token internally, e.g.
- TOKEN_ATTRIBUTE - Static variable in class org.sdase.commons.shared.tracing.RequestTracing
-
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. - TOKEN_HEADER - Static variable in class org.sdase.commons.shared.tracing.ConsumerTracing
-
The header name used to send the consumer token.
- TOKEN_HEADER - Static variable in class org.sdase.commons.shared.tracing.RequestTracing
-
Deprecated, for removal: This API element is subject to removal in a future version.in favor of
TRACE_TOKEN_HTTP_HEADER_NAME
- TOKEN_MDC_KEY - Static variable in class org.sdase.commons.shared.tracing.RequestTracing
-
Deprecated, for removal: This API element is subject to removal in a future version.in favor of
TraceTokenContext
- TRACE_TOKEN_HTTP_HEADER_NAME - Static variable in class org.sdase.commons.shared.tracing.TraceTokenContext
-
The name of the header containing the trace token in HTTP requests.
- TRACE_TOKEN_MESSAGING_HEADER_NAME - Static variable in class org.sdase.commons.shared.tracing.TraceTokenContext
-
The name of the header containing the trace token in asynchronous messages.
- TraceTokenContext - Class in org.sdase.commons.shared.tracing
-
Manages the context for the
Trace-Token
.
All Classes and Interfaces|All Packages|Constant Field Values
TraceTokenContext
. Trace-Tokens should be obtained withgetOrCreateTraceTokenContext()
. On all obtained contextscloseIfCreated()
orAutoCloseable.close()
must be called after the local context finished.