syntax = "proto3";

package envoy.extensions.tracers.opentelemetry.samplers.v3;

import "xds/annotations/v3/status.proto";
import "xds/type/v3/cel.proto";

import "udpa/annotations/status.proto";

option java_package = "io.envoyproxy.envoy.extensions.tracers.opentelemetry.samplers.v3";
option java_outer_classname = "CelSamplerProto";
option java_multiple_files = true;
option go_package = "github.com/envoyproxy/go-control-plane/envoy/extensions/tracers/opentelemetry/samplers/v3;samplersv3";
option (udpa.annotations.file_status).package_version_status = ACTIVE;

// [#protodoc-title: "CEL" Sampler config]
// Configuration for the "CEL" Sampler extension.
//
// [#extension: envoy.tracers.opentelemetry.samplers.cel]

message CELSamplerConfig {
  // Expression that, when evaluated, will be used to make sample decision.
  xds.type.v3.CelExpression expression = 1
      [(xds.annotations.v3.field_status).work_in_progress = true];
}
