trace_config.pb.go 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560
  1. // Copyright 2018, OpenCensus Authors
  2. //
  3. // Licensed under the Apache License, Version 2.0 (the "License");
  4. // you may not use this file except in compliance with the License.
  5. // You may obtain a copy of the License at
  6. //
  7. // http://www.apache.org/licenses/LICENSE-2.0
  8. //
  9. // Unless required by applicable law or agreed to in writing, software
  10. // distributed under the License is distributed on an "AS IS" BASIS,
  11. // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. // See the License for the specific language governing permissions and
  13. // limitations under the License.
  14. // Code generated by protoc-gen-go. DO NOT EDIT.
  15. // versions:
  16. // protoc-gen-go v1.25.0
  17. // protoc v3.12.3
  18. // source: opencensus/proto/trace/v1/trace_config.proto
  19. package v1
  20. import (
  21. proto "github.com/golang/protobuf/proto"
  22. protoreflect "google.golang.org/protobuf/reflect/protoreflect"
  23. protoimpl "google.golang.org/protobuf/runtime/protoimpl"
  24. reflect "reflect"
  25. sync "sync"
  26. )
  27. const (
  28. // Verify that this generated code is sufficiently up-to-date.
  29. _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
  30. // Verify that runtime/protoimpl is sufficiently up-to-date.
  31. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
  32. )
  33. // This is a compile-time assertion that a sufficiently up-to-date version
  34. // of the legacy proto package is being used.
  35. const _ = proto.ProtoPackageIsVersion4
  36. // How spans should be sampled:
  37. // - Always off
  38. // - Always on
  39. // - Always follow the parent Span's decision (off if no parent).
  40. type ConstantSampler_ConstantDecision int32
  41. const (
  42. ConstantSampler_ALWAYS_OFF ConstantSampler_ConstantDecision = 0
  43. ConstantSampler_ALWAYS_ON ConstantSampler_ConstantDecision = 1
  44. ConstantSampler_ALWAYS_PARENT ConstantSampler_ConstantDecision = 2
  45. )
  46. // Enum value maps for ConstantSampler_ConstantDecision.
  47. var (
  48. ConstantSampler_ConstantDecision_name = map[int32]string{
  49. 0: "ALWAYS_OFF",
  50. 1: "ALWAYS_ON",
  51. 2: "ALWAYS_PARENT",
  52. }
  53. ConstantSampler_ConstantDecision_value = map[string]int32{
  54. "ALWAYS_OFF": 0,
  55. "ALWAYS_ON": 1,
  56. "ALWAYS_PARENT": 2,
  57. }
  58. )
  59. func (x ConstantSampler_ConstantDecision) Enum() *ConstantSampler_ConstantDecision {
  60. p := new(ConstantSampler_ConstantDecision)
  61. *p = x
  62. return p
  63. }
  64. func (x ConstantSampler_ConstantDecision) String() string {
  65. return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
  66. }
  67. func (ConstantSampler_ConstantDecision) Descriptor() protoreflect.EnumDescriptor {
  68. return file_opencensus_proto_trace_v1_trace_config_proto_enumTypes[0].Descriptor()
  69. }
  70. func (ConstantSampler_ConstantDecision) Type() protoreflect.EnumType {
  71. return &file_opencensus_proto_trace_v1_trace_config_proto_enumTypes[0]
  72. }
  73. func (x ConstantSampler_ConstantDecision) Number() protoreflect.EnumNumber {
  74. return protoreflect.EnumNumber(x)
  75. }
  76. // Deprecated: Use ConstantSampler_ConstantDecision.Descriptor instead.
  77. func (ConstantSampler_ConstantDecision) EnumDescriptor() ([]byte, []int) {
  78. return file_opencensus_proto_trace_v1_trace_config_proto_rawDescGZIP(), []int{2, 0}
  79. }
  80. // Global configuration of the trace service. All fields must be specified, or
  81. // the default (zero) values will be used for each type.
  82. type TraceConfig struct {
  83. state protoimpl.MessageState
  84. sizeCache protoimpl.SizeCache
  85. unknownFields protoimpl.UnknownFields
  86. // The global default sampler used to make decisions on span sampling.
  87. //
  88. // Types that are assignable to Sampler:
  89. // *TraceConfig_ProbabilitySampler
  90. // *TraceConfig_ConstantSampler
  91. // *TraceConfig_RateLimitingSampler
  92. Sampler isTraceConfig_Sampler `protobuf_oneof:"sampler"`
  93. // The global default max number of attributes per span.
  94. MaxNumberOfAttributes int64 `protobuf:"varint,4,opt,name=max_number_of_attributes,json=maxNumberOfAttributes,proto3" json:"max_number_of_attributes,omitempty"`
  95. // The global default max number of annotation events per span.
  96. MaxNumberOfAnnotations int64 `protobuf:"varint,5,opt,name=max_number_of_annotations,json=maxNumberOfAnnotations,proto3" json:"max_number_of_annotations,omitempty"`
  97. // The global default max number of message events per span.
  98. MaxNumberOfMessageEvents int64 `protobuf:"varint,6,opt,name=max_number_of_message_events,json=maxNumberOfMessageEvents,proto3" json:"max_number_of_message_events,omitempty"`
  99. // The global default max number of link entries per span.
  100. MaxNumberOfLinks int64 `protobuf:"varint,7,opt,name=max_number_of_links,json=maxNumberOfLinks,proto3" json:"max_number_of_links,omitempty"`
  101. }
  102. func (x *TraceConfig) Reset() {
  103. *x = TraceConfig{}
  104. if protoimpl.UnsafeEnabled {
  105. mi := &file_opencensus_proto_trace_v1_trace_config_proto_msgTypes[0]
  106. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  107. ms.StoreMessageInfo(mi)
  108. }
  109. }
  110. func (x *TraceConfig) String() string {
  111. return protoimpl.X.MessageStringOf(x)
  112. }
  113. func (*TraceConfig) ProtoMessage() {}
  114. func (x *TraceConfig) ProtoReflect() protoreflect.Message {
  115. mi := &file_opencensus_proto_trace_v1_trace_config_proto_msgTypes[0]
  116. if protoimpl.UnsafeEnabled && x != nil {
  117. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  118. if ms.LoadMessageInfo() == nil {
  119. ms.StoreMessageInfo(mi)
  120. }
  121. return ms
  122. }
  123. return mi.MessageOf(x)
  124. }
  125. // Deprecated: Use TraceConfig.ProtoReflect.Descriptor instead.
  126. func (*TraceConfig) Descriptor() ([]byte, []int) {
  127. return file_opencensus_proto_trace_v1_trace_config_proto_rawDescGZIP(), []int{0}
  128. }
  129. func (m *TraceConfig) GetSampler() isTraceConfig_Sampler {
  130. if m != nil {
  131. return m.Sampler
  132. }
  133. return nil
  134. }
  135. func (x *TraceConfig) GetProbabilitySampler() *ProbabilitySampler {
  136. if x, ok := x.GetSampler().(*TraceConfig_ProbabilitySampler); ok {
  137. return x.ProbabilitySampler
  138. }
  139. return nil
  140. }
  141. func (x *TraceConfig) GetConstantSampler() *ConstantSampler {
  142. if x, ok := x.GetSampler().(*TraceConfig_ConstantSampler); ok {
  143. return x.ConstantSampler
  144. }
  145. return nil
  146. }
  147. func (x *TraceConfig) GetRateLimitingSampler() *RateLimitingSampler {
  148. if x, ok := x.GetSampler().(*TraceConfig_RateLimitingSampler); ok {
  149. return x.RateLimitingSampler
  150. }
  151. return nil
  152. }
  153. func (x *TraceConfig) GetMaxNumberOfAttributes() int64 {
  154. if x != nil {
  155. return x.MaxNumberOfAttributes
  156. }
  157. return 0
  158. }
  159. func (x *TraceConfig) GetMaxNumberOfAnnotations() int64 {
  160. if x != nil {
  161. return x.MaxNumberOfAnnotations
  162. }
  163. return 0
  164. }
  165. func (x *TraceConfig) GetMaxNumberOfMessageEvents() int64 {
  166. if x != nil {
  167. return x.MaxNumberOfMessageEvents
  168. }
  169. return 0
  170. }
  171. func (x *TraceConfig) GetMaxNumberOfLinks() int64 {
  172. if x != nil {
  173. return x.MaxNumberOfLinks
  174. }
  175. return 0
  176. }
  177. type isTraceConfig_Sampler interface {
  178. isTraceConfig_Sampler()
  179. }
  180. type TraceConfig_ProbabilitySampler struct {
  181. ProbabilitySampler *ProbabilitySampler `protobuf:"bytes,1,opt,name=probability_sampler,json=probabilitySampler,proto3,oneof"`
  182. }
  183. type TraceConfig_ConstantSampler struct {
  184. ConstantSampler *ConstantSampler `protobuf:"bytes,2,opt,name=constant_sampler,json=constantSampler,proto3,oneof"`
  185. }
  186. type TraceConfig_RateLimitingSampler struct {
  187. RateLimitingSampler *RateLimitingSampler `protobuf:"bytes,3,opt,name=rate_limiting_sampler,json=rateLimitingSampler,proto3,oneof"`
  188. }
  189. func (*TraceConfig_ProbabilitySampler) isTraceConfig_Sampler() {}
  190. func (*TraceConfig_ConstantSampler) isTraceConfig_Sampler() {}
  191. func (*TraceConfig_RateLimitingSampler) isTraceConfig_Sampler() {}
  192. // Sampler that tries to uniformly sample traces with a given probability.
  193. // The probability of sampling a trace is equal to that of the specified probability.
  194. type ProbabilitySampler struct {
  195. state protoimpl.MessageState
  196. sizeCache protoimpl.SizeCache
  197. unknownFields protoimpl.UnknownFields
  198. // The desired probability of sampling. Must be within [0.0, 1.0].
  199. SamplingProbability float64 `protobuf:"fixed64,1,opt,name=samplingProbability,proto3" json:"samplingProbability,omitempty"`
  200. }
  201. func (x *ProbabilitySampler) Reset() {
  202. *x = ProbabilitySampler{}
  203. if protoimpl.UnsafeEnabled {
  204. mi := &file_opencensus_proto_trace_v1_trace_config_proto_msgTypes[1]
  205. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  206. ms.StoreMessageInfo(mi)
  207. }
  208. }
  209. func (x *ProbabilitySampler) String() string {
  210. return protoimpl.X.MessageStringOf(x)
  211. }
  212. func (*ProbabilitySampler) ProtoMessage() {}
  213. func (x *ProbabilitySampler) ProtoReflect() protoreflect.Message {
  214. mi := &file_opencensus_proto_trace_v1_trace_config_proto_msgTypes[1]
  215. if protoimpl.UnsafeEnabled && x != nil {
  216. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  217. if ms.LoadMessageInfo() == nil {
  218. ms.StoreMessageInfo(mi)
  219. }
  220. return ms
  221. }
  222. return mi.MessageOf(x)
  223. }
  224. // Deprecated: Use ProbabilitySampler.ProtoReflect.Descriptor instead.
  225. func (*ProbabilitySampler) Descriptor() ([]byte, []int) {
  226. return file_opencensus_proto_trace_v1_trace_config_proto_rawDescGZIP(), []int{1}
  227. }
  228. func (x *ProbabilitySampler) GetSamplingProbability() float64 {
  229. if x != nil {
  230. return x.SamplingProbability
  231. }
  232. return 0
  233. }
  234. // Sampler that always makes a constant decision on span sampling.
  235. type ConstantSampler struct {
  236. state protoimpl.MessageState
  237. sizeCache protoimpl.SizeCache
  238. unknownFields protoimpl.UnknownFields
  239. Decision ConstantSampler_ConstantDecision `protobuf:"varint,1,opt,name=decision,proto3,enum=opencensus.proto.trace.v1.ConstantSampler_ConstantDecision" json:"decision,omitempty"`
  240. }
  241. func (x *ConstantSampler) Reset() {
  242. *x = ConstantSampler{}
  243. if protoimpl.UnsafeEnabled {
  244. mi := &file_opencensus_proto_trace_v1_trace_config_proto_msgTypes[2]
  245. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  246. ms.StoreMessageInfo(mi)
  247. }
  248. }
  249. func (x *ConstantSampler) String() string {
  250. return protoimpl.X.MessageStringOf(x)
  251. }
  252. func (*ConstantSampler) ProtoMessage() {}
  253. func (x *ConstantSampler) ProtoReflect() protoreflect.Message {
  254. mi := &file_opencensus_proto_trace_v1_trace_config_proto_msgTypes[2]
  255. if protoimpl.UnsafeEnabled && x != nil {
  256. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  257. if ms.LoadMessageInfo() == nil {
  258. ms.StoreMessageInfo(mi)
  259. }
  260. return ms
  261. }
  262. return mi.MessageOf(x)
  263. }
  264. // Deprecated: Use ConstantSampler.ProtoReflect.Descriptor instead.
  265. func (*ConstantSampler) Descriptor() ([]byte, []int) {
  266. return file_opencensus_proto_trace_v1_trace_config_proto_rawDescGZIP(), []int{2}
  267. }
  268. func (x *ConstantSampler) GetDecision() ConstantSampler_ConstantDecision {
  269. if x != nil {
  270. return x.Decision
  271. }
  272. return ConstantSampler_ALWAYS_OFF
  273. }
  274. // Sampler that tries to sample with a rate per time window.
  275. type RateLimitingSampler struct {
  276. state protoimpl.MessageState
  277. sizeCache protoimpl.SizeCache
  278. unknownFields protoimpl.UnknownFields
  279. // Rate per second.
  280. Qps int64 `protobuf:"varint,1,opt,name=qps,proto3" json:"qps,omitempty"`
  281. }
  282. func (x *RateLimitingSampler) Reset() {
  283. *x = RateLimitingSampler{}
  284. if protoimpl.UnsafeEnabled {
  285. mi := &file_opencensus_proto_trace_v1_trace_config_proto_msgTypes[3]
  286. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  287. ms.StoreMessageInfo(mi)
  288. }
  289. }
  290. func (x *RateLimitingSampler) String() string {
  291. return protoimpl.X.MessageStringOf(x)
  292. }
  293. func (*RateLimitingSampler) ProtoMessage() {}
  294. func (x *RateLimitingSampler) ProtoReflect() protoreflect.Message {
  295. mi := &file_opencensus_proto_trace_v1_trace_config_proto_msgTypes[3]
  296. if protoimpl.UnsafeEnabled && x != nil {
  297. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  298. if ms.LoadMessageInfo() == nil {
  299. ms.StoreMessageInfo(mi)
  300. }
  301. return ms
  302. }
  303. return mi.MessageOf(x)
  304. }
  305. // Deprecated: Use RateLimitingSampler.ProtoReflect.Descriptor instead.
  306. func (*RateLimitingSampler) Descriptor() ([]byte, []int) {
  307. return file_opencensus_proto_trace_v1_trace_config_proto_rawDescGZIP(), []int{3}
  308. }
  309. func (x *RateLimitingSampler) GetQps() int64 {
  310. if x != nil {
  311. return x.Qps
  312. }
  313. return 0
  314. }
  315. var File_opencensus_proto_trace_v1_trace_config_proto protoreflect.FileDescriptor
  316. var file_opencensus_proto_trace_v1_trace_config_proto_rawDesc = []byte{
  317. 0x0a, 0x2c, 0x6f, 0x70, 0x65, 0x6e, 0x63, 0x65, 0x6e, 0x73, 0x75, 0x73, 0x2f, 0x70, 0x72, 0x6f,
  318. 0x74, 0x6f, 0x2f, 0x74, 0x72, 0x61, 0x63, 0x65, 0x2f, 0x76, 0x31, 0x2f, 0x74, 0x72, 0x61, 0x63,
  319. 0x65, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x19,
  320. 0x6f, 0x70, 0x65, 0x6e, 0x63, 0x65, 0x6e, 0x73, 0x75, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
  321. 0x2e, 0x74, 0x72, 0x61, 0x63, 0x65, 0x2e, 0x76, 0x31, 0x22, 0x9c, 0x04, 0x0a, 0x0b, 0x54, 0x72,
  322. 0x61, 0x63, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x60, 0x0a, 0x13, 0x70, 0x72, 0x6f,
  323. 0x62, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x5f, 0x73, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x72,
  324. 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2d, 0x2e, 0x6f, 0x70, 0x65, 0x6e, 0x63, 0x65, 0x6e,
  325. 0x73, 0x75, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x74, 0x72, 0x61, 0x63, 0x65, 0x2e,
  326. 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x62, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x53, 0x61,
  327. 0x6d, 0x70, 0x6c, 0x65, 0x72, 0x48, 0x00, 0x52, 0x12, 0x70, 0x72, 0x6f, 0x62, 0x61, 0x62, 0x69,
  328. 0x6c, 0x69, 0x74, 0x79, 0x53, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x72, 0x12, 0x57, 0x0a, 0x10, 0x63,
  329. 0x6f, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x74, 0x5f, 0x73, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x72, 0x18,
  330. 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2a, 0x2e, 0x6f, 0x70, 0x65, 0x6e, 0x63, 0x65, 0x6e, 0x73,
  331. 0x75, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x74, 0x72, 0x61, 0x63, 0x65, 0x2e, 0x76,
  332. 0x31, 0x2e, 0x43, 0x6f, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x74, 0x53, 0x61, 0x6d, 0x70, 0x6c, 0x65,
  333. 0x72, 0x48, 0x00, 0x52, 0x0f, 0x63, 0x6f, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x74, 0x53, 0x61, 0x6d,
  334. 0x70, 0x6c, 0x65, 0x72, 0x12, 0x64, 0x0a, 0x15, 0x72, 0x61, 0x74, 0x65, 0x5f, 0x6c, 0x69, 0x6d,
  335. 0x69, 0x74, 0x69, 0x6e, 0x67, 0x5f, 0x73, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x72, 0x18, 0x03, 0x20,
  336. 0x01, 0x28, 0x0b, 0x32, 0x2e, 0x2e, 0x6f, 0x70, 0x65, 0x6e, 0x63, 0x65, 0x6e, 0x73, 0x75, 0x73,
  337. 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x74, 0x72, 0x61, 0x63, 0x65, 0x2e, 0x76, 0x31, 0x2e,
  338. 0x52, 0x61, 0x74, 0x65, 0x4c, 0x69, 0x6d, 0x69, 0x74, 0x69, 0x6e, 0x67, 0x53, 0x61, 0x6d, 0x70,
  339. 0x6c, 0x65, 0x72, 0x48, 0x00, 0x52, 0x13, 0x72, 0x61, 0x74, 0x65, 0x4c, 0x69, 0x6d, 0x69, 0x74,
  340. 0x69, 0x6e, 0x67, 0x53, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x72, 0x12, 0x37, 0x0a, 0x18, 0x6d, 0x61,
  341. 0x78, 0x5f, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x5f, 0x6f, 0x66, 0x5f, 0x61, 0x74, 0x74, 0x72,
  342. 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x15, 0x6d, 0x61,
  343. 0x78, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x4f, 0x66, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75,
  344. 0x74, 0x65, 0x73, 0x12, 0x39, 0x0a, 0x19, 0x6d, 0x61, 0x78, 0x5f, 0x6e, 0x75, 0x6d, 0x62, 0x65,
  345. 0x72, 0x5f, 0x6f, 0x66, 0x5f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73,
  346. 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, 0x16, 0x6d, 0x61, 0x78, 0x4e, 0x75, 0x6d, 0x62, 0x65,
  347. 0x72, 0x4f, 0x66, 0x41, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x3e,
  348. 0x0a, 0x1c, 0x6d, 0x61, 0x78, 0x5f, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x5f, 0x6f, 0x66, 0x5f,
  349. 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x06,
  350. 0x20, 0x01, 0x28, 0x03, 0x52, 0x18, 0x6d, 0x61, 0x78, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x4f,
  351. 0x66, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x12, 0x2d,
  352. 0x0a, 0x13, 0x6d, 0x61, 0x78, 0x5f, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x5f, 0x6f, 0x66, 0x5f,
  353. 0x6c, 0x69, 0x6e, 0x6b, 0x73, 0x18, 0x07, 0x20, 0x01, 0x28, 0x03, 0x52, 0x10, 0x6d, 0x61, 0x78,
  354. 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x4f, 0x66, 0x4c, 0x69, 0x6e, 0x6b, 0x73, 0x42, 0x09, 0x0a,
  355. 0x07, 0x73, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x72, 0x22, 0x46, 0x0a, 0x12, 0x50, 0x72, 0x6f, 0x62,
  356. 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x53, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x72, 0x12, 0x30,
  357. 0x0a, 0x13, 0x73, 0x61, 0x6d, 0x70, 0x6c, 0x69, 0x6e, 0x67, 0x50, 0x72, 0x6f, 0x62, 0x61, 0x62,
  358. 0x69, 0x6c, 0x69, 0x74, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x01, 0x52, 0x13, 0x73, 0x61, 0x6d,
  359. 0x70, 0x6c, 0x69, 0x6e, 0x67, 0x50, 0x72, 0x6f, 0x62, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79,
  360. 0x22, 0xb0, 0x01, 0x0a, 0x0f, 0x43, 0x6f, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x74, 0x53, 0x61, 0x6d,
  361. 0x70, 0x6c, 0x65, 0x72, 0x12, 0x57, 0x0a, 0x08, 0x64, 0x65, 0x63, 0x69, 0x73, 0x69, 0x6f, 0x6e,
  362. 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x3b, 0x2e, 0x6f, 0x70, 0x65, 0x6e, 0x63, 0x65, 0x6e,
  363. 0x73, 0x75, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x74, 0x72, 0x61, 0x63, 0x65, 0x2e,
  364. 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x74, 0x53, 0x61, 0x6d, 0x70, 0x6c,
  365. 0x65, 0x72, 0x2e, 0x43, 0x6f, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x74, 0x44, 0x65, 0x63, 0x69, 0x73,
  366. 0x69, 0x6f, 0x6e, 0x52, 0x08, 0x64, 0x65, 0x63, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x22, 0x44, 0x0a,
  367. 0x10, 0x43, 0x6f, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x74, 0x44, 0x65, 0x63, 0x69, 0x73, 0x69, 0x6f,
  368. 0x6e, 0x12, 0x0e, 0x0a, 0x0a, 0x41, 0x4c, 0x57, 0x41, 0x59, 0x53, 0x5f, 0x4f, 0x46, 0x46, 0x10,
  369. 0x00, 0x12, 0x0d, 0x0a, 0x09, 0x41, 0x4c, 0x57, 0x41, 0x59, 0x53, 0x5f, 0x4f, 0x4e, 0x10, 0x01,
  370. 0x12, 0x11, 0x0a, 0x0d, 0x41, 0x4c, 0x57, 0x41, 0x59, 0x53, 0x5f, 0x50, 0x41, 0x52, 0x45, 0x4e,
  371. 0x54, 0x10, 0x02, 0x22, 0x27, 0x0a, 0x13, 0x52, 0x61, 0x74, 0x65, 0x4c, 0x69, 0x6d, 0x69, 0x74,
  372. 0x69, 0x6e, 0x67, 0x53, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x72, 0x12, 0x10, 0x0a, 0x03, 0x71, 0x70,
  373. 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x03, 0x71, 0x70, 0x73, 0x42, 0x92, 0x01, 0x0a,
  374. 0x1c, 0x69, 0x6f, 0x2e, 0x6f, 0x70, 0x65, 0x6e, 0x63, 0x65, 0x6e, 0x73, 0x75, 0x73, 0x2e, 0x70,
  375. 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x74, 0x72, 0x61, 0x63, 0x65, 0x2e, 0x76, 0x31, 0x42, 0x10, 0x54,
  376. 0x72, 0x61, 0x63, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50,
  377. 0x01, 0x5a, 0x42, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x63, 0x65,
  378. 0x6e, 0x73, 0x75, 0x73, 0x2d, 0x69, 0x6e, 0x73, 0x74, 0x72, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x61,
  379. 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x6f, 0x70, 0x65, 0x6e, 0x63, 0x65, 0x6e, 0x73, 0x75, 0x73, 0x2d,
  380. 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x65, 0x6e, 0x2d, 0x67, 0x6f, 0x2f, 0x74, 0x72, 0x61,
  381. 0x63, 0x65, 0x2f, 0x76, 0x31, 0xea, 0x02, 0x19, 0x4f, 0x70, 0x65, 0x6e, 0x43, 0x65, 0x6e, 0x73,
  382. 0x75, 0x73, 0x2e, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x54, 0x72, 0x61, 0x63, 0x65, 0x2e, 0x56,
  383. 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
  384. }
  385. var (
  386. file_opencensus_proto_trace_v1_trace_config_proto_rawDescOnce sync.Once
  387. file_opencensus_proto_trace_v1_trace_config_proto_rawDescData = file_opencensus_proto_trace_v1_trace_config_proto_rawDesc
  388. )
  389. func file_opencensus_proto_trace_v1_trace_config_proto_rawDescGZIP() []byte {
  390. file_opencensus_proto_trace_v1_trace_config_proto_rawDescOnce.Do(func() {
  391. file_opencensus_proto_trace_v1_trace_config_proto_rawDescData = protoimpl.X.CompressGZIP(file_opencensus_proto_trace_v1_trace_config_proto_rawDescData)
  392. })
  393. return file_opencensus_proto_trace_v1_trace_config_proto_rawDescData
  394. }
  395. var file_opencensus_proto_trace_v1_trace_config_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
  396. var file_opencensus_proto_trace_v1_trace_config_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
  397. var file_opencensus_proto_trace_v1_trace_config_proto_goTypes = []interface{}{
  398. (ConstantSampler_ConstantDecision)(0), // 0: opencensus.proto.trace.v1.ConstantSampler.ConstantDecision
  399. (*TraceConfig)(nil), // 1: opencensus.proto.trace.v1.TraceConfig
  400. (*ProbabilitySampler)(nil), // 2: opencensus.proto.trace.v1.ProbabilitySampler
  401. (*ConstantSampler)(nil), // 3: opencensus.proto.trace.v1.ConstantSampler
  402. (*RateLimitingSampler)(nil), // 4: opencensus.proto.trace.v1.RateLimitingSampler
  403. }
  404. var file_opencensus_proto_trace_v1_trace_config_proto_depIdxs = []int32{
  405. 2, // 0: opencensus.proto.trace.v1.TraceConfig.probability_sampler:type_name -> opencensus.proto.trace.v1.ProbabilitySampler
  406. 3, // 1: opencensus.proto.trace.v1.TraceConfig.constant_sampler:type_name -> opencensus.proto.trace.v1.ConstantSampler
  407. 4, // 2: opencensus.proto.trace.v1.TraceConfig.rate_limiting_sampler:type_name -> opencensus.proto.trace.v1.RateLimitingSampler
  408. 0, // 3: opencensus.proto.trace.v1.ConstantSampler.decision:type_name -> opencensus.proto.trace.v1.ConstantSampler.ConstantDecision
  409. 4, // [4:4] is the sub-list for method output_type
  410. 4, // [4:4] is the sub-list for method input_type
  411. 4, // [4:4] is the sub-list for extension type_name
  412. 4, // [4:4] is the sub-list for extension extendee
  413. 0, // [0:4] is the sub-list for field type_name
  414. }
  415. func init() { file_opencensus_proto_trace_v1_trace_config_proto_init() }
  416. func file_opencensus_proto_trace_v1_trace_config_proto_init() {
  417. if File_opencensus_proto_trace_v1_trace_config_proto != nil {
  418. return
  419. }
  420. if !protoimpl.UnsafeEnabled {
  421. file_opencensus_proto_trace_v1_trace_config_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  422. switch v := v.(*TraceConfig); i {
  423. case 0:
  424. return &v.state
  425. case 1:
  426. return &v.sizeCache
  427. case 2:
  428. return &v.unknownFields
  429. default:
  430. return nil
  431. }
  432. }
  433. file_opencensus_proto_trace_v1_trace_config_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
  434. switch v := v.(*ProbabilitySampler); i {
  435. case 0:
  436. return &v.state
  437. case 1:
  438. return &v.sizeCache
  439. case 2:
  440. return &v.unknownFields
  441. default:
  442. return nil
  443. }
  444. }
  445. file_opencensus_proto_trace_v1_trace_config_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
  446. switch v := v.(*ConstantSampler); i {
  447. case 0:
  448. return &v.state
  449. case 1:
  450. return &v.sizeCache
  451. case 2:
  452. return &v.unknownFields
  453. default:
  454. return nil
  455. }
  456. }
  457. file_opencensus_proto_trace_v1_trace_config_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
  458. switch v := v.(*RateLimitingSampler); i {
  459. case 0:
  460. return &v.state
  461. case 1:
  462. return &v.sizeCache
  463. case 2:
  464. return &v.unknownFields
  465. default:
  466. return nil
  467. }
  468. }
  469. }
  470. file_opencensus_proto_trace_v1_trace_config_proto_msgTypes[0].OneofWrappers = []interface{}{
  471. (*TraceConfig_ProbabilitySampler)(nil),
  472. (*TraceConfig_ConstantSampler)(nil),
  473. (*TraceConfig_RateLimitingSampler)(nil),
  474. }
  475. type x struct{}
  476. out := protoimpl.TypeBuilder{
  477. File: protoimpl.DescBuilder{
  478. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  479. RawDescriptor: file_opencensus_proto_trace_v1_trace_config_proto_rawDesc,
  480. NumEnums: 1,
  481. NumMessages: 4,
  482. NumExtensions: 0,
  483. NumServices: 0,
  484. },
  485. GoTypes: file_opencensus_proto_trace_v1_trace_config_proto_goTypes,
  486. DependencyIndexes: file_opencensus_proto_trace_v1_trace_config_proto_depIdxs,
  487. EnumInfos: file_opencensus_proto_trace_v1_trace_config_proto_enumTypes,
  488. MessageInfos: file_opencensus_proto_trace_v1_trace_config_proto_msgTypes,
  489. }.Build()
  490. File_opencensus_proto_trace_v1_trace_config_proto = out.File
  491. file_opencensus_proto_trace_v1_trace_config_proto_rawDesc = nil
  492. file_opencensus_proto_trace_v1_trace_config_proto_goTypes = nil
  493. file_opencensus_proto_trace_v1_trace_config_proto_depIdxs = nil
  494. }