Documentation ¶
Index ¶
- Variables
- type OpenTelemetryAccessLogConfig
- func (x *OpenTelemetryAccessLogConfig) ClearAttributes()
- func (x *OpenTelemetryAccessLogConfig) ClearBody()
- func (x *OpenTelemetryAccessLogConfig) ClearCommonConfig()
- func (x *OpenTelemetryAccessLogConfig) ClearResourceAttributes()
- func (x *OpenTelemetryAccessLogConfig) GetAttributes() *v1.KeyValueList
- func (x *OpenTelemetryAccessLogConfig) GetBody() *v1.AnyValue
- func (x *OpenTelemetryAccessLogConfig) GetCommonConfig() *v3.CommonGrpcAccessLogConfig
- func (x *OpenTelemetryAccessLogConfig) GetDisableBuiltinLabels() bool
- func (x *OpenTelemetryAccessLogConfig) GetResourceAttributes() *v1.KeyValueList
- func (x *OpenTelemetryAccessLogConfig) HasAttributes() bool
- func (x *OpenTelemetryAccessLogConfig) HasBody() bool
- func (x *OpenTelemetryAccessLogConfig) HasCommonConfig() bool
- func (x *OpenTelemetryAccessLogConfig) HasResourceAttributes() bool
- func (*OpenTelemetryAccessLogConfig) ProtoMessage()
- func (x *OpenTelemetryAccessLogConfig) ProtoReflect() protoreflect.Message
- func (x *OpenTelemetryAccessLogConfig) Reset()
- func (x *OpenTelemetryAccessLogConfig) SetAttributes(v *v1.KeyValueList)
- func (x *OpenTelemetryAccessLogConfig) SetBody(v *v1.AnyValue)
- func (x *OpenTelemetryAccessLogConfig) SetCommonConfig(v *v3.CommonGrpcAccessLogConfig)
- func (x *OpenTelemetryAccessLogConfig) SetDisableBuiltinLabels(v bool)
- func (x *OpenTelemetryAccessLogConfig) SetResourceAttributes(v *v1.KeyValueList)
- func (x *OpenTelemetryAccessLogConfig) String() string
- type OpenTelemetryAccessLogConfig_builder
Constants ¶
This section is empty.
Variables ¶
View Source
var File_envoy_extensions_access_loggers_open_telemetry_v3_logs_service_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type OpenTelemetryAccessLogConfig ¶
type OpenTelemetryAccessLogConfig struct { // [#comment:TODO(itamarkam): add 'filter_state_objects_to_log' to logs.] CommonConfig *v3.CommonGrpcAccessLogConfig `protobuf:"bytes,1,opt,name=common_config,json=commonConfig,proto3" json:"common_config,omitempty"` // If specified, Envoy will not generate built-in resource labels // like “log_name“, “zone_name“, “cluster_name“, “node_name“. DisableBuiltinLabels bool `protobuf:"varint,5,opt,name=disable_builtin_labels,json=disableBuiltinLabels,proto3" json:"disable_builtin_labels,omitempty"` // 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" } } }“. ResourceAttributes *v1.KeyValueList `protobuf:"bytes,4,opt,name=resource_attributes,json=resourceAttributes,proto3" json:"resource_attributes,omitempty"` // 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%" }“. Body *v1.AnyValue `protobuf:"bytes,2,opt,name=body,proto3" json:"body,omitempty"` // See 'attributes' in the LogResource proto for more details. // Example: “attributes { values { key: "user_agent" value { string_value: "%REQ(USER-AGENT)%" } } }“. Attributes *v1.KeyValueList `protobuf:"bytes,3,opt,name=attributes,proto3" json:"attributes,omitempty"` // contains filtered or unexported fields }
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: 6]
func (*OpenTelemetryAccessLogConfig) ClearAttributes ¶
func (x *OpenTelemetryAccessLogConfig) ClearAttributes()
func (*OpenTelemetryAccessLogConfig) ClearBody ¶
func (x *OpenTelemetryAccessLogConfig) ClearBody()
func (*OpenTelemetryAccessLogConfig) ClearCommonConfig ¶
func (x *OpenTelemetryAccessLogConfig) ClearCommonConfig()
func (*OpenTelemetryAccessLogConfig) ClearResourceAttributes ¶
func (x *OpenTelemetryAccessLogConfig) ClearResourceAttributes()
func (*OpenTelemetryAccessLogConfig) GetAttributes ¶
func (x *OpenTelemetryAccessLogConfig) GetAttributes() *v1.KeyValueList
func (*OpenTelemetryAccessLogConfig) GetBody ¶
func (x *OpenTelemetryAccessLogConfig) GetBody() *v1.AnyValue
func (*OpenTelemetryAccessLogConfig) GetCommonConfig ¶
func (x *OpenTelemetryAccessLogConfig) GetCommonConfig() *v3.CommonGrpcAccessLogConfig
func (*OpenTelemetryAccessLogConfig) GetDisableBuiltinLabels ¶
func (x *OpenTelemetryAccessLogConfig) GetDisableBuiltinLabels() bool
func (*OpenTelemetryAccessLogConfig) GetResourceAttributes ¶
func (x *OpenTelemetryAccessLogConfig) GetResourceAttributes() *v1.KeyValueList
func (*OpenTelemetryAccessLogConfig) HasAttributes ¶
func (x *OpenTelemetryAccessLogConfig) HasAttributes() bool
func (*OpenTelemetryAccessLogConfig) HasBody ¶
func (x *OpenTelemetryAccessLogConfig) HasBody() bool
func (*OpenTelemetryAccessLogConfig) HasCommonConfig ¶
func (x *OpenTelemetryAccessLogConfig) HasCommonConfig() bool
func (*OpenTelemetryAccessLogConfig) HasResourceAttributes ¶
func (x *OpenTelemetryAccessLogConfig) HasResourceAttributes() bool
func (*OpenTelemetryAccessLogConfig) ProtoMessage ¶
func (*OpenTelemetryAccessLogConfig) ProtoMessage()
func (*OpenTelemetryAccessLogConfig) ProtoReflect ¶
func (x *OpenTelemetryAccessLogConfig) ProtoReflect() protoreflect.Message
func (*OpenTelemetryAccessLogConfig) Reset ¶
func (x *OpenTelemetryAccessLogConfig) Reset()
func (*OpenTelemetryAccessLogConfig) SetAttributes ¶
func (x *OpenTelemetryAccessLogConfig) SetAttributes(v *v1.KeyValueList)
func (*OpenTelemetryAccessLogConfig) SetBody ¶
func (x *OpenTelemetryAccessLogConfig) SetBody(v *v1.AnyValue)
func (*OpenTelemetryAccessLogConfig) SetCommonConfig ¶
func (x *OpenTelemetryAccessLogConfig) SetCommonConfig(v *v3.CommonGrpcAccessLogConfig)
func (*OpenTelemetryAccessLogConfig) SetDisableBuiltinLabels ¶
func (x *OpenTelemetryAccessLogConfig) SetDisableBuiltinLabels(v bool)
func (*OpenTelemetryAccessLogConfig) SetResourceAttributes ¶
func (x *OpenTelemetryAccessLogConfig) SetResourceAttributes(v *v1.KeyValueList)
func (*OpenTelemetryAccessLogConfig) String ¶
func (x *OpenTelemetryAccessLogConfig) String() string
type OpenTelemetryAccessLogConfig_builder ¶
type OpenTelemetryAccessLogConfig_builder struct { // [#comment:TODO(itamarkam): add 'filter_state_objects_to_log' to logs.] CommonConfig *v3.CommonGrpcAccessLogConfig // If specified, Envoy will not generate built-in resource labels // like “log_name“, “zone_name“, “cluster_name“, “node_name“. DisableBuiltinLabels 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" } } }“. ResourceAttributes *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%" }“. Body *v1.AnyValue // See 'attributes' in the LogResource proto for more details. // Example: “attributes { values { key: "user_agent" value { string_value: "%REQ(USER-AGENT)%" } } }“. Attributes *v1.KeyValueList // contains filtered or unexported fields }
func (OpenTelemetryAccessLogConfig_builder) Build ¶
func (b0 OpenTelemetryAccessLogConfig_builder) Build() *OpenTelemetryAccessLogConfig
Click to show internal directories.
Click to hide internal directories.