| 1 |
// Code generated by protoc-gen-go. DO NOT EDIT. |
| 2 |
// versions: |
| 3 |
// protoc-gen-go v1.30.0 |
| 4 |
// protoc v5.29.1 |
| 5 |
// source: envoy/config/trace/v2/http_tracer.proto |
| 6 |
|
| 7 |
package tracev2 |
| 8 |
|
| 9 |
import ( |
| 10 |
_ "github.com/cncf/xds/go/udpa/annotations" |
| 11 |
_ "github.com/envoyproxy/protoc-gen-validate/validate" |
| 12 |
protoreflect "google.golang.org/protobuf/reflect/protoreflect" |
| 13 |
protoimpl "google.golang.org/protobuf/runtime/protoimpl" |
| 14 |
anypb "google.golang.org/protobuf/types/known/anypb" |
| 15 |
structpb "google.golang.org/protobuf/types/known/structpb" |
| 16 |
reflect "reflect" |
| 17 |
sync "sync" |
| 18 |
) |
| 19 |
|
| 20 |
const ( |
| 21 |
// Verify that this generated code is sufficiently up-to-date. |
| 22 |
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) |
| 23 |
// Verify that runtime/protoimpl is sufficiently up-to-date. |
| 24 |
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) |
| 25 |
) |
| 26 |
|
| 27 |
// The tracing configuration specifies settings for an HTTP tracer provider used by Envoy. |
| 28 |
// |
| 29 |
// Envoy may support other tracers in the future, but right now the HTTP tracer is the only one |
| 30 |
// supported. |
| 31 |
// |
| 32 |
// .. attention:: |
| 33 |
// |
| 34 |
// Use of this message type has been deprecated in favor of direct use of |
| 35 |
// :ref:`Tracing.Http <envoy_api_msg_config.trace.v2.Tracing.Http>`. |
| 36 |
type Tracing struct { |
| 37 |
state protoimpl.MessageState |
| 38 |
sizeCache protoimpl.SizeCache |
| 39 |
unknownFields protoimpl.UnknownFields |
| 40 |
|
| 41 |
// Provides configuration for the HTTP tracer. |
| 42 |
Http *Tracing_Http `protobuf:"bytes,1,opt,name=http,proto3" json:"http,omitempty"` |
| 43 |
} |
| 44 |
|
| 45 |
func (x *Tracing) Reset() { |
| 46 |
*x = Tracing{} |
| 47 |
if protoimpl.UnsafeEnabled { |
| 48 |
mi := &file_envoy_config_trace_v2_http_tracer_proto_msgTypes[0] |
| 49 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 50 |
ms.StoreMessageInfo(mi) |
| 51 |
} |
| 52 |
} |
| 53 |
|
| 54 |
func (x *Tracing) String() string { |
| 55 |
return protoimpl.X.MessageStringOf(x) |
| 56 |
} |
| 57 |
|
| 58 |
func (*Tracing) ProtoMessage() {} |
| 59 |
|
| 60 |
func (x *Tracing) ProtoReflect() protoreflect.Message { |
| 61 |
mi := &file_envoy_config_trace_v2_http_tracer_proto_msgTypes[0] |
| 62 |
if protoimpl.UnsafeEnabled && x != nil { |
| 63 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 64 |
if ms.LoadMessageInfo() == nil { |
| 65 |
ms.StoreMessageInfo(mi) |
| 66 |
} |
| 67 |
return ms |
| 68 |
} |
| 69 |
return mi.MessageOf(x) |
| 70 |
} |
| 71 |
|
| 72 |
// Deprecated: Use Tracing.ProtoReflect.Descriptor instead. |
| 73 |
func (*Tracing) Descriptor() ([]byte, []int) { |
| 74 |
return file_envoy_config_trace_v2_http_tracer_proto_rawDescGZIP(), []int{0} |
| 75 |
} |
| 76 |
|
| 77 |
func (x *Tracing) GetHttp() *Tracing_Http { |
| 78 |
if x != nil { |
| 79 |
return x.Http |
| 80 |
} |
| 81 |
return nil |
| 82 |
} |
| 83 |
|
| 84 |
// Configuration for an HTTP tracer provider used by Envoy. |
| 85 |
// |
| 86 |
// The configuration is defined by the |
| 87 |
// :ref:`HttpConnectionManager.Tracing <envoy_api_msg_config.filter.network.http_connection_manager.v2.HttpConnectionManager.Tracing>` |
| 88 |
// :ref:`provider <envoy_api_field_config.filter.network.http_connection_manager.v2.HttpConnectionManager.Tracing.provider>` |
| 89 |
// field. |
| 90 |
type Tracing_Http struct { |
| 91 |
state protoimpl.MessageState |
| 92 |
sizeCache protoimpl.SizeCache |
| 93 |
unknownFields protoimpl.UnknownFields |
| 94 |
|
| 95 |
// The name of the HTTP trace driver to instantiate. The name must match a |
| 96 |
// supported HTTP trace driver. Built-in trace drivers: |
| 97 |
// |
| 98 |
// - *envoy.tracers.lightstep* |
| 99 |
// - *envoy.tracers.zipkin* |
| 100 |
// - *envoy.tracers.dynamic_ot* |
| 101 |
// - *envoy.tracers.datadog* |
| 102 |
// - *envoy.tracers.xray* |
| 103 |
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` |
| 104 |
// Trace driver specific configuration which depends on the driver being instantiated. |
| 105 |
// See the trace drivers for examples: |
| 106 |
// |
| 107 |
// - :ref:`LightstepConfig <envoy_api_msg_config.trace.v2.LightstepConfig>` |
| 108 |
// - :ref:`ZipkinConfig <envoy_api_msg_config.trace.v2.ZipkinConfig>` |
| 109 |
// - :ref:`DynamicOtConfig <envoy_api_msg_config.trace.v2.DynamicOtConfig>` |
| 110 |
// - :ref:`DatadogConfig <envoy_api_msg_config.trace.v2.DatadogConfig>` |
| 111 |
// - :ref:`AWS X-Ray <envoy_api_msg_config.trace.v2alpha.XRayConfig>` |
| 112 |
// |
| 113 |
// Types that are assignable to ConfigType: |
| 114 |
// |
| 115 |
// *Tracing_Http_Config |
| 116 |
// *Tracing_Http_TypedConfig |
| 117 |
ConfigType isTracing_Http_ConfigType `protobuf_oneof:"config_type"` |
| 118 |
} |
| 119 |
|
| 120 |
func (x *Tracing_Http) Reset() { |
| 121 |
*x = Tracing_Http{} |
| 122 |
if protoimpl.UnsafeEnabled { |
| 123 |
mi := &file_envoy_config_trace_v2_http_tracer_proto_msgTypes[1] |
| 124 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 125 |
ms.StoreMessageInfo(mi) |
| 126 |
} |
| 127 |
} |
| 128 |
|
| 129 |
func (x *Tracing_Http) String() string { |
| 130 |
return protoimpl.X.MessageStringOf(x) |
| 131 |
} |
| 132 |
|
| 133 |
func (*Tracing_Http) ProtoMessage() {} |
| 134 |
|
| 135 |
func (x *Tracing_Http) ProtoReflect() protoreflect.Message { |
| 136 |
mi := &file_envoy_config_trace_v2_http_tracer_proto_msgTypes[1] |
| 137 |
if protoimpl.UnsafeEnabled && x != nil { |
| 138 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 139 |
if ms.LoadMessageInfo() == nil { |
| 140 |
ms.StoreMessageInfo(mi) |
| 141 |
} |
| 142 |
return ms |
| 143 |
} |
| 144 |
return mi.MessageOf(x) |
| 145 |
} |
| 146 |
|
| 147 |
// Deprecated: Use Tracing_Http.ProtoReflect.Descriptor instead. |
| 148 |
func (*Tracing_Http) Descriptor() ([]byte, []int) { |
| 149 |
return file_envoy_config_trace_v2_http_tracer_proto_rawDescGZIP(), []int{0, 0} |
| 150 |
} |
| 151 |
|
| 152 |
func (x *Tracing_Http) GetName() string { |
| 153 |
if x != nil { |
| 154 |
return x.Name |
| 155 |
} |
| 156 |
return "" |
| 157 |
} |
| 158 |
|
| 159 |
func (m *Tracing_Http) GetConfigType() isTracing_Http_ConfigType { |
| 160 |
if m != nil { |
| 161 |
return m.ConfigType |
| 162 |
} |
| 163 |
return nil |
| 164 |
} |
| 165 |
|
| 166 |
// Deprecated: Marked as deprecated in envoy/config/trace/v2/http_tracer.proto. |
| 167 |
func (x *Tracing_Http) GetConfig() *structpb.Struct { |
| 168 |
if x, ok := x.GetConfigType().(*Tracing_Http_Config); ok { |
| 169 |
return x.Config |
| 170 |
} |
| 171 |
return nil |
| 172 |
} |
| 173 |
|
| 174 |
func (x *Tracing_Http) GetTypedConfig() *anypb.Any { |
| 175 |
if x, ok := x.GetConfigType().(*Tracing_Http_TypedConfig); ok { |
| 176 |
return x.TypedConfig |
| 177 |
} |
| 178 |
return nil |
| 179 |
} |
| 180 |
|
| 181 |
type isTracing_Http_ConfigType interface { |
| 182 |
isTracing_Http_ConfigType() |
| 183 |
} |
| 184 |
|
| 185 |
type Tracing_Http_Config struct { |
| 186 |
// Deprecated: Marked as deprecated in envoy/config/trace/v2/http_tracer.proto. |
| 187 |
Config *structpb.Struct `protobuf:"bytes,2,opt,name=config,proto3,oneof"` |
| 188 |
} |
| 189 |
|
| 190 |
type Tracing_Http_TypedConfig struct { |
| 191 |
TypedConfig *anypb.Any `protobuf:"bytes,3,opt,name=typed_config,json=typedConfig,proto3,oneof"` |
| 192 |
} |
| 193 |
|
| 194 |
func (*Tracing_Http_Config) isTracing_Http_ConfigType() {} |
| 195 |
|
| 196 |
func (*Tracing_Http_TypedConfig) isTracing_Http_ConfigType() {} |
| 197 |
|
| 198 |
var File_envoy_config_trace_v2_http_tracer_proto protoreflect.FileDescriptor |
| 199 |
|
| 200 |
var file_envoy_config_trace_v2_http_tracer_proto_rawDesc = []byte{ |
| 201 |
0x0a, 0x27, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f, 0x74, |
| 202 |
0x72, 0x61, 0x63, 0x65, 0x2f, 0x76, 0x32, 0x2f, 0x68, 0x74, 0x74, 0x70, 0x5f, 0x74, 0x72, 0x61, |
| 203 |
0x63, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x15, 0x65, 0x6e, 0x76, 0x6f, 0x79, |
| 204 |
0x2e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x74, 0x72, 0x61, 0x63, 0x65, 0x2e, 0x76, 0x32, |
| 205 |
0x1a, 0x19, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, |
| 206 |
0x66, 0x2f, 0x61, 0x6e, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, |
| 207 |
0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x73, 0x74, 0x72, |
| 208 |
0x75, 0x63, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1d, 0x75, 0x64, 0x70, 0x61, 0x2f, |
| 209 |
0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x73, 0x74, 0x61, 0x74, |
| 210 |
0x75, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x17, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, |
| 211 |
0x74, 0x65, 0x2f, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, |
| 212 |
0x6f, 0x22, 0xe9, 0x01, 0x0a, 0x07, 0x54, 0x72, 0x61, 0x63, 0x69, 0x6e, 0x67, 0x12, 0x37, 0x0a, |
| 213 |
0x04, 0x68, 0x74, 0x74, 0x70, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x65, 0x6e, |
| 214 |
0x76, 0x6f, 0x79, 0x2e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x74, 0x72, 0x61, 0x63, 0x65, |
| 215 |
0x2e, 0x76, 0x32, 0x2e, 0x54, 0x72, 0x61, 0x63, 0x69, 0x6e, 0x67, 0x2e, 0x48, 0x74, 0x74, 0x70, |
| 216 |
0x52, 0x04, 0x68, 0x74, 0x74, 0x70, 0x1a, 0xa4, 0x01, 0x0a, 0x04, 0x48, 0x74, 0x74, 0x70, 0x12, |
| 217 |
0x1b, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x07, 0xfa, |
| 218 |
0x42, 0x04, 0x72, 0x02, 0x20, 0x01, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x35, 0x0a, 0x06, |
| 219 |
0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x67, |
| 220 |
0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, |
| 221 |
0x74, 0x72, 0x75, 0x63, 0x74, 0x42, 0x02, 0x18, 0x01, 0x48, 0x00, 0x52, 0x06, 0x63, 0x6f, 0x6e, |
| 222 |
0x66, 0x69, 0x67, 0x12, 0x39, 0x0a, 0x0c, 0x74, 0x79, 0x70, 0x65, 0x64, 0x5f, 0x63, 0x6f, 0x6e, |
| 223 |
0x66, 0x69, 0x67, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x6f, 0x6f, 0x67, |
| 224 |
0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x41, 0x6e, 0x79, 0x48, |
| 225 |
0x00, 0x52, 0x0b, 0x74, 0x79, 0x70, 0x65, 0x64, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x42, 0x0d, |
| 226 |
0x0a, 0x0b, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x42, 0x86, 0x01, |
| 227 |
0xba, 0x80, 0xc8, 0xd1, 0x06, 0x02, 0x10, 0x01, 0x0a, 0x23, 0x69, 0x6f, 0x2e, 0x65, 0x6e, 0x76, |
| 228 |
0x6f, 0x79, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x63, 0x6f, |
| 229 |
0x6e, 0x66, 0x69, 0x67, 0x2e, 0x74, 0x72, 0x61, 0x63, 0x65, 0x2e, 0x76, 0x32, 0x42, 0x0f, 0x48, |
| 230 |
0x74, 0x74, 0x70, 0x54, 0x72, 0x61, 0x63, 0x65, 0x72, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, |
| 231 |
0x5a, 0x44, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x65, 0x6e, 0x76, |
| 232 |
0x6f, 0x79, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2f, 0x67, 0x6f, 0x2d, 0x63, 0x6f, 0x6e, 0x74, 0x72, |
| 233 |
0x6f, 0x6c, 0x2d, 0x70, 0x6c, 0x61, 0x6e, 0x65, 0x2f, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2f, 0x63, |
| 234 |
0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f, 0x74, 0x72, 0x61, 0x63, 0x65, 0x2f, 0x76, 0x32, 0x3b, 0x74, |
| 235 |
0x72, 0x61, 0x63, 0x65, 0x76, 0x32, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, |
| 236 |
} |
| 237 |
|
| 238 |
var ( |
| 239 |
file_envoy_config_trace_v2_http_tracer_proto_rawDescOnce sync.Once |
| 240 |
file_envoy_config_trace_v2_http_tracer_proto_rawDescData = file_envoy_config_trace_v2_http_tracer_proto_rawDesc |
| 241 |
) |
| 242 |
|
| 243 |
func file_envoy_config_trace_v2_http_tracer_proto_rawDescGZIP() []byte { |
| 244 |
file_envoy_config_trace_v2_http_tracer_proto_rawDescOnce.Do(func() { |
| 245 |
file_envoy_config_trace_v2_http_tracer_proto_rawDescData = protoimpl.X.CompressGZIP(file_envoy_config_trace_v2_http_tracer_proto_rawDescData) |
| 246 |
}) |
| 247 |
return file_envoy_config_trace_v2_http_tracer_proto_rawDescData |
| 248 |
} |
| 249 |
|
| 250 |
var file_envoy_config_trace_v2_http_tracer_proto_msgTypes = make([]protoimpl.MessageInfo, 2) |
| 251 |
var file_envoy_config_trace_v2_http_tracer_proto_goTypes = []interface{}{ |
| 252 |
(*Tracing)(nil), // 0: envoy.config.trace.v2.Tracing |
| 253 |
(*Tracing_Http)(nil), // 1: envoy.config.trace.v2.Tracing.Http |
| 254 |
(*structpb.Struct)(nil), // 2: google.protobuf.Struct |
| 255 |
(*anypb.Any)(nil), // 3: google.protobuf.Any |
| 256 |
} |
| 257 |
var file_envoy_config_trace_v2_http_tracer_proto_depIdxs = []int32{ |
| 258 |
1, // 0: envoy.config.trace.v2.Tracing.http:type_name -> envoy.config.trace.v2.Tracing.Http |
| 259 |
2, // 1: envoy.config.trace.v2.Tracing.Http.config:type_name -> google.protobuf.Struct |
| 260 |
3, // 2: envoy.config.trace.v2.Tracing.Http.typed_config:type_name -> google.protobuf.Any |
| 261 |
3, // [3:3] is the sub-list for method output_type |
| 262 |
3, // [3:3] is the sub-list for method input_type |
| 263 |
3, // [3:3] is the sub-list for extension type_name |
| 264 |
3, // [3:3] is the sub-list for extension extendee |
| 265 |
0, // [0:3] is the sub-list for field type_name |
| 266 |
} |
| 267 |
|
| 268 |
func init() { file_envoy_config_trace_v2_http_tracer_proto_init() } |
| 269 |
func file_envoy_config_trace_v2_http_tracer_proto_init() { |
| 270 |
if File_envoy_config_trace_v2_http_tracer_proto != nil { |
| 271 |
return |
| 272 |
} |
| 273 |
if !protoimpl.UnsafeEnabled { |
| 274 |
file_envoy_config_trace_v2_http_tracer_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { |
| 275 |
switch v := v.(*Tracing); i { |
| 276 |
case 0: |
| 277 |
return &v.state |
| 278 |
case 1: |
| 279 |
return &v.sizeCache |
| 280 |
case 2: |
| 281 |
return &v.unknownFields |
| 282 |
default: |
| 283 |
return nil |
| 284 |
} |
| 285 |
} |
| 286 |
file_envoy_config_trace_v2_http_tracer_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { |
| 287 |
switch v := v.(*Tracing_Http); i { |
| 288 |
case 0: |
| 289 |
return &v.state |
| 290 |
case 1: |
| 291 |
return &v.sizeCache |
| 292 |
case 2: |
| 293 |
return &v.unknownFields |
| 294 |
default: |
| 295 |
return nil |
| 296 |
} |
| 297 |
} |
| 298 |
} |
| 299 |
file_envoy_config_trace_v2_http_tracer_proto_msgTypes[1].OneofWrappers = []interface{}{ |
| 300 |
(*Tracing_Http_Config)(nil), |
| 301 |
(*Tracing_Http_TypedConfig)(nil), |
| 302 |
} |
| 303 |
type x struct{} |
| 304 |
out := protoimpl.TypeBuilder{ |
| 305 |
File: protoimpl.DescBuilder{ |
| 306 |
GoPackagePath: reflect.TypeOf(x{}).PkgPath(), |
| 307 |
RawDescriptor: file_envoy_config_trace_v2_http_tracer_proto_rawDesc, |
| 308 |
NumEnums: 0, |
| 309 |
NumMessages: 2, |
| 310 |
NumExtensions: 0, |
| 311 |
NumServices: 0, |
| 312 |
}, |
| 313 |
GoTypes: file_envoy_config_trace_v2_http_tracer_proto_goTypes, |
| 314 |
DependencyIndexes: file_envoy_config_trace_v2_http_tracer_proto_depIdxs, |
| 315 |
MessageInfos: file_envoy_config_trace_v2_http_tracer_proto_msgTypes, |
| 316 |
}.Build() |
| 317 |
File_envoy_config_trace_v2_http_tracer_proto = out.File |
| 318 |
file_envoy_config_trace_v2_http_tracer_proto_rawDesc = nil |
| 319 |
file_envoy_config_trace_v2_http_tracer_proto_goTypes = nil |
| 320 |
file_envoy_config_trace_v2_http_tracer_proto_depIdxs = nil |
| 321 |
} |