Repository navigation
Phase 4: add cloud-native observability and resilience fault-injection demos - #14
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation
Description
org.example.cloudnative.observabilitywithObservedCommandExecutor,ObservedCircuitBreaker,CorrelatedSagaOrchestrator, andCorrelatedSagaStepto emit spans/metrics and propagate correlation IDs.ObservabilityPatternsTest(in-memory OpenTelemetry spans/metrics assertions usingInMemorySpanExporter/InMemoryMetricReader) andResilienceFaultInjectionTest(WireMock scenarios driven by Testcontainers to exercise timeouts and retries).deploy/:docker-compose.yml,otel-collector-config.yaml, and minimaldeploy/k8s/manifests for two demos.docs/phase-4-cloud-native-observability.md) andREADME.mdphase tracking, and add OpenTelemetry/Testcontainers dependencies topom.xml.Testing
mvn test -DskipITsin this environment but the build failed early due to plugin/dependency resolution from Maven Central returning HTTP 403, so the full test suite could not be executed here.ObservabilityPatternsTestis designed to validate spans and metrics using in-memory OTEL testing helpers and asserts presence ofcommand.execute,saga.orchestrationspans andpattern.command.latency.msmetric.ResilienceFaultInjectionTestuses Testcontainers + WireMock and is guarded byassumeTrue(DockerClientFactory.instance().isDockerAvailable()), so it will auto-skip when Docker is not available in the runner.mvn testin a networked environment with Docker available to validate all tests end-to-end.Codex Task