gcp-observability: update configuration variable to enable cloud tracing (#9463)

This commit is contained in:
DNVindhya 2022-08-19 17:09:17 -07:00 committed by GitHub
parent 2a364838be
commit 20ab369f3a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 6 deletions

View File

@ -82,7 +82,7 @@ final class ObservabilityConfigImpl implements ObservabilityConfig {
if (value != null) {
enableCloudMonitoring = value;
}
value = JsonUtil.getBoolean(config, "enable_cloud_tracing");
value = JsonUtil.getBoolean(config, "enable_cloud_trace");
if (value != null) {
enableCloudTracing = value;
}

View File

@ -80,26 +80,26 @@ public class ObservabilityConfigImplTest {
private static final String ENABLE_CLOUD_MONITORING_AND_TRACING = "{\n"
+ " \"enable_cloud_monitoring\": true,\n"
+ " \"enable_cloud_tracing\": true\n"
+ " \"enable_cloud_trace\": true\n"
+ "}";
private static final String GLOBAL_TRACING_ALWAYS_SAMPLER = "{\n"
+ " \"enable_cloud_tracing\": true,\n"
+ " \"enable_cloud_trace\": true,\n"
+ " \"global_trace_sampling_rate\": 1.00\n"
+ "}";
private static final String GLOBAL_TRACING_NEVER_SAMPLER = "{\n"
+ " \"enable_cloud_tracing\": true,\n"
+ " \"enable_cloud_trace\": true,\n"
+ " \"global_trace_sampling_rate\": 0.00\n"
+ "}";
private static final String GLOBAL_TRACING_PROBABILISTIC_SAMPLER = "{\n"
+ " \"enable_cloud_tracing\": true,\n"
+ " \"enable_cloud_trace\": true,\n"
+ " \"global_trace_sampling_rate\": 0.75\n"
+ "}";
private static final String GLOBAL_TRACING_DEFAULT_SAMPLER = "{\n"
+ " \"enable_cloud_tracing\": true\n"
+ " \"enable_cloud_trace\": true\n"
+ "}";
private static final String GLOBAL_TRACING_BADPROBABILISTIC_SAMPLER = "{\n"