Distributed log tracing in Microservices using Spring Cloud Sleuth with Example | Tech Primers
Vložit
- čas přidán 27. 08. 2024
- Spring Cloud Sleuth is a Distributed Log Tracing used for tracking logs across microservices. This example simulates it with a Server and Client application.
🔗GitHub Code: github.com/Tec...
📌 Related Playlist
================
🔗Spring Boot Primer - • Spring Boot Primer
🔗Spring Cloud Primer - • Spring Cloud Primer
🔗Spring Microservices Primer - • Spring Microservices P...
🔗Spring JPA Primer - • Spring JPA Primer
🔗Java 8 Streams - • Java 8 Streams
💥Join TechPrimers Slack Community: bit.ly/JoinTec...
💥Telegram: t.me/TechPrimers
💥TechPrimer HindSight (Blog): / techprimers
💥Website: techprimers.com
💥Slack Community: techprimers.sl...
💥Twitter: / techprimers
💥Facebook: TechPrimers
💥GitHub: github.com/Tec... or techprimers.gi...
🎬Video Editing: iMovie
---------------------------------------------------------------
🔥 Disclaimer/Policy:
The content/views/opinions posted here are solely mine and the code samples created by me are open sourced.
You are free to use the code samples in Github after forking and you can modify it for your own use.
All the videos posted here are copyrighted. You cannot re-distribute videos on this channel in other channels or platforms.
#DistributedLogging #SpringCloudSleuth #TechPrimers
Wonderful explanation !!
Was very usefull for me. Thank bro!
thanx bro, very usefull for me
Needed some introductory background before you jumped in to the code
Awesome ❤️🔥❤️🔥❤️🔥❤️❤️
Tnk u for good videos. as you are using mac you can have ‘spectacles’ utility for mac which will help in managing window display. U can compare and manage window easily on fingertips. PS: awesome content and clarity.
Nice tutorial
I tried doing Application A (with Sleuth starter) communicate with Application B (with Sleuth starter), it is not working. It throws Exception Connection refused, In such case if there are multiple micro services calling A->B->C .. there won't be any tracing possible. Any idea how this can be done?
Does higher version of spring boot and cloud id required to use sleuth ???
We have requirement to add new key to sleuth logs lets say "guid" apart from traceid, which will be unique per user. Do you have any idea on how we can achieve this?
Hi there, I tried to use the same project with spring boot 2.3.3.release and hoxton.sr9 and cloud version. But it not working
Informative.. one question: you have created one configuration file for bean RestTemplate but you haven't used that in @Autowired, instead autowired spring's @Autowired. Please let me know why ?
That allows Spring Boot to use the instance created as part of the configuration so that it can intercept RestTemplate and stamp the headers in every request/response
Hello Ajay. I have one question here. I have been following other videos where both the client and server spring boot modules are deployed in PCF. May I ask you if we need to specify different port numbers there as well? The reason I am asking is because I can see you have changed the port to 8083 in the server module.
PCF does port redirection automatically, so even if u mention the port, it will ignore.
Hi, do you have any POC for non boot application. I have a spring MVC application without boot flavor, could you confirm whether sleuth works with out boot ?
+rajashekar reddy I doubt. It might work since the trace and span IDs are added in the headers
whats the difference in application property and application yml?
application.properties will be loaded after the Spring Framework is initialised. However, application.yml will be loaded before Spring is initialised,which is why we use Spring Profiles in the application.yml
Thanks for tutorial... In project development we will maintain log files then for each microservice project will have separate log files. Can we centralize all files to one location?
Hi Deepak, you can stream the logs from different microservices to Splunk or ELK (which is a centralized log aggregator). I have made a video about both Splunk - czcams.com/video/VcdjbVtJzbE/video.html ELK - czcams.com/video/4X0WLg05ASw/video.html
How can we enable Zipkin with MYSQL
github.com/nitinware/Trace-Sleuth-ZipKin
Do we need Zipkin together with Centralized logging with the ELK stack. Can you cover up in your next session?
piotrminkowski.wordpress.com/2017/04/05/part-2-creating-microservices-monitoring-with-spring-cloud-sleuth-elk-and-zipkin/
One should know the subject well before recording the tutorial for it. The confusion of presenter around sleuth server start-up failing at port has unnecessarily cluttered the video.
Concise and working examples would be better for audience else you will end up confusing them even more.
Nice try and hope in future your tutorials improve
please make ur mic louder nxt time. Im on a max volume on my headset and i almost had a mini heart attack when the ads pop-up during the video
hi. nice tutorial... how to upload file with resttemplate? i need file upload micro service. please help.... sorry my bad english
+Enhsuld Zorigtbal Hello, you can refer the sample code for uploading file using RestTemplate here: stackoverflow.com/questions/26964688/multipart-file-upload-using-spring-rest-template-spring-web-mvc
Hello, spring security with angular2+ tutorial? thanks for sharing knowledge
Hello, I will definitely do a tutorial on Spring Security this week. I'm new to Angular 2, However i will try to do it.
thanks for reply... security with remember me?
Here is the security video: czcams.com/video/3s2lSD50-JI/video.html
Remember Me is more of a Client Side handling than server side handling. I have not started posting about any ClientSide Technologies yet.
properties to yml and 8081 to 8083 , just kill process is ok ,stupi