-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0cc94ba
commit 9826df3
Showing
16 changed files
with
295 additions
and
37 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
Empty file.
2 changes: 1 addition & 1 deletion
2
api/src/main/java/io/smallrye/stork/api/observability/StorkEventHandler.java
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
package io.smallrye.stork.api.observability; | ||
|
||
public interface StorkEventHandler { | ||
void complete(StorkObservationPoints event); | ||
void complete(StorkObservation event); | ||
} |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
@startuml | ||
|
||
!include diagrams/includes/themes/light.puml | ||
|
||
skinparam sequenceMessageAlign center | ||
autonumber "<b>(0)" | ||
|
||
|
||
participant Application | ||
participant ObservableStorkInfrastructure | ||
participant ObservationCollector | ||
participant Stork | ||
participant Service | ||
|
||
Application -> ObservableStorkInfrastructure : instantiates | ||
ObservableStorkInfrastructure -> ObservationCollector : instantiates | ||
ObservationCollector -> ObservableStorkInfrastructure: ObservationCollector | ||
ObservableStorkInfrastructure -> Application: ObservableStorkInfrastructure | ||
|
||
... ... | ||
|
||
Application -> Stork : initialize(observableInfrastructure) | ||
Stork -> Service : instantiates (..., ObservationCollector, ...) | ||
@enduml |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
@startuml | ||
|
||
!include diagrams/includes/themes/light.puml | ||
|
||
skinparam sequenceMessageAlign center | ||
autonumber "<b>(0)" | ||
|
||
|
||
participant Service | ||
participant ObservationCollector | ||
participant StorkObservation | ||
participant StorkEventHandler | ||
|
||
Service -> ObservationCollector : create("serviceName", sd type, ss type) | ||
ObservationCollector -> StorkObservation : instantiates | ||
StorkObservation -> StorkObservation: Registers start time | ||
ObservationCollector -> Service : StorkObservation | ||
|
||
... ... | ||
|
||
Service -> StorkObservation : onServiceDiscoverySuccess(List<ServiceInstance>) | ||
StorkObservation -> StorkObservation : Registers end service\ndiscovery time.\nRegisters instances count\n | ||
... ... | ||
|
||
Service -> StorkObservation : onServiceDiscoveryFailure(Throwable) | ||
StorkObservation -> StorkObservation : Registers end service\ndiscovery time.\nRegisters failure cause\n | ||
... ... | ||
|
||
Service -> StorkObservation : onServiceSelectionSuccess(instanceId) | ||
StorkObservation -> StorkObservation : Registers end service\nselection time.\nRegisters instance id\nRegisters overall duration\n | ||
StorkObservation -> StorkEventHandler: complete(this) | ||
... ... | ||
|
||
Service -> StorkObservation : onServiceSelectionFailure(Throwable)) | ||
StorkObservation -> StorkObservation : Registers overall duration.\nRegisters failure cause\n | ||
StorkObservation -> StorkEventHandler: complete(this) | ||
@enduml |
Oops, something went wrong.