Spring Boot Observability Uncovered: Enabling & Using the Observation API

แชร์
ฝัง
  • เผยแพร่เมื่อ 30 ก.ย. 2024
  • Observability was a major theme with Spring Boot 3 and beyond. In this tutorial you will learn how to enable observability in your applications by including the Spring Boot Actuator. From there you will learn how view traces using a tool like Zipkin. Finally you will learn how to hook into the Observation API and write your own observations.
    🔗Resources & Links mentioned in this video:
    GitHub Repo: github.com/dan...
    👋🏻Connect with me:
    Website: www.danvega.dev
    Twitter: / therealdanvega
    Github: github.com/dan...
    LinkedIn: / danvega
    Newsletter: www.danvega.de...
    SUBSCRIBE TO MY CHANNEL: bit.ly/2re4GH0 ❤️

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

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

    very nice, my hair stopped becoming white once I completely migrated from laravel to spring boot, so friendly and complete framework.

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

    Whoever chooses to rename javax to jakarta deliberately wanted developers to suffer in their migration

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

      Blame oracle

    • @tientcheu
      @tientcheu 5 หลายเดือนก่อน

      😂😂😂

  • @fandusmercius723
    @fandusmercius723 2 หลายเดือนก่อน

    cant we track the trace between same class @observed calling another method which is in the same class also annotated with @observed

  • @AndriusLau
    @AndriusLau 24 วันที่ผ่านมา

    Why Maven and not Gradle? :)

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

    The video looks a little bit cropped, but great content as always

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

      I'm trying to zoom into code snippets at certain points of the video. Can you tell me is it just that or are you seeing other issues?

    • @aladeli
      @aladeli ปีที่แล้ว

      @@DanVega yes it was just that

    • @srivatsascs
      @srivatsascs ปีที่แล้ว

      @@DanVega perhaps add word-wrap when punching in so that you get what you want, without losing any of the text overflowing off camera / capture area

    • @Nick-yd3rc
      @Nick-yd3rc ปีที่แล้ว

      @@DanVega that was also the case in one of your recent YT shorts btw

  • @JohnWindberg
    @JohnWindberg 8 หลายเดือนก่อน

    Anyone know how to get Spring Observability to export logs and not just traces to the otel-collecteor?

  • @konstantingromov6485
    @konstantingromov6485 9 หลายเดือนก่อน

    Hi, Dan, thanks for the video.
    Is there simplified way in new Spring observability to add and propagate both traceId and spanId across microservices?

  • @Nick-yd3rc
    @Nick-yd3rc ปีที่แล้ว +1

    Dan thanks for that, I got used to the Netflix stack, transitioned to Micrometer and otel recently, nice it’s autoconfigurable now. But did you notice your AOP-annotated bean only measured 8.7ms as opposed to over 300ms before that, when you explicitly defined the span? Any idea what the auto-configured span measures?

    • @marcingrzejszczak1716
      @marcingrzejszczak1716 ปีที่แล้ว

      Maybe the JVM was warmed up? The first request is always slower

    • @Nick-yd3rc
      @Nick-yd3rc ปีที่แล้ว

      @@marcingrzejszczak1716 sure, but that endpoint is supposed to fetch from a remote endpoint if I got it right. Unless the request was cached, it would take some 200ms for a roundtrip even after loading up all relevant execution paths, wouldn’t it?

    • @marcingrzejszczak1716
      @marcingrzejszczak1716 ปีที่แล้ว

      @@Nick-yd3rc I would have to debug this but I would be surprised if there was such a gigantic difference between AOP and code versions

  • @emmanuelgaillardon
    @emmanuelgaillardon 11 หลายเดือนก่อน

    Hello Dan. First of all, I want to tell you that I really like your videos. Always interesting.
    Regarding this topic, is it possible to enable an observation using an aspect instead of annotated the code ? Thank you.

  • @amith5504
    @amith5504 7 หลายเดือนก่อน

    how come nobody is talking about open telemetry ?

  • @suikast420
    @suikast420 7 หลายเดือนก่อน

    Awesome. The Reslient is only observed if I create it over a Bean method. Is there another way to instrument the rest client ?

  • @mdk1983
    @mdk1983 7 หลายเดือนก่อน

    Guess the co-pilot kept the video shorter than it should have been! Excellent video Dan

  • @llemieszewski
    @llemieszewski 7 หลายเดือนก่อน

    Very helpful and concise video. Thanks a lot!

  • @amiyas29
    @amiyas29 ปีที่แล้ว

    Great content! Practical live coding, latest. Thanks for your efforts

  • @adityaparikh9544
    @adityaparikh9544 6 หลายเดือนก่อน

    What is the difference between name and contextual name?

  • @JonathanStein
    @JonathanStein ปีที่แล้ว

    Been using the metrics actuator for a long while and love how easy it has become to wire in custom observability. Great tutorial!

  • @shahabetminan
    @shahabetminan ปีที่แล้ว

    Thank you for the useful content!👍

  • @MrDomiko
    @MrDomiko 6 หลายเดือนก่อน

    Two words ... Java Melody

  • @kaly7dev4873
    @kaly7dev4873 ปีที่แล้ว

    Thank you for you sharing !

  • @prithvirajan105
    @prithvirajan105 2 หลายเดือนก่อน

    Thank you so much☺

  • @medmoufahim
    @medmoufahim ปีที่แล้ว

    Hello, what is the intellij plugin that help you generate code please ? thanks

  • @jopadjr
    @jopadjr ปีที่แล้ว

    180th...Thanks Dan

  • @huutinphu4868
    @huutinphu4868 ปีที่แล้ว

    keep up the good work sir

  • @ashharr
    @ashharr ปีที่แล้ว

    what ide is that?

  • @deverse
    @deverse ปีที่แล้ว

    thanks

  • @ayed-al-nator
    @ayed-al-nator ปีที่แล้ว

    Thx 💚

  • @thevagabond85yt
    @thevagabond85yt ปีที่แล้ว

    his playlist management esp Spring Boot is a big mess.....only reason not subscribed yet.

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

      What does that even mean? I have playlists on Spring Boot, Spring Data, GraphQL, etc...

  • @FilipCodes
    @FilipCodes ปีที่แล้ว

    How are @GetExchange and @GetMapping compared?

    • @Nick-yd3rc
      @Nick-yd3rc ปีที่แล้ว

      Former for your web client which consumes a remote API, the latter for your controller which produces on your get endpoint.