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

Тәжірибелік нұсқаулар және стиль

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

Пікірлер: 36

  • @taufikpirjade5983
    @taufikpirjade59835 жыл бұрын

    Wonderful explanation !!

  • @konstantinasfalkovskis7506
    @konstantinasfalkovskis75066 жыл бұрын

    Was very usefull for me. Thank bro!

  • @ganeshsai7342
    @ganeshsai73425 жыл бұрын

    thanx bro, very usefull for me

  • @anwaralam-sc2ln
    @anwaralam-sc2ln4 жыл бұрын

    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.

  • @salmanbaig3582
    @salmanbaig3582 Жыл бұрын

    Needed some introductory background before you jumped in to the code

  • @karan6551
    @karan65513 жыл бұрын

    Awesome ❤️🔥❤️🔥❤️🔥❤️❤️

  • @s1n7ax
    @s1n7ax2 жыл бұрын

    Nice tutorial

  • @thetechthirsty713
    @thetechthirsty7133 жыл бұрын

    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?

  • @naviravindran7706
    @naviravindran77063 жыл бұрын

    Does higher version of spring boot and cloud id required to use sleuth ???

  • @PankajPatel-go6wm
    @PankajPatel-go6wm3 жыл бұрын

    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

  • @anandkadekar39
    @anandkadekar393 жыл бұрын

    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?

  • @thrinathsf1280
    @thrinathsf12805 жыл бұрын

    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

  • @parthanathguitar
    @parthanathguitar6 жыл бұрын

    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.

  • @rajashekarreddy3750
    @rajashekarreddy37506 жыл бұрын

    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

  • @DeepakPandey-ij3bz
    @DeepakPandey-ij3bz6 жыл бұрын

    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 - kzread.info/dash/bejne/iJeYzMSPpK3gkqg.html ELK - kzread.info/dash/bejne/Zoxkua6gYJing9o.html

  • @kashif3720
    @kashif37206 жыл бұрын

    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
    @virtexamit6 жыл бұрын

    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
    @zenhsuld7 жыл бұрын

    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: kzread.info/dash/bejne/ZadmzrV9ZZOTeqw.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
    @janellogrono79896 жыл бұрын

    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
    @pipe77523 жыл бұрын

    properties to yml and 8081 to 8083 , just kill process is ok ,stupi

  • @aviinsolitude
    @aviinsolitude4 жыл бұрын

    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

Келесі