Package dev.agenor.autoconfigure
Record Class AgenorProperties.Telemetry
java.lang.Object
java.lang.Record
dev.agenor.autoconfigure.AgenorProperties.Telemetry
- Record Components:
enabled- whether telemetry is enabled; defaulttrueexporter- exporter type:otlp-http(default),otlp-grpc, ornoneto disable exporting while keeping noopendpoint- OTLP collector endpoint; defaults tohttp://localhost:4318for HTTP andhttp://localhost:4317for gRPCserviceName-service.nameresource attribute; defaultagenor
- Enclosing class:
AgenorProperties
public static record AgenorProperties.Telemetry(boolean enabled, String exporter, String endpoint, String serviceName)
extends Record
Telemetry (OpenTelemetry tracing).
Only effective when agenor-adapters is on the classpath and OTel
dependencies are present (declared as optional).
- Since:
- 0.19.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanenabled()Returns the value of theenabledrecord component.endpoint()Returns the value of theendpointrecord component.final booleanIndicates whether some other object is "equal to" this one.exporter()Returns the value of theexporterrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of theserviceNamerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Telemetry
public Telemetry(@DefaultValue("true") boolean enabled, @DefaultValue("none") String exporter, String endpoint, @DefaultValue("agenor") String serviceName) Creates an instance of aTelemetryrecord class.- Parameters:
enabled- the value for theenabledrecord componentexporter- the value for theexporterrecord componentendpoint- the value for theendpointrecord componentserviceName- the value for theserviceNamerecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
enabled
public boolean enabled()Returns the value of theenabledrecord component.- Returns:
- the value of the
enabledrecord component
-
exporter
Returns the value of theexporterrecord component.- Returns:
- the value of the
exporterrecord component
-
endpoint
Returns the value of theendpointrecord component.- Returns:
- the value of the
endpointrecord component
-
serviceName
Returns the value of theserviceNamerecord component.- Returns:
- the value of the
serviceNamerecord component
-