Giter Site home page Giter Site logo

Comments (2)

jonatan-ivanov avatar jonatan-ivanov commented on September 25, 2024 1

Hey Colin,

Disclaimer: I'm a member of the Spring Observability team. I haven’t tried this with Datadog but it should work since Datadog should have support to one of the tracing data formats that we support.

Spring has its own instrumentation that you can leverage regardless of your backend.
Spring projects instrument themselves "natively" using Micrometer. More accurately, using Micrometer’s Observation API that gives you support for metrics and tracing (and more).

The tracing support is implemented via Micrometer Tracing. You can imagine it like SLF4J but for tracing: it has a simple API that let’s you plug Tracing libs in and out. The two supported libs are Brave and OpenTelemetry. Brave only supports the Zipkin format but as far as I know Datadog does not support it (this might have changed) but OpenTelemetry supports more exporters for example OTLP which is supported by Datadog as far as I know.

What you will need:

  • spring-boot-starter-actuator
  • micrometer-tracing-bridge-otel
  • An exporter that is supported by Datadog, e.g.: opentelemetry-exporter-otlp

Here’s a working sample that sets almost everything up for you, except it uses a different exporter. Right now the OTLP exporter is not auto-configured in Boot so you need to create a bean manually but I already have a PR for this, hopefully it will make it to Boot 3.1. Though, since it should be simple to set this up with OTLP (“just” bean creation), please feel free to try it out with the OTLP exporter. Since we fixed AOT metadata in OTel, this should work with AOT too.

from spring-boot-3-aot.

colin-riddell avatar colin-riddell commented on September 25, 2024 1

hey @jonatan-ivanov - apologies for the late response to this.

this is really useful and I appreciate your the time you taken to contribute this. . I'm still working away on this in the background, so will keep the thread open and post updates so others can get even more value from it.

from spring-boot-3-aot.

Related Issues (5)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.