syntax = "proto3";

package tensorflow.serving;
option cc_enable_arenas = true;

import "tensorflow_serving/config/log_collector_config.proto";

message SamplingConfig {
  // Requests will be logged uniformly at random with this probability. Valid
  // range: [0, 1.0].
  double sampling_rate = 1;
}

// Configuration for logging query/responses.
message LoggingConfig {
  LogCollectorConfig log_collector_config = 1;
  SamplingConfig sampling_config = 2;
}
