Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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