no dd.* prefix in "env" and "version" tags
MODIFY
dd-trace-api/src/main/java/datadog/trace/api/Config.java
dd-trace-api/src/main/java/datadog/trace/api/Config.java
@@ -1205,7 +1205,7 @@ public class Config {
final Map<String, String> map, final String propName) {
final String val = getSettingFromEnvironment(propName, null);
if (val != null) {
- return !val.equals(map.put(propertyNameToSystemPropertyName(propName), val));
+ return !val.equals(map.put(propName, val));
}
return false;
}

MODIFY
dd-trace-api/src/test/groovy/datadog/trace/api/ConfigTest.groovy
dd-trace-api/src/test/groovy/datadog/trace/api/ConfigTest.groovy
@@ -1246,13 +1246,13 @@ class ConfigTest extends DDSpecification {
setup:
environmentVariables.set(DD_ENV_ENV, "test_env")
environmentVariables.set(DD_VERSION_ENV, "1.2.3")
- environmentVariables.set(DD_TAGS_ENV, "dd.env:production , dd.version:3.2.1")
+ environmentVariables.set(DD_TAGS_ENV, "env:production , version:3.2.1")
when:
Config config = new Config()
then:
- config.mergedSpanTags == ["dd.env": "test_env", "dd.version": "1.2.3"]
+ config.mergedSpanTags == ["env": "test_env", "version": "1.2.3"]
}
def "propertyNameToEnvironmentVariableName unit test"() {

no dd.* prefix in "env" and "version" tags (#1378)