Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
ammario merged 1 commit intomainfrompr9411
Aug 29, 2023
Merged

feat(cli): add DataDog Go tracer#9411

ammario merged 1 commit intomainfrompr9411
Aug 29, 2023

Conversation

ammario
Copy link
Member

feat(cli): add DataDog Go tracer

Copy link
Contributor

@coadlercoadler 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())

ammario reacted with thumbs up emoji
@@ -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

@ammarioammariodisabled auto-mergeAugust 29, 2023 21:40
@ammario
Copy link
MemberAuthor

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

@ammarioammarioforce-pushed thepr9411 branch 2 times, most recently from3111e6d to3547b0eCompareAugust 29, 2023 21:53
@ammario
Copy link
MemberAuthor

3547b0e:

Added the profiler as well.

@ammarioammario merged commit16ef97a intomainAug 29, 2023
@ammarioammario deleted the pr9411 branchAugust 29, 2023 22:14
@github-actionsgithub-actionsbot locked and limited conversation to collaboratorsAug 29, 2023
Sign up for freeto subscribe to this conversation on GitHub. Already have an account?Sign in.
Reviewers

@coadlercoadlerAwaiting requested review from coadler

Assignees

@ammarioammario

Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

2 participants
@ammario@coadler

[8]ページ先頭

©2009-2025 Movatter.jp