feat(cli): add DataDog Go tracer (#9411)

This commit is contained in:
Ammar Bandukwala
2023-08-29 17:14:28 -05:00
committed by GitHub
parent 9ceba20ea4
commit 16ef97a061
11 changed files with 156 additions and 4 deletions

View File

@ -310,6 +310,7 @@ type TraceConfig struct {
Enable clibase.Bool `json:"enable" typescript:",notnull"`
HoneycombAPIKey clibase.String `json:"honeycomb_api_key" typescript:",notnull"`
CaptureLogs clibase.Bool `json:"capture_logs" typescript:",notnull"`
DataDog clibase.Bool `json:"data_dog" typescript:",notnull"`
}
type GitAuthConfig struct {
@ -1237,6 +1238,22 @@ when required by your organization's security policy.`,
YAML: "captureLogs",
Annotations: clibase.Annotations{}.Mark(annotationExternalProxies, "true"),
},
{
Name: "Send Go runtime traces to DataDog",
Description: "Enables sending Go runtime traces to the local DataDog agent.",
Flag: "trace-datadog",
Env: "CODER_TRACE_DATADOG",
Value: &c.Trace.DataDog,
Group: &deploymentGroupIntrospectionTracing,
YAML: "dataDog",
// Hidden until an external user asks for it. For the time being,
// it's used to detect leaks in dogfood.
Hidden: true,
// Default is false because datadog creates a bunch of goroutines that
// don't get cleaned up and trip the leak detector.
Default: "false",
Annotations: clibase.Annotations{}.Mark(annotationExternalProxies, "true"),
},
// Provisioner settings
{
Name: "Provisioner Daemons",