Package com.io7m.idstore.server.api
Record Class IdServerOpenTelemetryConfiguration
java.lang.Object
java.lang.Record
com.io7m.idstore.server.api.IdServerOpenTelemetryConfiguration
- Record Components:
logicalServiceName
- The logical service namelogs
- The configuration for OTLP logsmetrics
- The configuration for OTLP metricstraces
- The configuration for OTLP traces
public record IdServerOpenTelemetryConfiguration(String logicalServiceName, Optional<IdServerOpenTelemetryConfiguration.IdLogs> logs, Optional<IdServerOpenTelemetryConfiguration.IdMetrics> metrics, Optional<IdServerOpenTelemetryConfiguration.IdTraces> traces)
extends Record
Configuration information for OpenTelemetry.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final record
Log configuration.static final record
Metrics configuration.static enum
The protocol used to deliver OpenTelemetry data.static final record
Trace configuration. -
Constructor Summary
ConstructorDescriptionIdServerOpenTelemetryConfiguration
(String logicalServiceName, Optional<IdServerOpenTelemetryConfiguration.IdLogs> logs, Optional<IdServerOpenTelemetryConfiguration.IdMetrics> metrics, Optional<IdServerOpenTelemetryConfiguration.IdTraces> traces) Configuration information for OpenTelemetry. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.Returns the value of thelogicalServiceName
record component.logs()
Returns the value of thelogs
record component.metrics()
Returns the value of themetrics
record component.final String
toString()
Returns a string representation of this record class.traces()
Returns the value of thetraces
record component.
-
Constructor Details
-
IdServerOpenTelemetryConfiguration
public IdServerOpenTelemetryConfiguration(String logicalServiceName, Optional<IdServerOpenTelemetryConfiguration.IdLogs> logs, Optional<IdServerOpenTelemetryConfiguration.IdMetrics> metrics, Optional<IdServerOpenTelemetryConfiguration.IdTraces> traces) Configuration information for OpenTelemetry.- Parameters:
logicalServiceName
- The logical service namelogs
- The configuration for OTLP logsmetrics
- The configuration for OTLP metricstraces
- The configuration for OTLP traces
-
-
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)
. -
logicalServiceName
Returns the value of thelogicalServiceName
record component.- Returns:
- the value of the
logicalServiceName
record component
-
logs
Returns the value of thelogs
record component.- Returns:
- the value of the
logs
record component
-
metrics
Returns the value of themetrics
record component.- Returns:
- the value of the
metrics
record component
-
traces
Returns the value of thetraces
record component.- Returns:
- the value of the
traces
record component
-