A Golang Project using Gin, OpenTelemetry, and Datadog.
Idea
I saw some examples, but they were missing parts, so I decided to create one that could give me an overview.
⚠️ The only update that this code might have is related to logs. I'm still trying to see other ways.
What we have here
OpenTelemetry Collector
Datadog Agent
Golang code Instrumented.
I decided to keep only the minimum necessary so you don't have to worry about the load of knowledge at once.
How it works
Why I need the Collector
The OpenTelemetry Collector offers a vendor-agnostic implementation of how to receive, process and export telemetry data.
It removes the need to run, operate, and maintain multiple agents/collectors.
Datadog offers the dd_trace library, which can help you get your traces done and communicate directly with the Datadog Agent, but this is vendor lock-in.
If that is not a problem, go forward and implement using dd_trace.