Class SpanUtils

java.lang.Object
org.axonframework.tracing.SpanUtils

public class SpanUtils extends Object
Utilities for creating spans which are relevant for all implementations of tracing.
Since:
4.6.0
Author:
Mitchell Herrijgers
  • Method Details

    • determineMessageName

      public static String determineMessageName(Message<?> message)
      Creates a human-readable name for a message's payload. This is the simple name of the payload by default, unless the more specific name of a message differs from it. This can be the case for commands and queries.
      Parameters:
      message - The message to determine a message name for
      Returns:
      The message's name