Record Class EventSourcingTracingSettings.SpanAttributesProviders

java.lang.Object
java.lang.Record
org.axonframework.eventsourcing.tracing.configuration.EventSourcingTracingSettings.SpanAttributesProviders
Record Components:
eventTagsEnabled - whether event tags are recorded as span attributes (both by the EventTagsSpanAttributesProvider on the publish side and by the TracingEventTagsHandlerEnhancerDefinition on the handling side)
Enclosing class:
EventSourcingTracingSettings

public static record EventSourcingTracingSettings.SpanAttributesProviders(boolean eventTagsEnabled) extends Record
Toggles for the built-in SpanAttributesProviders contributed by the axon-eventsourcing module (read by EventSourcingSpanAttributesProviderConfigurationEnhancer and TracingEventTagsHandlerEnhancerDefinition).
  • Constructor Details

    • SpanAttributesProviders

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

    • enabledByDefault

      public static EventSourcingTracingSettings.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.
    • eventTagsEnabled

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