Record Class TracingOutboundFilter.TracingOutboundFilterConfig

java.lang.Object
java.lang.Record
org.forgerock.opentelemetry.trace.chf.TracingOutboundFilter.TracingOutboundFilterConfig
Record Components:
openTelemetrySupplier - the OpenTelemetry supplier, which allows to dynamically reconfigure the OpenTelemetry object in the application
getTracer - a function that accepts an OpenTelemetry and returns a Tracer, allows the application to dynamically obtain a Tracer appropriately configured for the application
getSpanName - a function that builds a span name from the given Request
Enclosing class:
TracingOutboundFilter

public static record TracingOutboundFilter.TracingOutboundFilterConfig(Supplier<io.opentelemetry.api.OpenTelemetry> openTelemetrySupplier, Function<io.opentelemetry.api.OpenTelemetry,io.opentelemetry.api.trace.Tracer> getTracer, Function<Request,String> getSpanName) extends Record
Creates a configuration object used to instantiate a TracingInboundFilter.
  • Constructor Details

    • TracingOutboundFilterConfig

      public TracingOutboundFilterConfig(Supplier<io.opentelemetry.api.OpenTelemetry> openTelemetrySupplier, Function<io.opentelemetry.api.OpenTelemetry,io.opentelemetry.api.trace.Tracer> getTracer, Function<Request,String> getSpanName)
      Creates an instance of a TracingOutboundFilterConfig record class.
      Parameters:
      openTelemetrySupplier - the value for the openTelemetrySupplier record component
      getTracer - the value for the getTracer record component
      getSpanName - the value for the getSpanName record component
  • Method Details

    • 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.
    • openTelemetrySupplier

      public Supplier<io.opentelemetry.api.OpenTelemetry> openTelemetrySupplier()
      Returns the value of the openTelemetrySupplier record component.
      Returns:
      the value of the openTelemetrySupplier record component
    • getTracer

      public Function<io.opentelemetry.api.OpenTelemetry,io.opentelemetry.api.trace.Tracer> getTracer()
      Returns the value of the getTracer record component.
      Returns:
      the value of the getTracer record component
    • getSpanName

      public Function<Request,String> getSpanName()
      Returns the value of the getSpanName record component.
      Returns:
      the value of the getSpanName record component