| 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/extensions/tracers/opentelemetry/samplers/v3/dynatrace_sampler.proto |
| 6 |
|
| 7 |
package samplersv3 |
| 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 Dynatrace Sampler extension. |
| 26 |
// [#extension: envoy.tracers.opentelemetry.samplers.dynatrace] |
| 27 |
type DynatraceSamplerConfig struct { |
| 28 |
state protoimpl.MessageState |
| 29 |
sizeCache protoimpl.SizeCache |
| 30 |
unknownFields protoimpl.UnknownFields |
| 31 |
|
| 32 |
// The Dynatrace tenant. |
| 33 |
// |
| 34 |
// The value can be obtained from the Envoy deployment page in Dynatrace. |
| 35 |
Tenant string `protobuf:"bytes,1,opt,name=tenant,proto3" json:"tenant,omitempty"` |
| 36 |
// The id of the Dynatrace cluster id. |
| 37 |
// |
| 38 |
// The value can be obtained from the Envoy deployment page in Dynatrace. |
| 39 |
ClusterId int32 `protobuf:"varint,2,opt,name=cluster_id,json=clusterId,proto3" json:"cluster_id,omitempty"` |
| 40 |
// The HTTP service to fetch the sampler configuration from the Dynatrace API (root spans per minute). For example: |
| 41 |
// |
| 42 |
// .. code-block:: yaml |
| 43 |
// |
| 44 |
// http_service: |
| 45 |
// http_uri: |
| 46 |
// cluster: dynatrace |
| 47 |
// uri: <tenant>.dev.dynatracelabs.com/api/v2/samplingConfiguration |
| 48 |
// timeout: 10s |
| 49 |
// request_headers_to_add: |
| 50 |
// - header: |
| 51 |
// key : "authorization" |
| 52 |
// value: "Api-Token dt..." |
| 53 |
HttpService *v3.HttpService `protobuf:"bytes,3,opt,name=http_service,json=httpService,proto3" json:"http_service,omitempty"` |
| 54 |
// Default number of root spans per minute, used when the value can't be obtained from the Dynatrace API. |
| 55 |
// |
| 56 |
// A default value of “1000“ is used when: |
| 57 |
// |
| 58 |
// - “root_spans_per_minute“ is unset |
| 59 |
// - “root_spans_per_minute“ is set to 0 |
| 60 |
RootSpansPerMinute uint32 `protobuf:"varint,4,opt,name=root_spans_per_minute,json=rootSpansPerMinute,proto3" json:"root_spans_per_minute,omitempty"` |
| 61 |
} |
| 62 |
|
| 63 |
func (x *DynatraceSamplerConfig) Reset() { |
| 64 |
*x = DynatraceSamplerConfig{} |
| 65 |
if protoimpl.UnsafeEnabled { |
| 66 |
mi := &file_envoy_extensions_tracers_opentelemetry_samplers_v3_dynatrace_sampler_proto_msgTypes[0] |
| 67 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 68 |
ms.StoreMessageInfo(mi) |
| 69 |
} |
| 70 |
} |
| 71 |
|
| 72 |
func (x *DynatraceSamplerConfig) String() string { |
| 73 |
return protoimpl.X.MessageStringOf(x) |
| 74 |
} |
| 75 |
|
| 76 |
func (*DynatraceSamplerConfig) ProtoMessage() {} |
| 77 |
|
| 78 |
func (x *DynatraceSamplerConfig) ProtoReflect() protoreflect.Message { |
| 79 |
mi := &file_envoy_extensions_tracers_opentelemetry_samplers_v3_dynatrace_sampler_proto_msgTypes[0] |
| 80 |
if protoimpl.UnsafeEnabled && x != nil { |
| 81 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 82 |
if ms.LoadMessageInfo() == nil { |
| 83 |
ms.StoreMessageInfo(mi) |
| 84 |
} |
| 85 |
return ms |
| 86 |
} |
| 87 |
return mi.MessageOf(x) |
| 88 |
} |
| 89 |
|
| 90 |
// Deprecated: Use DynatraceSamplerConfig.ProtoReflect.Descriptor instead. |
| 91 |
func (*DynatraceSamplerConfig) Descriptor() ([]byte, []int) { |
| 92 |
return file_envoy_extensions_tracers_opentelemetry_samplers_v3_dynatrace_sampler_proto_rawDescGZIP(), []int{0} |
| 93 |
} |
| 94 |
|
| 95 |
func (x *DynatraceSamplerConfig) GetTenant() string { |
| 96 |
if x != nil { |
| 97 |
return x.Tenant |
| 98 |
} |
| 99 |
return "" |
| 100 |
} |
| 101 |
|
| 102 |
func (x *DynatraceSamplerConfig) GetClusterId() int32 { |
| 103 |
if x != nil { |
| 104 |
return x.ClusterId |
| 105 |
} |
| 106 |
return 0 |
| 107 |
} |
| 108 |
|
| 109 |
func (x *DynatraceSamplerConfig) GetHttpService() *v3.HttpService { |
| 110 |
if x != nil { |
| 111 |
return x.HttpService |
| 112 |
} |
| 113 |
return nil |
| 114 |
} |
| 115 |
|
| 116 |
func (x *DynatraceSamplerConfig) GetRootSpansPerMinute() uint32 { |
| 117 |
if x != nil { |
| 118 |
return x.RootSpansPerMinute |
| 119 |
} |
| 120 |
return 0 |
| 121 |
} |
| 122 |
|
| 123 |
var File_envoy_extensions_tracers_opentelemetry_samplers_v3_dynatrace_sampler_proto protoreflect.FileDescriptor |
| 124 |
|
| 125 |
var file_envoy_extensions_tracers_opentelemetry_samplers_v3_dynatrace_sampler_proto_rawDesc = []byte{ |
| 126 |
0x0a, 0x4a, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, |
| 127 |
0x6e, 0x73, 0x2f, 0x74, 0x72, 0x61, 0x63, 0x65, 0x72, 0x73, 0x2f, 0x6f, 0x70, 0x65, 0x6e, 0x74, |
| 128 |
0x65, 0x6c, 0x65, 0x6d, 0x65, 0x74, 0x72, 0x79, 0x2f, 0x73, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x72, |
| 129 |
0x73, 0x2f, 0x76, 0x33, 0x2f, 0x64, 0x79, 0x6e, 0x61, 0x74, 0x72, 0x61, 0x63, 0x65, 0x5f, 0x73, |
| 130 |
0x61, 0x6d, 0x70, 0x6c, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x32, 0x65, 0x6e, |
| 131 |
0x76, 0x6f, 0x79, 0x2e, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x74, |
| 132 |
0x72, 0x61, 0x63, 0x65, 0x72, 0x73, 0x2e, 0x6f, 0x70, 0x65, 0x6e, 0x74, 0x65, 0x6c, 0x65, 0x6d, |
| 133 |
0x65, 0x74, 0x72, 0x79, 0x2e, 0x73, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x72, 0x73, 0x2e, 0x76, 0x33, |
| 134 |
0x1a, 0x27, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f, 0x63, |
| 135 |
0x6f, 0x72, 0x65, 0x2f, 0x76, 0x33, 0x2f, 0x68, 0x74, 0x74, 0x70, 0x5f, 0x73, 0x65, 0x72, 0x76, |
| 136 |
0x69, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1d, 0x75, 0x64, 0x70, 0x61, 0x2f, |
| 137 |
0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x73, 0x74, 0x61, 0x74, |
| 138 |
0x75, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xc8, 0x01, 0x0a, 0x16, 0x44, 0x79, 0x6e, |
| 139 |
0x61, 0x74, 0x72, 0x61, 0x63, 0x65, 0x53, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x72, 0x43, 0x6f, 0x6e, |
| 140 |
0x66, 0x69, 0x67, 0x12, 0x16, 0x0a, 0x06, 0x74, 0x65, 0x6e, 0x61, 0x6e, 0x74, 0x18, 0x01, 0x20, |
| 141 |
0x01, 0x28, 0x09, 0x52, 0x06, 0x74, 0x65, 0x6e, 0x61, 0x6e, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x63, |
| 142 |
0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, |
| 143 |
0x09, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x49, 0x64, 0x12, 0x44, 0x0a, 0x0c, 0x68, 0x74, |
| 144 |
0x74, 0x70, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, |
| 145 |
0x32, 0x21, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, |
| 146 |
0x63, 0x6f, 0x72, 0x65, 0x2e, 0x76, 0x33, 0x2e, 0x48, 0x74, 0x74, 0x70, 0x53, 0x65, 0x72, 0x76, |
| 147 |
0x69, 0x63, 0x65, 0x52, 0x0b, 0x68, 0x74, 0x74, 0x70, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, |
| 148 |
0x12, 0x31, 0x0a, 0x15, 0x72, 0x6f, 0x6f, 0x74, 0x5f, 0x73, 0x70, 0x61, 0x6e, 0x73, 0x5f, 0x70, |
| 149 |
0x65, 0x72, 0x5f, 0x6d, 0x69, 0x6e, 0x75, 0x74, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0d, 0x52, |
| 150 |
0x12, 0x72, 0x6f, 0x6f, 0x74, 0x53, 0x70, 0x61, 0x6e, 0x73, 0x50, 0x65, 0x72, 0x4d, 0x69, 0x6e, |
| 151 |
0x75, 0x74, 0x65, 0x42, 0xc9, 0x01, 0xba, 0x80, 0xc8, 0xd1, 0x06, 0x02, 0x10, 0x02, 0x0a, 0x40, |
| 152 |
0x69, 0x6f, 0x2e, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x65, 0x6e, |
| 153 |
0x76, 0x6f, 0x79, 0x2e, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x74, |
| 154 |
0x72, 0x61, 0x63, 0x65, 0x72, 0x73, 0x2e, 0x6f, 0x70, 0x65, 0x6e, 0x74, 0x65, 0x6c, 0x65, 0x6d, |
| 155 |
0x65, 0x74, 0x72, 0x79, 0x2e, 0x73, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x72, 0x73, 0x2e, 0x76, 0x33, |
| 156 |
0x42, 0x15, 0x44, 0x79, 0x6e, 0x61, 0x74, 0x72, 0x61, 0x63, 0x65, 0x53, 0x61, 0x6d, 0x70, 0x6c, |
| 157 |
0x65, 0x72, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x64, 0x67, 0x69, 0x74, 0x68, 0x75, |
| 158 |
0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x70, 0x72, 0x6f, 0x78, 0x79, |
| 159 |
0x2f, 0x67, 0x6f, 0x2d, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x2d, 0x70, 0x6c, 0x61, 0x6e, |
| 160 |
0x65, 0x2f, 0x65, 0x6e, 0x76, 0x6f, 0x79, 0x2f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, |
| 161 |
0x6e, 0x73, 0x2f, 0x74, 0x72, 0x61, 0x63, 0x65, 0x72, 0x73, 0x2f, 0x6f, 0x70, 0x65, 0x6e, 0x74, |
| 162 |
0x65, 0x6c, 0x65, 0x6d, 0x65, 0x74, 0x72, 0x79, 0x2f, 0x73, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x72, |
| 163 |
0x73, 0x2f, 0x76, 0x33, 0x3b, 0x73, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x72, 0x73, 0x76, 0x33, 0x62, |
| 164 |
0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, |
| 165 |
} |
| 166 |
|
| 167 |
var ( |
| 168 |
file_envoy_extensions_tracers_opentelemetry_samplers_v3_dynatrace_sampler_proto_rawDescOnce sync.Once |
| 169 |
file_envoy_extensions_tracers_opentelemetry_samplers_v3_dynatrace_sampler_proto_rawDescData = file_envoy_extensions_tracers_opentelemetry_samplers_v3_dynatrace_sampler_proto_rawDesc |
| 170 |
) |
| 171 |
|
| 172 |
func file_envoy_extensions_tracers_opentelemetry_samplers_v3_dynatrace_sampler_proto_rawDescGZIP() []byte { |
| 173 |
file_envoy_extensions_tracers_opentelemetry_samplers_v3_dynatrace_sampler_proto_rawDescOnce.Do(func() { |
| 174 |
file_envoy_extensions_tracers_opentelemetry_samplers_v3_dynatrace_sampler_proto_rawDescData = protoimpl.X.CompressGZIP(file_envoy_extensions_tracers_opentelemetry_samplers_v3_dynatrace_sampler_proto_rawDescData) |
| 175 |
}) |
| 176 |
return file_envoy_extensions_tracers_opentelemetry_samplers_v3_dynatrace_sampler_proto_rawDescData |
| 177 |
} |
| 178 |
|
| 179 |
var file_envoy_extensions_tracers_opentelemetry_samplers_v3_dynatrace_sampler_proto_msgTypes = make([]protoimpl.MessageInfo, 1) |
| 180 |
var file_envoy_extensions_tracers_opentelemetry_samplers_v3_dynatrace_sampler_proto_goTypes = []interface{}{ |
| 181 |
(*DynatraceSamplerConfig)(nil), // 0: envoy.extensions.tracers.opentelemetry.samplers.v3.DynatraceSamplerConfig |
| 182 |
(*v3.HttpService)(nil), // 1: envoy.config.core.v3.HttpService |
| 183 |
} |
| 184 |
var file_envoy_extensions_tracers_opentelemetry_samplers_v3_dynatrace_sampler_proto_depIdxs = []int32{ |
| 185 |
1, // 0: envoy.extensions.tracers.opentelemetry.samplers.v3.DynatraceSamplerConfig.http_service:type_name -> envoy.config.core.v3.HttpService |
| 186 |
1, // [1:1] is the sub-list for method output_type |
| 187 |
1, // [1:1] is the sub-list for method input_type |
| 188 |
1, // [1:1] is the sub-list for extension type_name |
| 189 |
1, // [1:1] is the sub-list for extension extendee |
| 190 |
0, // [0:1] is the sub-list for field type_name |
| 191 |
} |
| 192 |
|
| 193 |
func init() { file_envoy_extensions_tracers_opentelemetry_samplers_v3_dynatrace_sampler_proto_init() } |
| 194 |
func file_envoy_extensions_tracers_opentelemetry_samplers_v3_dynatrace_sampler_proto_init() { |
| 195 |
if File_envoy_extensions_tracers_opentelemetry_samplers_v3_dynatrace_sampler_proto != nil { |
| 196 |
return |
| 197 |
} |
| 198 |
if !protoimpl.UnsafeEnabled { |
| 199 |
file_envoy_extensions_tracers_opentelemetry_samplers_v3_dynatrace_sampler_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { |
| 200 |
switch v := v.(*DynatraceSamplerConfig); i { |
| 201 |
case 0: |
| 202 |
return &v.state |
| 203 |
case 1: |
| 204 |
return &v.sizeCache |
| 205 |
case 2: |
| 206 |
return &v.unknownFields |
| 207 |
default: |
| 208 |
return nil |
| 209 |
} |
| 210 |
} |
| 211 |
} |
| 212 |
type x struct{} |
| 213 |
out := protoimpl.TypeBuilder{ |
| 214 |
File: protoimpl.DescBuilder{ |
| 215 |
GoPackagePath: reflect.TypeOf(x{}).PkgPath(), |
| 216 |
RawDescriptor: file_envoy_extensions_tracers_opentelemetry_samplers_v3_dynatrace_sampler_proto_rawDesc, |
| 217 |
NumEnums: 0, |
| 218 |
NumMessages: 1, |
| 219 |
NumExtensions: 0, |
| 220 |
NumServices: 0, |
| 221 |
}, |
| 222 |
GoTypes: file_envoy_extensions_tracers_opentelemetry_samplers_v3_dynatrace_sampler_proto_goTypes, |
| 223 |
DependencyIndexes: file_envoy_extensions_tracers_opentelemetry_samplers_v3_dynatrace_sampler_proto_depIdxs, |
| 224 |
MessageInfos: file_envoy_extensions_tracers_opentelemetry_samplers_v3_dynatrace_sampler_proto_msgTypes, |
| 225 |
}.Build() |
| 226 |
File_envoy_extensions_tracers_opentelemetry_samplers_v3_dynatrace_sampler_proto = out.File |
| 227 |
file_envoy_extensions_tracers_opentelemetry_samplers_v3_dynatrace_sampler_proto_rawDesc = nil |
| 228 |
file_envoy_extensions_tracers_opentelemetry_samplers_v3_dynatrace_sampler_proto_goTypes = nil |
| 229 |
file_envoy_extensions_tracers_opentelemetry_samplers_v3_dynatrace_sampler_proto_depIdxs = nil |
| 230 |
} |