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
Nested ClassesModifier and TypeClassDescriptionstatic final recordLog configuration.static final recordMetrics configuration.static enumThe protocol used to deliver OpenTelemetry data.static final recordTrace configuration. -
Constructor Summary
ConstructorsConstructorDescriptionIdServerOpenTelemetryConfiguration(String logicalServiceName, Optional<IdServerOpenTelemetryConfiguration.IdLogs> logs, Optional<IdServerOpenTelemetryConfiguration.IdMetrics> metrics, Optional<IdServerOpenTelemetryConfiguration.IdTraces> traces) Configuration information for OpenTelemetry. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thelogicalServiceNamerecord component.logs()Returns the value of thelogsrecord component.metrics()Returns the value of themetricsrecord component.final StringtoString()Returns a string representation of this record class.traces()Returns the value of thetracesrecord 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 thelogicalServiceNamerecord component.- Returns:
- the value of the
logicalServiceNamerecord component
-
logs
Returns the value of thelogsrecord component.- Returns:
- the value of the
logsrecord component
-
metrics
Returns the value of themetricsrecord component.- Returns:
- the value of the
metricsrecord component
-
traces
Returns the value of thetracesrecord component.- Returns:
- the value of the
tracesrecord component
-