Skip to content
Merged
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion internal-api/src/main/java/datadog/trace/api/Config.java
Original file line number Diff line number Diff line change
Expand Up @@ -4746,7 +4746,7 @@ public String getFinalProfilingUrl() {
return "https://intake.profile." + site + "/api/v2/profile";
} else {
// when profilingUrl and agentless are not set we send to the dd trace agent running locally
return "http://" + agentHost + ":" + agentPort + "/profiling/v1/input";
return getAgentUrl() + "/profiling/v1/input";
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1652,6 +1652,19 @@ class ConfigTest extends DDSpecification {
config.getFinalProfilingUrl() == "https://some.new.url/goes/here"
}

def "ipv6 profiling url"() {
setup:
def configuredUrl = "http://[2600:1f14:1cfc:5f07::38d4]:8126"
def props = new Properties()
props.setProperty(TRACE_AGENT_URL, configuredUrl)

when:
Config config = Config.get(props)

then:
config.getFinalProfilingUrl() == configuredUrl + "/profiling/v1/input"
}

def "fallback to DD_TAGS"() {
setup:
environmentVariables.set(DD_TAGS_ENV, "a:1,b:2,c:3")
Expand Down