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, or null if not set.
metricsEndpoint - the OTLP endpoint for metrics, or null if not set.
samplePercentage - the sampling percentage for traces, or null if not set.
flushIntervalMs - the flush interval in milliseconds, or null if 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 Details

    • OpenTelemetryForGlide

      public OpenTelemetryForGlide(@Nullable String tracesEndpoint, @Nullable String metricsEndpoint, @Nullable Integer samplePercentage, @Nullable Long flushIntervalMs)
      Creates an instance of a OpenTelemetryForGlide record class.
      Parameters:
      tracesEndpoint - the value for the tracesEndpoint record component
      metricsEndpoint - the value for the metricsEndpoint record component
      samplePercentage - the value for the samplePercentage record component
      flushIntervalMs - the value for the flushIntervalMs record component
  • Method Details

    • defaults

      Default OpenTelemetry configuration for Valkey-Glide.
    • 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 Objects::equals(Object,Object).
      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.
    • tracesEndpoint

      @Nullable public String tracesEndpoint()
      Returns the value of the tracesEndpoint record component.
      Returns:
      the value of the tracesEndpoint record component
    • metricsEndpoint

      @Nullable public String metricsEndpoint()
      Returns the value of the metricsEndpoint record component.
      Returns:
      the value of the metricsEndpoint record component
    • samplePercentage

      @Nullable public Integer samplePercentage()
      Returns the value of the samplePercentage record component.
      Returns:
      the value of the samplePercentage record component
    • flushIntervalMs

      @Nullable public Long flushIntervalMs()
      Returns the value of the flushIntervalMs record component.
      Returns:
      the value of the flushIntervalMs record component