mirror of https://github.com/grpc/grpc-java.git
gcp-observability: update configuration variable to enable cloud tracing (#9463)
This commit is contained in:
parent
2a364838be
commit
20ab369f3a
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue