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

Поділитися
Вставка
  • Опубліковано 6 кві 2017
  • 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

  • @konstantinasfalkovskis7506
    @konstantinasfalkovskis7506 6 років тому +3

    Was very usefull for me. Thank bro!

  • @taufikpirjade5983
    @taufikpirjade5983 5 років тому +2

    Wonderful explanation !!

  • @salmanbaig3582
    @salmanbaig3582 Рік тому +1

    Needed some introductory background before you jumped in to the code

  • @ganeshsai7342
    @ganeshsai7342 5 років тому +2

    thanx bro, very usefull for me

  • @karan6551
    @karan6551 3 роки тому +1

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

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

  • @s1n7ax
    @s1n7ax 2 роки тому

    Nice tutorial

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

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

  • @naviravindran7706
    @naviravindran7706 3 роки тому

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

  • @thrinathsf1280
    @thrinathsf1280 5 років тому +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  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

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

  • @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 - ua-cam.com/video/VcdjbVtJzbE/v-deo.html ELK - ua-cam.com/video/4X0WLg05ASw/v-deo.html

  • @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: ua-cam.com/video/3s2lSD50-JI/v-deo.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 роки тому +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