lsd-consulting / lsd-distributed-interceptors

A set of interceptors gathering information from distributed services for the LSD library.

Home Page:https://github.com/integreety/lsd-distributed-interceptor-library

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Mark synchronous responses explicitly

nickmcdowall opened this issue · comments

Synchronous respones (e.g. http sync responses) can be marked explicitly. This is useful for styling purposes and also be be filtered out from the component diagrams.

For the DSL syntax it just needs the sync keyword as a prefix e.g.

sync response from A to B

or alternatively with the builder e.g.:

SynchronousResponse.builder()
    .id(123)
    .label("A synchronous response")
    .from("A")
    .to("B")
    .data("200 OK")
    .build()
`

I'd like to start using the SequenceEvent type hierarchy from lsd-core, but this is going to take some major refactoring. I have added a new issue for this: #25