accesslog: disable resource labels (#28046)

Commit Message: add configuration for disable envoy builtin resource lables
Additional Description:
Risk Level: low
Testing: yes
Docs Changes: no
Release Notes: no

Mirrored from https://github.com/envoyproxy/envoy @ 313cd362a23f3212c516278be5d979edb6db70c7
main
update-envoy[bot] 1 year ago
parent 21e6cedf68
commit 8ef84063a2
  1. 5
      envoy/extensions/access_loggers/open_telemetry/v3/logs_service.proto

@ -22,10 +22,15 @@ option (udpa.annotations.file_status).package_version_status = ACTIVE;
// 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: 6]
message OpenTelemetryAccessLogConfig {
// [#comment:TODO(itamarkam): add 'filter_state_objects_to_log' to logs.]
grpc.v3.CommonGrpcAccessLogConfig common_config = 1 [(validate.rules).message = {required: true}];
// If specified, Envoy will not generate built-in resource labels
// like ``log_name``, ``zone_name``, ``cluster_name``, ``node_name``.
bool disable_builtin_labels = 5;
// 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" } } }``.

Loading…
Cancel
Save