Record Class MessagingTracingSettings.SpanAttributesProviders

java.lang.Object
java.lang.Record
org.axonframework.messaging.tracing.configuration.MessagingTracingSettings.SpanAttributesProviders
Record Components:
messageIdEnabled - whether the MessageIdSpanAttributesProvider is contributed
messageTypeEnabled - whether the MessageTypeSpanAttributesProvider is contributed
metadataEnabled - whether the MetadataSpanAttributesProvider is contributed
Enclosing class:
MessagingTracingSettings

public static record MessagingTracingSettings.SpanAttributesProviders(boolean messageIdEnabled, boolean messageTypeEnabled, boolean metadataEnabled) extends Record
Toggles for the built-in SpanAttributesProviders contributed by the axon-messaging module (read by MessagingSpanAttributesProviderConfigurationEnhancer).
  • Constructor Details

    • SpanAttributesProviders

      public SpanAttributesProviders(boolean messageIdEnabled, boolean messageTypeEnabled, boolean metadataEnabled)
      Creates an instance of a SpanAttributesProviders record class.
      Parameters:
      messageIdEnabled - the value for the messageIdEnabled record component
      messageTypeEnabled - the value for the messageTypeEnabled record component
      metadataEnabled - the value for the metadataEnabled record component
  • Method Details

    • enabledByDefault

      public static MessagingTracingSettings.SpanAttributesProviders enabledByDefault()
      Returns the default provider toggles, with every built-in provider enabled.
      Returns:
      the all-enabled default provider toggles
    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • messageIdEnabled

      public boolean messageIdEnabled()
      Returns the value of the messageIdEnabled record component.
      Returns:
      the value of the messageIdEnabled record component
    • messageTypeEnabled

      public boolean messageTypeEnabled()
      Returns the value of the messageTypeEnabled record component.
      Returns:
      the value of the messageTypeEnabled record component
    • metadataEnabled

      public boolean metadataEnabled()
      Returns the value of the metadataEnabled record component.
      Returns:
      the value of the metadataEnabled record component