Skip to content

Support traceURLs with Datadog

Administrator requested to merge dax/dd_traceURL into main

Created by: daxmc99

Add the same support for viewing traces on Sourcegraph Cloud as Grafana Part of https://github.com/sourcegraph/sourcegraph/issues/30699

Blocked on https://github.com/sourcegraph/zoekt/issues/294

Test plan

Steps to run locally:

First start the local datadog agent:

docker run -d --cgroupns host \
              -v /var/run/docker.sock:/var/run/docker.sock:ro \
              -v /proc/:/host/proc/:ro \
              -v /sys/fs/cgroup/:/host/sys/fs/cgroup:ro \
              -p 127.0.0.1:8126:8126/tcp \
              -e DD_API_KEY=<DD_API_KEY>     \
              -e DD_APM_ENABLED=true \
            gcr.io/datadoghq/agent:latest

Modify the default dev-private to set the tracer to Datadog:

   "observability.tracing": {
     "sampling": "selective",
-    "type": "opentracing"
+    "type": "datadog"
   },

Start Sourcegraph with CTAGS_COMMAND=ctags DD_ENV=dev DD_PROFILE_ALL=true sg start

Merge request reports

Loading