Record Class StConfiguration.OpenTelemetry
java.lang.Object
java.lang.Record
com.io7m.stonesignal.server.StConfiguration.OpenTelemetry
- Enclosing class:
StConfiguration
public static record StConfiguration.OpenTelemetry(String logicalServiceName, Optional<StConfiguration.OpenTelemetry.Logs> logs, Optional<StConfiguration.OpenTelemetry.Metrics> metrics, Optional<StConfiguration.OpenTelemetry.Traces> traces)
extends Record
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordLogs configuration.static final recordMetrics configuration.static enumThe protocol used to deliver OpenTelemetry data.static final recordTrace configuration. -
Constructor Summary
ConstructorsConstructorDescriptionOpenTelemetry(String logicalServiceName, Optional<StConfiguration.OpenTelemetry.Logs> logs, Optional<StConfiguration.OpenTelemetry.Metrics> metrics, Optional<StConfiguration.OpenTelemetry.Traces> 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
-
OpenTelemetry
public OpenTelemetry(@JsonPropertyDescription("The logical service name.") String logicalServiceName, @JsonPropertyDescription("The configuration for logs.") Optional<StConfiguration.OpenTelemetry.Logs> logs, @JsonPropertyDescription("The configuration for metrics.") Optional<StConfiguration.OpenTelemetry.Metrics> metrics, @JsonPropertyDescription("The configuration for traces.") Optional<StConfiguration.OpenTelemetry.Traces> 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
-
hashCode
-
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
@JsonPropertyDescription("The configuration for logs.") public Optional<StConfiguration.OpenTelemetry.Logs> logs()Returns the value of thelogsrecord component.- Returns:
- the value of the
logsrecord component
-
metrics
@JsonPropertyDescription("The configuration for metrics.") public Optional<StConfiguration.OpenTelemetry.Metrics> metrics()Returns the value of themetricsrecord component.- Returns:
- the value of the
metricsrecord component
-
traces
@JsonPropertyDescription("The configuration for traces.") public Optional<StConfiguration.OpenTelemetry.Traces> traces()Returns the value of thetracesrecord component.- Returns:
- the value of the
tracesrecord component
-