Record Class TracingInboundFilter.TracingInboundFilterConfig
java.lang.Object
java.lang.Record
org.forgerock.opentelemetry.trace.chf.TracingInboundFilter.TracingInboundFilterConfig
- Record Components:
openTelemetrySupplier- the OpenTelemetry supplier, which allows to dynamically reconfigure the OpenTelemetry object in the applicationgetTracer- a function that accepts an OpenTelemetry and returns a Tracer, allows the application to dynamically obtain a Tracer appropriately configured for the applicationgetSpanName- a function that builds a span name from the givenRequest
- Enclosing class:
- TracingInboundFilter
public static record TracingInboundFilter.TracingInboundFilterConfig(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 Summary
ConstructorsConstructorDescriptionTracingInboundFilterConfig(Supplier<io.opentelemetry.api.OpenTelemetry> openTelemetrySupplier, Function<io.opentelemetry.api.OpenTelemetry, io.opentelemetry.api.trace.Tracer> getTracer) Creates a configuration object used to instantiate aTracingInboundFilter.TracingInboundFilterConfig(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 aTracingInboundFilterConfigrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.Returns the value of thegetSpanNamerecord component.Function<io.opentelemetry.api.OpenTelemetry,io.opentelemetry.api.trace.Tracer> Returns the value of thegetTracerrecord component.final inthashCode()Returns a hash code value for this object.Supplier<io.opentelemetry.api.OpenTelemetry>Returns the value of theopenTelemetrySupplierrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
TracingInboundFilterConfig
public TracingInboundFilterConfig(Supplier<io.opentelemetry.api.OpenTelemetry> openTelemetrySupplier, Function<io.opentelemetry.api.OpenTelemetry, io.opentelemetry.api.trace.Tracer> getTracer) Creates a configuration object used to instantiate aTracingInboundFilter.OpenTelemetryUtils.spanName(Request)is the default factory used to create the span name.- Parameters:
openTelemetrySupplier- the OpenTelemetry supplier, which allows to dynamically reconfigure the OpenTelemetry object in the applicationgetTracer- a function that accepts an OpenTelemetry and returns a Tracer, allows the application to dynamically obtain a Tracer appropriately configured for the application- See Also:
-
TracingInboundFilterConfig
public TracingInboundFilterConfig(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 aTracingInboundFilterConfigrecord class.- Parameters:
openTelemetrySupplier- the value for theopenTelemetrySupplierrecord componentgetTracer- the value for thegetTracerrecord componentgetSpanName- the value for thegetSpanNamerecord component
-
-
Method Details
-
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). -
openTelemetrySupplier
Returns the value of theopenTelemetrySupplierrecord component.- Returns:
- the value of the
openTelemetrySupplierrecord component
-
getTracer
Returns the value of thegetTracerrecord component.- Returns:
- the value of the
getTracerrecord component
-
getSpanName
Returns the value of thegetSpanNamerecord component.- Returns:
- the value of the
getSpanNamerecord component
-