Skip to content

Playground for spring observability based on opentelemetry

Notifications You must be signed in to change notification settings

huisam/spring-observability

Repository files navigation

Observability with spring boot application

A demo for observability on spring boot with opentelemetry

Introduce

To simulate the observability of the system, in this repository will use the opentelemetry open source.

The description of the observability is written on the opentelemetry

Observability lets you understand a system from the outside by letting you ask questions about that system without knowing its inner workings.

The main instrumented data is metric, trace and log.
Also you can create correlations between instrumented data.

Grafana can create interactive links for Explore visualizations to run queries related to presented data by setting up correlations.

Command to Run

Generate docker images from each application

./gradlew -x clean :order-application:jibDockerBuild
./gradlew -x clean :product-application:jibDockerBuild

Run the docker compose!

docker compose up -d

Test

There is a test simulation file for http API.
It is located on the http folder. If you test from using http file, you can easy to make the trace data on tempo.

### get order
GET http://localhost:8080/api/v1/orders/1

### get product
GET http://localhost:8081/api/v1/products/1

### place order
POST http://localhost:8080/api/v1/orders/place-order
Content-Type: application/json

{
  "productId": 1
}

Performance Test

Performance test is based on opensource locust

You can run the performance test by access locust-master endpoint 8089 port.
Performance test script is located on locustfile.py you can customization own performance test scenario.

About

Playground for spring observability based on opentelemetry

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published