syntax = "proto3"; package envoy.extensions.access_loggers.open_telemetry.v3; import "envoy/extensions/access_loggers/grpc/v3/als.proto"; import "opentelemetry/proto/common/v1/common.proto"; import "udpa/annotations/status.proto"; import "validate/validate.proto"; option java_package = "io.envoyproxy.envoy.extensions.access_loggers.open_telemetry.v3"; option java_outer_classname = "LogsServiceProto"; option java_multiple_files = true; option go_package = "github.com/envoyproxy/go-control-plane/envoy/extensions/access_loggers/open_telemetry/v3;open_telemetryv3"; option (udpa.annotations.file_status).package_version_status = ACTIVE; // [#protodoc-title: OpenTelemetry (gRPC) Access Log] // Configuration for the built-in ``envoy.access_loggers.open_telemetry`` // :ref:`AccessLog `. This configuration will // populate `opentelemetry.proto.collector.v1.logs.ExportLogsServiceRequest.resource_logs `_. // In addition, the request start time is set in the dedicated field. // [#extension: envoy.access_loggers.open_telemetry] message OpenTelemetryAccessLogConfig { // [#comment:TODO(itamarkam): add 'filter_state_objects_to_log' to logs.] grpc.v3.CommonGrpcAccessLogConfig common_config = 1 [(validate.rules).message = {required: true}]; // OpenTelemetry `Resource `_ // attributes are filled with Envoy node info. // Example: ``resource_attributes { values { key: "region" value { string_value: "cn-north-7" } } }``. opentelemetry.proto.common.v1.KeyValueList resource_attributes = 4; // OpenTelemetry `LogResource `_ // fields, following `Envoy access logging formatting `_. // // See 'body' in the LogResource proto for more details. // Example: ``body { string_value: "%PROTOCOL%" }``. opentelemetry.proto.common.v1.AnyValue body = 2; // See 'attributes' in the LogResource proto for more details. // Example: ``attributes { values { key: "user_agent" value { string_value: "%REQ(USER-AGENT)%" } } }``. opentelemetry.proto.common.v1.KeyValueList attributes = 3; }