Record Class ValkeyGlideClientConfiguration.OpenTelemetryForGlide
java.lang.Object
java.lang.Record
io.valkey.springframework.data.valkey.connection.valkeyglide.ValkeyGlideClientConfiguration.OpenTelemetryForGlide
- Record Components:
tracesEndpoint- the OTLP endpoint for traces, ornullif not set.metricsEndpoint- the OTLP endpoint for metrics, ornullif not set.samplePercentage- the sampling percentage for traces, ornullif not set.flushIntervalMs- the flush interval in milliseconds, ornullif not set.
- Enclosing interface:
- ValkeyGlideClientConfiguration
public static record ValkeyGlideClientConfiguration.OpenTelemetryForGlide(String tracesEndpoint, String metricsEndpoint, Integer samplePercentage, Long flushIntervalMs)
extends Record
Record representing OpenTelemetry configuration for Valkey-Glide client.
-
Constructor Summary
ConstructorsConstructorDescriptionOpenTelemetryForGlide(String tracesEndpoint, String metricsEndpoint, Integer samplePercentage, Long flushIntervalMs) Creates an instance of aOpenTelemetryForGliderecord class. -
Method Summary
Modifier and TypeMethodDescriptiondefaults()Default OpenTelemetry configuration for Valkey-Glide.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theflushIntervalMsrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of themetricsEndpointrecord component.Returns the value of thesamplePercentagerecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thetracesEndpointrecord component.
-
Constructor Details
-
OpenTelemetryForGlide
public OpenTelemetryForGlide(@Nullable String tracesEndpoint, @Nullable String metricsEndpoint, @Nullable Integer samplePercentage, @Nullable Long flushIntervalMs) Creates an instance of aOpenTelemetryForGliderecord class.- Parameters:
tracesEndpoint- the value for thetracesEndpointrecord componentmetricsEndpoint- the value for themetricsEndpointrecord componentsamplePercentage- the value for thesamplePercentagerecord componentflushIntervalMs- the value for theflushIntervalMsrecord component
-
-
Method Details
-
defaults
Default OpenTelemetry configuration for Valkey-Glide. -
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 withObjects::equals(Object,Object). -
tracesEndpoint
Returns the value of thetracesEndpointrecord component.- Returns:
- the value of the
tracesEndpointrecord component
-
metricsEndpoint
Returns the value of themetricsEndpointrecord component.- Returns:
- the value of the
metricsEndpointrecord component
-
samplePercentage
Returns the value of thesamplePercentagerecord component.- Returns:
- the value of the
samplePercentagerecord component
-
flushIntervalMs
Returns the value of theflushIntervalMsrecord component.- Returns:
- the value of the
flushIntervalMsrecord component
-