Class MuleTracingModuleOperations
java.lang.Object
org.mule.extension.mule.tracing.module.internal.MuleTracingModuleOperations
Tracing Module Operations
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidClears all the custom variables from the event logging context.voidremoveLoggingVariable(String variableName) Removes a variable from the event logging context.voidsetLoggingVariable(String variableName, String value) Adds a new variable in the event logging context.voidwithCorrelationId(org.mule.runtime.extension.api.runtime.route.Chain chain, org.mule.runtime.extension.api.runtime.process.CompletionCallback<Object, Object> callback, String correlationId) Scope that creates a process the inner chain modifying the current correlation id.
-
Constructor Details
-
MuleTracingModuleOperations
public MuleTracingModuleOperations()
-
-
Method Details
-
withCorrelationId
@DisplayName("With CorrelationID") @MediaType(value="*/*", strict=false) @PassThroughOutputChainResolver public void withCorrelationId(@PassThroughInputChainResolver @ExecutionOccurrence(ONCE) org.mule.runtime.extension.api.runtime.route.Chain chain, org.mule.runtime.extension.api.runtime.process.CompletionCallback<Object, Object> callback, @Expression(REQUIRED) String correlationId) Scope that creates a process the inner chain modifying the current correlation id. After finishing its execution The correlation ID wil go back to the previous one. -
setLoggingVariable
Adds a new variable in the event logging context. It will be present in the next operations executions for this event.- Parameters:
variableName- Name from the logging variable to be added.value- Value to add to the logging context.
-
removeLoggingVariable
Removes a variable from the event logging context.- Parameters:
variableName- Name from the logging variable to be removed.
-
clearLoggingVariables
public void clearLoggingVariables()Clears all the custom variables from the event logging context. It will *not* remove the correlation id nor the current event processor, since those variables are managed internally by mule runtime.
-