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

แชร์
ฝัง
  • เผยแพร่เมื่อ 17 ต.ค. 2024

ความคิดเห็น • 36

  • @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?

  • @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?

  • @naviravindran7706
    @naviravindran7706 4 ปีที่แล้ว

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

  • @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

  • @thrinathsf1280
    @thrinathsf1280 6 ปีที่แล้ว +1

    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  6 ปีที่แล้ว

      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

  • @taufikpirjade5983
    @taufikpirjade5983 5 ปีที่แล้ว +2

    Wonderful explanation !!

  • @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.

  • @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.

  • @konstantinasfalkovskis7506
    @konstantinasfalkovskis7506 6 ปีที่แล้ว +3

    Was very usefull for me. Thank bro!

  • @s1n7ax
    @s1n7ax 3 ปีที่แล้ว

    Nice tutorial

  • @rajashekarreddy3750
    @rajashekarreddy3750 7 ปีที่แล้ว

    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  7 ปีที่แล้ว

      +rajashekar reddy I doubt. It might work since the trace and span IDs are added in the headers

  • @karan6551
    @karan6551 3 ปีที่แล้ว +1

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

  • @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 - th-cam.com/video/VcdjbVtJzbE/w-d-xo.html ELK - th-cam.com/video/4X0WLg05ASw/w-d-xo.html

  • @salmanbaig3582
    @salmanbaig3582 ปีที่แล้ว +1

    Needed some introductory background before you jumped in to the code

  • @ganeshsai7342
    @ganeshsai7342 5 ปีที่แล้ว +2

    thanx bro, very usefull for me

  • @kashif3720
    @kashif3720 6 ปีที่แล้ว

    whats the difference in application property and application yml?

    • @TechPrimers
      @TechPrimers  6 ปีที่แล้ว +1

      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 ปีที่แล้ว +1

      +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 ปีที่แล้ว +1

      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 ปีที่แล้ว +1

      Here is the security video: th-cam.com/video/3s2lSD50-JI/w-d-xo.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

  • @aviinsolitude
    @aviinsolitude 4 ปีที่แล้ว +1

    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

  • @pipe7752
    @pipe7752 4 ปีที่แล้ว

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