1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
// @generated
// This file is @generated by prost-build.
// \[#protodoc-title: OpenTelemetry (gRPC) Access Log\]
/// Configuration for the built-in ``envoy.access_loggers.open_telemetry``
/// :ref:`AccessLog <envoy_v3_api_msg_config.accesslog.v3.AccessLog>`. This configuration will
/// populate `opentelemetry.proto.collector.v1.logs.ExportLogsServiceRequest.resource_logs <<https://github.com/open-telemetry/opentelemetry-proto/blob/main/opentelemetry/proto/collector/logs/v1/logs_service.proto>`_.>
/// In addition, the request start time is set in the dedicated field.
/// \[#extension: envoy.access_loggers.open_telemetry\]
/// \[#next-free-field: 8\]
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct OpenTelemetryAccessLogConfig {
/// \[#comment:TODO(itamarkam): add 'filter_state_objects_to_log' to logs.\]
#[prost(message, optional, tag="1")]
pub common_config: ::core::option::Option<super::super::grpc::v3::CommonGrpcAccessLogConfig>,
/// If specified, Envoy will not generate built-in resource labels
/// like ``log_name``, ``zone_name``, ``cluster_name``, ``node_name``.
#[prost(bool, tag="5")]
pub disable_builtin_labels: bool,
/// OpenTelemetry `Resource <<https://github.com/open-telemetry/opentelemetry-proto/blob/main/opentelemetry/proto/logs/v1/logs.proto#L51>`_>
/// attributes are filled with Envoy node info.
/// Example: ``resource_attributes { values { key: "region" value { string_value: "cn-north-7" } } }``.
#[prost(message, optional, tag="4")]
pub resource_attributes: ::core::option::Option<super::super::super::super::super::opentelemetry::proto::common::v1::KeyValueList>,
/// OpenTelemetry `LogResource <<https://github.com/open-telemetry/opentelemetry-proto/blob/main/opentelemetry/proto/logs/v1/logs.proto>`_>
/// fields, following `Envoy access logging formatting <<https://www.envoyproxy.io/docs/envoy/latest/configuration/observability/access_log/usage>`_.>
///
/// See 'body' in the LogResource proto for more details.
/// Example: ``body { string_value: "%PROTOCOL%" }``.
#[prost(message, optional, tag="2")]
pub body: ::core::option::Option<super::super::super::super::super::opentelemetry::proto::common::v1::AnyValue>,
/// See 'attributes' in the LogResource proto for more details.
/// Example: ``attributes { values { key: "user_agent" value { string_value: "%REQ(USER-AGENT)%" } } }``.
#[prost(message, optional, tag="3")]
pub attributes: ::core::option::Option<super::super::super::super::super::opentelemetry::proto::common::v1::KeyValueList>,
/// Optional. Additional prefix to use on OpenTelemetry access logger stats. If empty, the stats will be rooted at
/// ``access_logs.open_telemetry_access_log.``. If non-empty, stats will be rooted at
/// ``access_logs.open_telemetry_access_log.<stat_prefix>.``.
#[prost(string, tag="6")]
pub stat_prefix: ::prost::alloc::string::String,
/// Specifies a collection of Formatter plugins that can be called from the access log configuration.
/// See the formatters extensions documentation for details.
/// \[#extension-category: envoy.formatter\]
#[prost(message, repeated, tag="7")]
pub formatters: ::prost::alloc::vec::Vec<super::super::super::super::config::core::v3::TypedExtensionConfig>,
}
// @@protoc_insertion_point(module)
|