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 theEventTagsSpanAttributesProvideron the publish side and by theTracingEventTagsHandlerEnhancerDefinitionon 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 Summary
ConstructorsConstructorDescriptionSpanAttributesProviders(boolean eventTagsEnabled) Creates an instance of aSpanAttributesProvidersrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the default provider toggles, with every built-in provider enabled.final booleanIndicates whether some other object is "equal to" this one.booleanReturns the value of theeventTagsEnabledrecord component.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SpanAttributesProviders
public SpanAttributesProviders(boolean eventTagsEnabled) Creates an instance of aSpanAttributesProvidersrecord class.- Parameters:
eventTagsEnabled- the value for theeventTagsEnabledrecord component
-
-
Method Details
-
enabledByDefault
Returns the default provider toggles, with every built-in provider enabled.- Returns:
- the all-enabled default provider toggles
-
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. -
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. -
equals
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 '=='. -
eventTagsEnabled
public boolean eventTagsEnabled()Returns the value of theeventTagsEnabledrecord component.- Returns:
- the value of the
eventTagsEnabledrecord component
-