Тёмный

Distributed log tracing in Microservices using Spring Cloud Sleuth with Example | Tech Primers 

Tech Primers
Подписаться 134 тыс.
Просмотров 47 тыс.
50% 1

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/TechPrimers/spring...
📌 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/JoinTechPrimers
💥Telegram: t.me/TechPrimers
💥TechPrimer HindSight (Blog): / techprimers
💥Website: techprimers.com
💥Slack Community: techprimers.slack.com
💥Twitter: / techprimers
💥Facebook: TechPrimers
💥GitHub: github.com/TechPrimers or techprimers.github.io/
🎬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

Хобби

Опубликовано:

 

6 апр 2017

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 36   
@taufikpirjade5983
@taufikpirjade5983 5 лет назад
Wonderful explanation !!
@konstantinasfalkovskis7506
@konstantinasfalkovskis7506 6 лет назад
Was very usefull for me. Thank bro!
@anwaralam-sc2ln
@anwaralam-sc2ln 4 года назад
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.
@thetechthirsty713
@thetechthirsty713 3 года назад
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?
@salmanbaig3582
@salmanbaig3582 Год назад
Needed some introductory background before you jumped in to the code
@naviravindran7706
@naviravindran7706 3 года назад
Does higher version of spring boot and cloud id required to use sleuth ???
@ganeshsai7342
@ganeshsai7342 5 лет назад
thanx bro, very usefull for me
@parthanathguitar
@parthanathguitar 6 лет назад
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.
@TechPrimers
@TechPrimers 6 лет назад
PCF does port redirection automatically, so even if u mention the port, it will ignore.
@thrinathsf1280
@thrinathsf1280 5 лет назад
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 ?
@TechPrimers
@TechPrimers 5 лет назад
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
@anandkadekar39
@anandkadekar39 3 года назад
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?
@PankajPatel-go6wm
@PankajPatel-go6wm 3 года назад
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
@DeepakPandey-ij3bz
@DeepakPandey-ij3bz 6 лет назад
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?
@TechPrimers
@TechPrimers 6 лет назад
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 - ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-VcdjbVtJzbE.html ELK - ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-4X0WLg05ASw.html
@karan6551
@karan6551 3 года назад
Awesome ❤️🔥❤️🔥❤️🔥❤️❤️
@rajashekarreddy3750
@rajashekarreddy3750 6 лет назад
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 ?
@TechPrimers
@TechPrimers 6 лет назад
+rajashekar reddy I doubt. It might work since the trace and span IDs are added in the headers
@s1n7ax
@s1n7ax 2 года назад
Nice tutorial
@kashif3720
@kashif3720 6 лет назад
whats the difference in application property and application yml?
@TechPrimers
@TechPrimers 6 лет назад
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
@virtexamit
@virtexamit 6 лет назад
How can we enable Zipkin with MYSQL
@virtexamit
@virtexamit 6 лет назад
github.com/nitinware/Trace-Sleuth-ZipKin
@virtexamit
@virtexamit 6 лет назад
Do we need Zipkin together with Centralized logging with the ELK stack. Can you cover up in your next session?
@virtexamit
@virtexamit 6 лет назад
piotrminkowski.wordpress.com/2017/04/05/part-2-creating-microservices-monitoring-with-spring-cloud-sleuth-elk-and-zipkin/
@zenhsuld
@zenhsuld 7 лет назад
hi. nice tutorial... how to upload file with resttemplate? i need file upload micro service. please help.... sorry my bad english
@TechPrimers
@TechPrimers 7 лет назад
+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
@zenhsuld
@zenhsuld 7 лет назад
Hello, spring security with angular2+ tutorial? thanks for sharing knowledge
@TechPrimers
@TechPrimers 7 лет назад
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.
@zenhsuld
@zenhsuld 7 лет назад
thanks for reply... security with remember me?
@TechPrimers
@TechPrimers 7 лет назад
Here is the security video: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-3s2lSD50-JI.html Remember Me is more of a Client Side handling than server side handling. I have not started posting about any ClientSide Technologies yet.
@janellogrono7989
@janellogrono7989 6 лет назад
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
@pipe7752
@pipe7752 3 года назад
properties to yml and 8081 to 8083 , just kill process is ok ,stupi
@aviinsolitude
@aviinsolitude 4 года назад
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
Далее
Actuators in Spring Boot | Tech Primers
17:17
Просмотров 49 тыс.
Неожиданно?
00:25
Просмотров 103 тыс.
Microservices using SpringBoot 3.0 | Full Example [NEW]
1:25:38
Spring Cloud goes Cloud
2:10:21
Просмотров 32 тыс.
Microservices with Databases can be challenging...
20:52
KINDNESS ALWAYS COME BACK
0:59
Просмотров 32 млн