Comments (2)
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.
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from spring-boot-3-aot.