refactor(ping-feature): clean up imports, simplify UI state handling, and remove redundant variables

Simplified imports for better readability, addressed unnecessary null check for `uiState.errorMessage`, and removed an unused `CoroutineScope` variable in `MainApp`. Improved code clarity and maintainability.
This commit is contained in:
2026-01-19 16:55:56 +01:00
parent 12810ce82d
commit d03b888676
4 changed files with 412 additions and 391 deletions
@@ -16,13 +16,10 @@ management.tracing.enabled=true
# Entwicklung: 1.0 (100%), Produktion sollte niedriger sein (z.B. 0.1 = 10%)
management.tracing.sampling.probability=${TRACING_SAMPLING_PROBABILITY:1.0}
# --- Micrometer Observation (für Metriken UND Tracing) ---
# aktiviert die "Beobachtung" von HTTP Server Requests.
# Dies erzeugt automatisch Metriken (Timer) UND Traces für eingehende Anfragen.
management.observations.http.server.requests.enabled=true
# Fügt Anwendungs-Informationen zu den Metriken hinzu
management.info.env.enabled=true
# Definiert den Standard-Endpunkt, an den die Traces gesendet werden.
management.zipkin.tracing.endpoint=http://zipkin:9411/api/v2/spans
# Default: localhost (für lokale Entwicklung).
# In Docker wird dies via ENV 'MANAGEMENT_ZIPKIN_TRACING_ENDPOINT' auf 'http://zipkin:9411...' überschrieben.
management.zipkin.tracing.endpoint=http://localhost:9411/api/v2/spans
@@ -49,6 +49,7 @@ management:
endpoints:
web:
exposure:
# Ergänzt die Defaults (health, info, prometheus) um metrics und circuitbreakers
include: health,info,metrics,prometheus,circuitbreakers
endpoint:
health:
@@ -56,15 +57,8 @@ management:
show-components: always
probes:
enabled: true
tracing:
enabled: ${TRACING_ENABLED:false}
sampling:
probability: ${TRACING_SAMPLING_PROBABILITY:0.1}
zipkin:
tracing:
endpoint: ${ZIPKIN_TRACING_ENDPOINT:http://localhost:9411/api/v2/spans}
connect-timeout: 1s
read-timeout: 5s
# Tracing & Zipkin Konfiguration wird nun zentral aus monitoring-client (monitoring-defaults.properties) geladen.
# Defaults: Enabled=true, Endpoint=http://localhost:9411/api/v2/spans
resilience4j:
circuitbreaker: