Skip to content

feat(cli): add DataDog Go tracer #9411

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 29, 2023
Merged

feat(cli): add DataDog Go tracer #9411

merged 1 commit into from
Aug 29, 2023

Conversation

ammario
Copy link
Member

@ammario ammario commented Aug 29, 2023

feat(cli): add DataDog Go tracer

Copy link
Contributor

@coadler coadler left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should already be getting this info from prometheus btw, unless dd's APM thingy is better. We also are already using the default exporter to export to the dd agent so make sure to disable that on dogfood so it's not sending twice.

if opts.DataDog {
// See more:
// https://docs.datadoghq.com/tracing/metrics/runtime_metrics/go/
dd := ddotel.NewTracerProvider()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you need something like this to actually enable runtime metrics, according to your link

import ddtracer "gopkg.in/DataDog/dd-trace-go.v1/ddtrace/tracer"

dd := ddotel.NewTracerProvider(ddtracer.WithRuntimeMetrics())

@@ -24,7 +26,8 @@ type TracerOpts struct {
Default bool
// Coder exports traces to Coder's public tracing ingest service and is used
// to improve the product. It is disabled when opting out of telemetry.
Coder bool
Coder bool
DataDog bool
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should add a comment

@ammario ammario disabled auto-merge August 29, 2023 21:40
@ammario
Copy link
Member Author

ammario commented Aug 29, 2023

@coadler - is there a place is datadog where the Go runtime information (e.g. goroutines) is already being reported? I couldn't find it.

@ammario ammario force-pushed the pr9411 branch 2 times, most recently from 3111e6d to 3547b0e Compare August 29, 2023 21:53
@ammario
Copy link
Member Author

ammario commented Aug 29, 2023

3547b0e:

Added the profiler as well.

@ammario ammario requested a review from coadler August 29, 2023 21:53
@ammario ammario enabled auto-merge (squash) August 29, 2023 22:00
@ammario ammario merged commit 16ef97a into main Aug 29, 2023
@ammario ammario deleted the pr9411 branch August 29, 2023 22:14
@github-actions github-actions bot locked and limited conversation to collaborators Aug 29, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants