I have a small proof-of-concept project to add DataDog APM/tracing capabilities to a gofiber (https://github.com/gofiber) web app. The app is up and running in an EKS environment which already has strong DataDog integration (agent, APM enabled for entire cluster, etc).
I am still learning the ropes with gofiber. My question is, what is the simplest and most efficient way to add the tracer and profile to my project?
DataDog is recommending these two packages:
go get gopkg.in/DataDog/dd-trace-go.v1/ddtrace/tracer
go get gopkg.in/DataDog/dd-trace-go.v1/profiler
Currently I have a simple main.go
file serving "Hello World" at /, using one of the gofiber recipes.
Can I add the tracer and profile as separate functions in the same file or should I have separate files for these in my project?
Definitely trying to avoid running an entirely separate container in my pod for this tracing capability. Thanks for any advice or suggestions.