Record Class MessagingTracingSettings.SpanAttributesProviders
java.lang.Object
java.lang.Record
org.axonframework.messaging.tracing.configuration.MessagingTracingSettings.SpanAttributesProviders
- Record Components:
messageIdEnabled- whether theMessageIdSpanAttributesProvideris contributedmessageTypeEnabled- whether theMessageTypeSpanAttributesProvideris contributedmetadataEnabled- whether theMetadataSpanAttributesProvideris 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 Summary
ConstructorsConstructorDescriptionSpanAttributesProviders(boolean messageIdEnabled, boolean messageTypeEnabled, boolean metadataEnabled) 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.final inthashCode()Returns a hash code value for this object.booleanReturns the value of themessageIdEnabledrecord component.booleanReturns the value of themessageTypeEnabledrecord component.booleanReturns the value of themetadataEnabledrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SpanAttributesProviders
public SpanAttributesProviders(boolean messageIdEnabled, boolean messageTypeEnabled, boolean metadataEnabled) Creates an instance of aSpanAttributesProvidersrecord class.- Parameters:
messageIdEnabled- the value for themessageIdEnabledrecord componentmessageTypeEnabled- the value for themessageTypeEnabledrecord componentmetadataEnabled- the value for themetadataEnabledrecord 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 '=='. -
messageIdEnabled
public boolean messageIdEnabled()Returns the value of themessageIdEnabledrecord component.- Returns:
- the value of the
messageIdEnabledrecord component
-
messageTypeEnabled
public boolean messageTypeEnabled()Returns the value of themessageTypeEnabledrecord component.- Returns:
- the value of the
messageTypeEnabledrecord component
-
metadataEnabled
public boolean metadataEnabled()Returns the value of themetadataEnabledrecord component.- Returns:
- the value of the
metadataEnabledrecord component
-