Skip to content

Commit

Permalink
Fix debugger batch upload URL when using UDS (#7166)
Browse files Browse the repository at this point in the history
  • Loading branch information
mcculls committed Jun 12, 2024
1 parent 54461ee commit 222ce2c
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions internal-api/src/main/java/datadog/trace/api/Config.java
Original file line number Diff line number Diff line change
Expand Up @@ -3326,18 +3326,21 @@ public Set<String> getThirdPartyExcludes() {
return debuggerThirdPartyExcludes;
}

public String getFinalDebuggerProbeUrl() {
// by default poll from datadog agent
return "http://" + agentHost + ":" + agentPort;
private String getFinalDebuggerBaseUrl() {
if (agentUrl.startsWith("unix:")) {
// provide placeholder agent URL, in practice we'll be tunnelling over UDS
return "http://" + agentHost + ":" + agentPort;
} else {
return agentUrl;
}
}

public String getFinalDebuggerSnapshotUrl() {
// by default send to datadog agent
return agentUrl + "/debugger/v1/input";
return getFinalDebuggerBaseUrl() + "/debugger/v1/input";
}

public String getFinalDebuggerSymDBUrl() {
return agentUrl + "/symdb/v1/input";
return getFinalDebuggerBaseUrl() + "/symdb/v1/input";
}

public String getDebuggerProbeFileLocation() {
Expand Down

0 comments on commit 222ce2c

Please sign in to comment.