0

I'm making a simple microservices project/application with spring boot 3 and you are supposed to now use micrometer for tracing, logging, and monitoring. And guides on this really don't show this implemented in a microservices environment with a gateway, service registry, and services. So are you supposed to use different dependency's and configurations if your microservice is a consumer, producer, consumer and producer, gateway, or service registry? Or does the the observability, tracing, and logging its all the same dependencies and configurations in each? can someone shed some light to me thank you

1 Answers1

1

Check the Boot docs: https://docs.spring.io/spring-boot/docs/current/reference/htmlsingle/#actuator.observability

The Spring portfolio is instrumented using Micrometer so you don't really need to do much for making Spring Projects observable, here's an example with Spring Initializer, you can find a bunch of samples in micrometer-samples and there is a project consist of 3(+2) services called tea-service we use on conference demos.

Jonatan Ivanov
  • 4,895
  • 2
  • 15
  • 30
  • didn't know that tea service existed. Thank you that's a great example for me. – java beginner Feb 22 '23 at 19:54
  • You can see it in action in our SpringOne Essentials talk: https://www.youtube.com/watch?v=j2JRrsc1who and other talks available on youtube by Marcin Grzejszczak or me: hints: https://toomuchcoding.com/talks/ or https://develotters.com/talks/ – Jonatan Ivanov Feb 22 '23 at 20:07