Skip to content

Commit

Permalink
Latest dynamic-config schema changes (#5481)
Browse files Browse the repository at this point in the history
  • Loading branch information
mcculls authored Jun 27, 2023
1 parent 2bade29 commit 768b145
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class DynamicServiceMappingSmokeTest extends AbstractSmokeTest {
{
"lib_config": {
"tracing_service_mapping": [{
"from_name": "${ServiceMappingApplication.ORIGINAL_SERVICE_NAME}",
"from_key": "${ServiceMappingApplication.ORIGINAL_SERVICE_NAME}",
"to_name": "${ServiceMappingApplication.MAPPED_SERVICE_NAME}"
}]
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ abstract class LogInjectionSmokeTest extends AbstractSmokeTest {

def newConfig = """
{"lib_config":
{"logs_injection_enabled":false}
{"log_injection_enabled":false}
}
""".toString()
setRemoteConfig("datadog/2/APM_TRACING/config_overrides/config", newConfig)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ static final class LibConfig {
@Json(name = "runtime_metrics_enabled")
public Boolean runtimeMetricsEnabled;

@Json(name = "logs_injection_enabled")
@Json(name = "log_injection_enabled")
public Boolean logsInjectionEnabled;

@Json(name = "data_streams_enabled")
Expand All @@ -142,15 +142,15 @@ static final class LibConfig {
}

static final class ServiceMappingEntry implements Map.Entry<String, String> {
@Json(name = "from_name")
public String fromName;
@Json(name = "from_key")
public String fromKey;

@Json(name = "to_name")
public String toName;

@Override
public String getKey() {
return fromName;
return fromKey;
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -438,10 +438,10 @@ class CoreTracerTest extends DDCoreSpecification {
{
"tracing_service_mapping":
[{
"from_name": "foobar",
"from_key": "foobar",
"to_name": "bar"
}, {
"from_name": "snafu",
"from_key": "snafu",
"to_name": "foo"
}]
,
Expand Down

0 comments on commit 768b145

Please sign in to comment.