Debian Codegraph @

envoy/config/trace/v3/opentelemetry.pb.go

raw
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/v3/opentelemetry.proto
6
7 package tracev3
8
9 import (
10 _ "github.com/cncf/xds/go/udpa/annotations"
11 v3 "github.com/envoyproxy/go-control-plane/envoy/config/core/v3"
12 protoreflect "google.golang.org/protobuf/reflect/protoreflect"
13 protoimpl "google.golang.org/protobuf/runtime/protoimpl"
14 reflect "reflect"
15 sync "sync"
16 )
17
18 const (
19 // Verify that this generated code is sufficiently up-to-date.
20 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
21 // Verify that runtime/protoimpl is sufficiently up-to-date.
22 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
23 )
24
25 // Configuration for the OpenTelemetry tracer.
26 //
27 // [#extension: envoy.tracers.opentelemetry]
28 //
29 // [#next-free-field: 6]
30 type OpenTelemetryConfig struct {
31 state protoimpl.MessageState
32 sizeCache protoimpl.SizeCache
33 unknownFields protoimpl.UnknownFields
34
35 // The upstream gRPC cluster that will receive OTLP traces.
36 // Note that the tracer drops traces if the server does not read data fast enough.
37 // This field can be left empty to disable reporting traces to the gRPC service.
38 // Only one of “grpc_service“, “http_service“ may be used.
39 GrpcService *v3.GrpcService `protobuf:"bytes,1,opt,name=grpc_service,json=grpcService,proto3" json:"grpc_service,omitempty"`
40 // The upstream HTTP cluster that will receive OTLP traces.
41 // This field can be left empty to disable reporting traces to the HTTP service.
42 // Only one of “grpc_service“, “http_service“ may be used.
43 //
44 // .. note::
45 //
46 // Note: The ``request_headers_to_add`` property in the OTLP HTTP exporter service
47 // does not support the :ref:`format specifier <config_access_log_format>` as used for
48 // :ref:`HTTP access logging <config_access_log>`.
49 // The values configured are added as HTTP headers on the OTLP export request
50 // without any formatting applied.
51 HttpService *v3.HttpService `protobuf:"bytes,3,opt,name=http_service,json=httpService,proto3" json:"http_service,omitempty"`
52 // The name for the service. This will be populated in the ResourceSpan Resource attributes.
53 // If it is not provided, it will default to "unknown_service:envoy".
54 ServiceName string `protobuf:"bytes,2,opt,name=service_name,json=serviceName,proto3" json:"service_name,omitempty"`
55 // An ordered list of resource detectors
56 // [#extension-category: envoy.tracers.opentelemetry.resource_detectors]
57 ResourceDetectors []*v3.TypedExtensionConfig `protobuf:"bytes,4,rep,name=resource_detectors,json=resourceDetectors,proto3" json:"resource_detectors,omitempty"`
58 // Specifies the sampler to be used by the OpenTelemetry tracer.
59 // The configured sampler implements the Sampler interface defined by the OpenTelemetry specification.
60 // This field can be left empty. In this case, the default Envoy sampling decision is used.
61 //
62 // See: `OpenTelemetry sampler specification <https://opentelemetry.io/docs/specs/otel/trace/sdk/#sampler>`_
63 // [#extension-category: envoy.tracers.opentelemetry.samplers]
64 Sampler *v3.TypedExtensionConfig `protobuf:"bytes,5,opt,name=sampler,proto3" json:"sampler,omitempty"`
65 }
66
67 func (x *OpenTelemetryConfig) Reset() {
68 *x = OpenTelemetryConfig{}
69 if protoimpl.UnsafeEnabled {
70 mi := &file_envoy_config_trace_v3_opentelemetry_proto_msgTypes[0]
71 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
72 ms.StoreMessageInfo(mi)
73 }
74 }
75
76 func (x *OpenTelemetryConfig) String() string {
77 return protoimpl.X.MessageStringOf(x)
78 }
79
80 func (*OpenTelemetryConfig) ProtoMessage() {}
81
82 func (x *OpenTelemetryConfig) ProtoReflect() protoreflect.Message {
83 mi := &file_envoy_config_trace_v3_opentelemetry_proto_msgTypes[0]
84 if protoimpl.UnsafeEnabled && x != nil {
85 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
86 if ms.LoadMessageInfo() == nil {
87 ms.StoreMessageInfo(mi)
88 }
89 return ms
90 }
91 return mi.MessageOf(x)
92 }
93
94 // Deprecated: Use OpenTelemetryConfig.ProtoReflect.Descriptor instead.
95 func (*OpenTelemetryConfig) Descriptor() ([]byte, []int) {
96 return file_envoy_config_trace_v3_opentelemetry_proto_rawDescGZIP(), []int{0}
97 }
98
99 func (x *OpenTelemetryConfig) GetGrpcService() *v3.GrpcService {
100 if x != nil {
101 return x.GrpcService
102 }
103 return nil
104 }
105
106 func (x *OpenTelemetryConfig) GetHttpService() *v3.HttpService {
107 if x != nil {
108 return x.HttpService
109 }
110 return nil
111 }
112
113 func (x *OpenTelemetryConfig) GetServiceName() string {
114 if x != nil {
115 return x.ServiceName
116 }
117 return ""
118 }
119
120 func (x *OpenTelemetryConfig) GetResourceDetectors() []*v3.TypedExtensionConfig {
121 if x != nil {
122 return x.ResourceDetectors
123 }
124 return nil
125 }
126
127 func (x *OpenTelemetryConfig) GetSampler() *v3.TypedExtensionConfig {
128 if x != nil {
129 return x.Sampler
130 }
131 return nil
132 }
133
134 var File_envoy_config_trace_v3_opentelemetry_proto protoreflect.FileDescriptor
135
136 var file_envoy_config_trace_v3_opentelemetry_proto_rawDesc = []byte{
137 0x0a, 0x29, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f, 0x74,
138 0x72, 0x61, 0x63, 0x65, 0x2f, 0x76, 0x33, 0x2f, 0x6f, 0x70, 0x65, 0x6e, 0x74, 0x65, 0x6c, 0x65,
139 0x6d, 0x65, 0x74, 0x72, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x15, 0x65, 0x6e, 0x76,
140 0x6f, 0x79, 0x2e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x74, 0x72, 0x61, 0x63, 0x65, 0x2e,
141 0x76, 0x33, 0x1a, 0x24, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67,
142 0x2f, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x76, 0x33, 0x2f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69,
143 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x27, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2f,
144 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x76, 0x33, 0x2f, 0x67,
145 0x72, 0x70, 0x63, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74,
146 0x6f, 0x1a, 0x27, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f,
147 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x76, 0x33, 0x2f, 0x68, 0x74, 0x74, 0x70, 0x5f, 0x73, 0x65, 0x72,
148 0x76, 0x69, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1e, 0x75, 0x64, 0x70, 0x61,
149 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x6d, 0x69, 0x67,
150 0x72, 0x61, 0x74, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1d, 0x75, 0x64, 0x70, 0x61,
151 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x73, 0x74, 0x61,
152 0x74, 0x75, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x93, 0x03, 0x0a, 0x13, 0x4f, 0x70,
153 0x65, 0x6e, 0x54, 0x65, 0x6c, 0x65, 0x6d, 0x65, 0x74, 0x72, 0x79, 0x43, 0x6f, 0x6e, 0x66, 0x69,
154 0x67, 0x12, 0x5b, 0x0a, 0x0c, 0x67, 0x72, 0x70, 0x63, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63,
155 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e,
156 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x76, 0x33, 0x2e, 0x47,
157 0x72, 0x70, 0x63, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x42, 0x15, 0xf2, 0x98, 0xfe, 0x8f,
158 0x05, 0x0f, 0x12, 0x0d, 0x6f, 0x74, 0x6c, 0x70, 0x5f, 0x65, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65,
159 0x72, 0x52, 0x0b, 0x67, 0x72, 0x70, 0x63, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x5b,
160 0x0a, 0x0c, 0x68, 0x74, 0x74, 0x70, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x18, 0x03,
161 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x63, 0x6f, 0x6e,
162 0x66, 0x69, 0x67, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x76, 0x33, 0x2e, 0x48, 0x74, 0x74, 0x70,
163 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x42, 0x15, 0xf2, 0x98, 0xfe, 0x8f, 0x05, 0x0f, 0x12,
164 0x0d, 0x6f, 0x74, 0x6c, 0x70, 0x5f, 0x65, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x52, 0x0b,
165 0x68, 0x74, 0x74, 0x70, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x21, 0x0a, 0x0c, 0x73,
166 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28,
167 0x09, 0x52, 0x0b, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x59,
168 0x0a, 0x12, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x64, 0x65, 0x74, 0x65, 0x63,
169 0x74, 0x6f, 0x72, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2a, 0x2e, 0x65, 0x6e, 0x76,
170 0x6f, 0x79, 0x2e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x76,
171 0x33, 0x2e, 0x54, 0x79, 0x70, 0x65, 0x64, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e,
172 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x11, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65,
173 0x44, 0x65, 0x74, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x73, 0x12, 0x44, 0x0a, 0x07, 0x73, 0x61, 0x6d,
174 0x70, 0x6c, 0x65, 0x72, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2a, 0x2e, 0x65, 0x6e, 0x76,
175 0x6f, 0x79, 0x2e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x76,
176 0x33, 0x2e, 0x54, 0x79, 0x70, 0x65, 0x64, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e,
177 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x07, 0x73, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x72, 0x42,
178 0x89, 0x01, 0xba, 0x80, 0xc8, 0xd1, 0x06, 0x02, 0x10, 0x02, 0x0a, 0x23, 0x69, 0x6f, 0x2e, 0x65,
179 0x6e, 0x76, 0x6f, 0x79, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e,
180 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x74, 0x72, 0x61, 0x63, 0x65, 0x2e, 0x76, 0x33, 0x42,
181 0x12, 0x4f, 0x70, 0x65, 0x6e, 0x74, 0x65, 0x6c, 0x65, 0x6d, 0x65, 0x74, 0x72, 0x79, 0x50, 0x72,
182 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x44, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f,
183 0x6d, 0x2f, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2f, 0x67, 0x6f, 0x2d,
184 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x2d, 0x70, 0x6c, 0x61, 0x6e, 0x65, 0x2f, 0x65, 0x6e,
185 0x76, 0x6f, 0x79, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f, 0x74, 0x72, 0x61, 0x63, 0x65,
186 0x2f, 0x76, 0x33, 0x3b, 0x74, 0x72, 0x61, 0x63, 0x65, 0x76, 0x33, 0x62, 0x06, 0x70, 0x72, 0x6f,
187 0x74, 0x6f, 0x33,
188 }
189
190 var (
191 file_envoy_config_trace_v3_opentelemetry_proto_rawDescOnce sync.Once
192 file_envoy_config_trace_v3_opentelemetry_proto_rawDescData = file_envoy_config_trace_v3_opentelemetry_proto_rawDesc
193 )
194
195 func file_envoy_config_trace_v3_opentelemetry_proto_rawDescGZIP() []byte {
196 file_envoy_config_trace_v3_opentelemetry_proto_rawDescOnce.Do(func() {
197 file_envoy_config_trace_v3_opentelemetry_proto_rawDescData = protoimpl.X.CompressGZIP(file_envoy_config_trace_v3_opentelemetry_proto_rawDescData)
198 })
199 return file_envoy_config_trace_v3_opentelemetry_proto_rawDescData
200 }
201
202 var file_envoy_config_trace_v3_opentelemetry_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
203 var file_envoy_config_trace_v3_opentelemetry_proto_goTypes = []interface{}{
204 (*OpenTelemetryConfig)(nil), // 0: envoy.config.trace.v3.OpenTelemetryConfig
205 (*v3.GrpcService)(nil), // 1: envoy.config.core.v3.GrpcService
206 (*v3.HttpService)(nil), // 2: envoy.config.core.v3.HttpService
207 (*v3.TypedExtensionConfig)(nil), // 3: envoy.config.core.v3.TypedExtensionConfig
208 }
209 var file_envoy_config_trace_v3_opentelemetry_proto_depIdxs = []int32{
210 1, // 0: envoy.config.trace.v3.OpenTelemetryConfig.grpc_service:type_name -> envoy.config.core.v3.GrpcService
211 2, // 1: envoy.config.trace.v3.OpenTelemetryConfig.http_service:type_name -> envoy.config.core.v3.HttpService
212 3, // 2: envoy.config.trace.v3.OpenTelemetryConfig.resource_detectors:type_name -> envoy.config.core.v3.TypedExtensionConfig
213 3, // 3: envoy.config.trace.v3.OpenTelemetryConfig.sampler:type_name -> envoy.config.core.v3.TypedExtensionConfig
214 4, // [4:4] is the sub-list for method output_type
215 4, // [4:4] is the sub-list for method input_type
216 4, // [4:4] is the sub-list for extension type_name
217 4, // [4:4] is the sub-list for extension extendee
218 0, // [0:4] is the sub-list for field type_name
219 }
220
221 func init() { file_envoy_config_trace_v3_opentelemetry_proto_init() }
222 func file_envoy_config_trace_v3_opentelemetry_proto_init() {
223 if File_envoy_config_trace_v3_opentelemetry_proto != nil {
224 return
225 }
226 if !protoimpl.UnsafeEnabled {
227 file_envoy_config_trace_v3_opentelemetry_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
228 switch v := v.(*OpenTelemetryConfig); i {
229 case 0:
230 return &v.state
231 case 1:
232 return &v.sizeCache
233 case 2:
234 return &v.unknownFields
235 default:
236 return nil
237 }
238 }
239 }
240 type x struct{}
241 out := protoimpl.TypeBuilder{
242 File: protoimpl.DescBuilder{
243 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
244 RawDescriptor: file_envoy_config_trace_v3_opentelemetry_proto_rawDesc,
245 NumEnums: 0,
246 NumMessages: 1,
247 NumExtensions: 0,
248 NumServices: 0,
249 },
250 GoTypes: file_envoy_config_trace_v3_opentelemetry_proto_goTypes,
251 DependencyIndexes: file_envoy_config_trace_v3_opentelemetry_proto_depIdxs,
252 MessageInfos: file_envoy_config_trace_v3_opentelemetry_proto_msgTypes,
253 }.Build()
254 File_envoy_config_trace_v3_opentelemetry_proto = out.File
255 file_envoy_config_trace_v3_opentelemetry_proto_rawDesc = nil
256 file_envoy_config_trace_v3_opentelemetry_proto_goTypes = nil
257 file_envoy_config_trace_v3_opentelemetry_proto_depIdxs = nil
258 }