| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
package metricspb |
| 16 |
|
| 17 |
import proto "github.com/gogo/protobuf/proto" |
| 18 |
import fmt "fmt" |
| 19 |
import math "math" |
| 20 |
import lightstep_collector "github.com/lightstep/lightstep-tracer-common/golang/gogo/collectorpb" |
| 21 |
import _ "google.golang.org/genproto/googleapis/api/annotations" |
| 22 |
import google_protobuf2 "github.com/gogo/protobuf/types" |
| 23 |
import google_protobuf "github.com/gogo/protobuf/types" |
| 24 |
|
| 25 |
import ( |
| 26 |
context "golang.org/x/net/context" |
| 27 |
grpc "google.golang.org/grpc" |
| 28 |
) |
| 29 |
|
| 30 |
import encoding_binary "encoding/binary" |
| 31 |
|
| 32 |
import io "io" |
| 33 |
|
| 34 |
|
| 35 |
var _ = proto.Marshal |
| 36 |
var _ = fmt.Errorf |
| 37 |
var _ = math.Inf |
| 38 |
|
| 39 |
|
| 40 |
|
| 41 |
|
| 42 |
|
| 43 |
const _ = proto.GoGoProtoPackageIsVersion2 |
| 44 |
|
| 45 |
|
| 46 |
|
| 47 |
type MetricKind int32 |
| 48 |
|
| 49 |
const ( |
| 50 |
|
| 51 |
|
| 52 |
|
| 53 |
MetricKind_INVALID_METRIC_KIND MetricKind = 0 |
| 54 |
|
| 55 |
|
| 56 |
MetricKind_COUNTER MetricKind = 1 |
| 57 |
|
| 58 |
|
| 59 |
MetricKind_GAUGE MetricKind = 2 |
| 60 |
) |
| 61 |
|
| 62 |
var MetricKind_name = map[int32]string{ |
| 63 |
0: "INVALID_METRIC_KIND", |
| 64 |
1: "COUNTER", |
| 65 |
2: "GAUGE", |
| 66 |
} |
| 67 |
var MetricKind_value = map[string]int32{ |
| 68 |
"INVALID_METRIC_KIND": 0, |
| 69 |
"COUNTER": 1, |
| 70 |
"GAUGE": 2, |
| 71 |
} |
| 72 |
|
| 73 |
func (x MetricKind) String() string { |
| 74 |
return proto.EnumName(MetricKind_name, int32(x)) |
| 75 |
} |
| 76 |
func (MetricKind) EnumDescriptor() ([]byte, []int) { return fileDescriptorMetrics, []int{0} } |
| 77 |
|
| 78 |
|
| 79 |
type MetricPoint struct { |
| 80 |
|
| 81 |
|
| 82 |
Kind MetricKind `protobuf:"varint,1,opt,name=kind,proto3,enum=lightstep.metrics.MetricKind" json:"kind,omitempty"` |
| 83 |
|
| 84 |
MetricName string `protobuf:"bytes,2,opt,name=metric_name,json=metricName,proto3" json:"metric_name,omitempty"` |
| 85 |
|
| 86 |
|
| 87 |
|
| 88 |
Start *google_protobuf.Timestamp `protobuf:"bytes,3,opt,name=start" json:"start,omitempty"` |
| 89 |
|
| 90 |
|
| 91 |
Duration *google_protobuf2.Duration `protobuf:"bytes,4,opt,name=duration" json:"duration,omitempty"` |
| 92 |
|
| 93 |
Labels []*lightstep_collector.KeyValue `protobuf:"bytes,5,rep,name=labels" json:"labels,omitempty"` |
| 94 |
|
| 95 |
|
| 96 |
|
| 97 |
|
| 98 |
|
| 99 |
|
| 100 |
|
| 101 |
Value isMetricPoint_Value `protobuf_oneof:"value"` |
| 102 |
} |
| 103 |
|
| 104 |
func (m *MetricPoint) Reset() { *m = MetricPoint{} } |
| 105 |
func (m *MetricPoint) String() string { return proto.CompactTextString(m) } |
| 106 |
func (*MetricPoint) ProtoMessage() {} |
| 107 |
func (*MetricPoint) Descriptor() ([]byte, []int) { return fileDescriptorMetrics, []int{0} } |
| 108 |
|
| 109 |
type isMetricPoint_Value interface { |
| 110 |
isMetricPoint_Value() |
| 111 |
MarshalTo([]byte) (int, error) |
| 112 |
Size() int |
| 113 |
} |
| 114 |
|
| 115 |
type MetricPoint_Uint64Value struct { |
| 116 |
Uint64Value uint64 `protobuf:"varint,6,opt,name=uint64_value,json=uint64Value,proto3,oneof"` |
| 117 |
} |
| 118 |
type MetricPoint_DoubleValue struct { |
| 119 |
DoubleValue float64 `protobuf:"fixed64,7,opt,name=double_value,json=doubleValue,proto3,oneof"` |
| 120 |
} |
| 121 |
|
| 122 |
func (*MetricPoint_Uint64Value) isMetricPoint_Value() {} |
| 123 |
func (*MetricPoint_DoubleValue) isMetricPoint_Value() {} |
| 124 |
|
| 125 |
func (m *MetricPoint) GetValue() isMetricPoint_Value { |
| 126 |
if m != nil { |
| 127 |
return m.Value |
| 128 |
} |
| 129 |
return nil |
| 130 |
} |
| 131 |
|
| 132 |
func (m *MetricPoint) GetKind() MetricKind { |
| 133 |
if m != nil { |
| 134 |
return m.Kind |
| 135 |
} |
| 136 |
return MetricKind_INVALID_METRIC_KIND |
| 137 |
} |
| 138 |
|
| 139 |
func (m *MetricPoint) GetMetricName() string { |
| 140 |
if m != nil { |
| 141 |
return m.MetricName |
| 142 |
} |
| 143 |
return "" |
| 144 |
} |
| 145 |
|
| 146 |
func (m *MetricPoint) GetStart() *google_protobuf.Timestamp { |
| 147 |
if m != nil { |
| 148 |
return m.Start |
| 149 |
} |
| 150 |
return nil |
| 151 |
} |
| 152 |
|
| 153 |
func (m *MetricPoint) GetDuration() *google_protobuf2.Duration { |
| 154 |
if m != nil { |
| 155 |
return m.Duration |
| 156 |
} |
| 157 |
return nil |
| 158 |
} |
| 159 |
|
| 160 |
func (m *MetricPoint) GetLabels() []*lightstep_collector.KeyValue { |
| 161 |
if m != nil { |
| 162 |
return m.Labels |
| 163 |
} |
| 164 |
return nil |
| 165 |
} |
| 166 |
|
| 167 |
func (m *MetricPoint) GetUint64Value() uint64 { |
| 168 |
if x, ok := m.GetValue().(*MetricPoint_Uint64Value); ok { |
| 169 |
return x.Uint64Value |
| 170 |
} |
| 171 |
return 0 |
| 172 |
} |
| 173 |
|
| 174 |
func (m *MetricPoint) GetDoubleValue() float64 { |
| 175 |
if x, ok := m.GetValue().(*MetricPoint_DoubleValue); ok { |
| 176 |
return x.DoubleValue |
| 177 |
} |
| 178 |
return 0 |
| 179 |
} |
| 180 |
|
| 181 |
|
| 182 |
func (*MetricPoint) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) { |
| 183 |
return _MetricPoint_OneofMarshaler, _MetricPoint_OneofUnmarshaler, _MetricPoint_OneofSizer, []interface{}{ |
| 184 |
(*MetricPoint_Uint64Value)(nil), |
| 185 |
(*MetricPoint_DoubleValue)(nil), |
| 186 |
} |
| 187 |
} |
| 188 |
|
| 189 |
func _MetricPoint_OneofMarshaler(msg proto.Message, b *proto.Buffer) error { |
| 190 |
m := msg.(*MetricPoint) |
| 191 |
|
| 192 |
switch x := m.Value.(type) { |
| 193 |
case *MetricPoint_Uint64Value: |
| 194 |
_ = b.EncodeVarint(6<<3 | proto.WireVarint) |
| 195 |
_ = b.EncodeVarint(uint64(x.Uint64Value)) |
| 196 |
case *MetricPoint_DoubleValue: |
| 197 |
_ = b.EncodeVarint(7<<3 | proto.WireFixed64) |
| 198 |
_ = b.EncodeFixed64(math.Float64bits(x.DoubleValue)) |
| 199 |
case nil: |
| 200 |
default: |
| 201 |
return fmt.Errorf("MetricPoint.Value has unexpected type %T", x) |
| 202 |
} |
| 203 |
return nil |
| 204 |
} |
| 205 |
|
| 206 |
func _MetricPoint_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) { |
| 207 |
m := msg.(*MetricPoint) |
| 208 |
switch tag { |
| 209 |
case 6: |
| 210 |
if wire != proto.WireVarint { |
| 211 |
return true, proto.ErrInternalBadWireType |
| 212 |
} |
| 213 |
x, err := b.DecodeVarint() |
| 214 |
m.Value = &MetricPoint_Uint64Value{x} |
| 215 |
return true, err |
| 216 |
case 7: |
| 217 |
if wire != proto.WireFixed64 { |
| 218 |
return true, proto.ErrInternalBadWireType |
| 219 |
} |
| 220 |
x, err := b.DecodeFixed64() |
| 221 |
m.Value = &MetricPoint_DoubleValue{math.Float64frombits(x)} |
| 222 |
return true, err |
| 223 |
default: |
| 224 |
return false, nil |
| 225 |
} |
| 226 |
} |
| 227 |
|
| 228 |
func _MetricPoint_OneofSizer(msg proto.Message) (n int) { |
| 229 |
m := msg.(*MetricPoint) |
| 230 |
|
| 231 |
switch x := m.Value.(type) { |
| 232 |
case *MetricPoint_Uint64Value: |
| 233 |
n += proto.SizeVarint(6<<3 | proto.WireVarint) |
| 234 |
n += proto.SizeVarint(uint64(x.Uint64Value)) |
| 235 |
case *MetricPoint_DoubleValue: |
| 236 |
n += proto.SizeVarint(7<<3 | proto.WireFixed64) |
| 237 |
n += 8 |
| 238 |
case nil: |
| 239 |
default: |
| 240 |
panic(fmt.Sprintf("proto: unexpected type %T in oneof", x)) |
| 241 |
} |
| 242 |
return n |
| 243 |
} |
| 244 |
|
| 245 |
|
| 246 |
type IngestRequest struct { |
| 247 |
|
| 248 |
|
| 249 |
|
| 250 |
IdempotencyKey string `protobuf:"bytes,1,opt,name=idempotency_key,json=idempotencyKey,proto3" json:"idempotency_key,omitempty"` |
| 251 |
|
| 252 |
Reporter *lightstep_collector.Reporter `protobuf:"bytes,2,opt,name=reporter" json:"reporter,omitempty"` |
| 253 |
|
| 254 |
Points []*MetricPoint `protobuf:"bytes,3,rep,name=points" json:"points,omitempty"` |
| 255 |
} |
| 256 |
|
| 257 |
func (m *IngestRequest) Reset() { *m = IngestRequest{} } |
| 258 |
func (m *IngestRequest) String() string { return proto.CompactTextString(m) } |
| 259 |
func (*IngestRequest) ProtoMessage() {} |
| 260 |
func (*IngestRequest) Descriptor() ([]byte, []int) { return fileDescriptorMetrics, []int{1} } |
| 261 |
|
| 262 |
func (m *IngestRequest) GetIdempotencyKey() string { |
| 263 |
if m != nil { |
| 264 |
return m.IdempotencyKey |
| 265 |
} |
| 266 |
return "" |
| 267 |
} |
| 268 |
|
| 269 |
func (m *IngestRequest) GetReporter() *lightstep_collector.Reporter { |
| 270 |
if m != nil { |
| 271 |
return m.Reporter |
| 272 |
} |
| 273 |
return nil |
| 274 |
} |
| 275 |
|
| 276 |
func (m *IngestRequest) GetPoints() []*MetricPoint { |
| 277 |
if m != nil { |
| 278 |
return m.Points |
| 279 |
} |
| 280 |
return nil |
| 281 |
} |
| 282 |
|
| 283 |
|
| 284 |
type IngestResponse struct { |
| 285 |
} |
| 286 |
|
| 287 |
func (m *IngestResponse) Reset() { *m = IngestResponse{} } |
| 288 |
func (m *IngestResponse) String() string { return proto.CompactTextString(m) } |
| 289 |
func (*IngestResponse) ProtoMessage() {} |
| 290 |
func (*IngestResponse) Descriptor() ([]byte, []int) { return fileDescriptorMetrics, []int{2} } |
| 291 |
|
| 292 |
func init() { |
| 293 |
proto.RegisterType((*MetricPoint)(nil), "lightstep.metrics.MetricPoint") |
| 294 |
proto.RegisterType((*IngestRequest)(nil), "lightstep.metrics.IngestRequest") |
| 295 |
proto.RegisterType((*IngestResponse)(nil), "lightstep.metrics.IngestResponse") |
| 296 |
proto.RegisterEnum("lightstep.metrics.MetricKind", MetricKind_name, MetricKind_value) |
| 297 |
} |
| 298 |
|
| 299 |
|
| 300 |
var _ context.Context |
| 301 |
var _ grpc.ClientConn |
| 302 |
|
| 303 |
|
| 304 |
|
| 305 |
const _ = grpc.SupportPackageIsVersion4 |
| 306 |
|
| 307 |
|
| 308 |
|
| 309 |
type MetricsServiceClient interface { |
| 310 |
Report(ctx context.Context, in *IngestRequest, opts ...grpc.CallOption) (*IngestResponse, error) |
| 311 |
} |
| 312 |
|
| 313 |
type metricsServiceClient struct { |
| 314 |
cc *grpc.ClientConn |
| 315 |
} |
| 316 |
|
| 317 |
func NewMetricsServiceClient(cc *grpc.ClientConn) MetricsServiceClient { |
| 318 |
return &metricsServiceClient{cc} |
| 319 |
} |
| 320 |
|
| 321 |
func (c *metricsServiceClient) Report(ctx context.Context, in *IngestRequest, opts ...grpc.CallOption) (*IngestResponse, error) { |
| 322 |
out := new(IngestResponse) |
| 323 |
err := grpc.Invoke(ctx, "/lightstep.metrics.MetricsService/Report", in, out, c.cc, opts...) |
| 324 |
if err != nil { |
| 325 |
return nil, err |
| 326 |
} |
| 327 |
return out, nil |
| 328 |
} |
| 329 |
|
| 330 |
|
| 331 |
|
| 332 |
type MetricsServiceServer interface { |
| 333 |
Report(context.Context, *IngestRequest) (*IngestResponse, error) |
| 334 |
} |
| 335 |
|
| 336 |
func RegisterMetricsServiceServer(s *grpc.Server, srv MetricsServiceServer) { |
| 337 |
s.RegisterService(&_MetricsService_serviceDesc, srv) |
| 338 |
} |
| 339 |
|
| 340 |
func _MetricsService_Report_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 341 |
in := new(IngestRequest) |
| 342 |
if err := dec(in); err != nil { |
| 343 |
return nil, err |
| 344 |
} |
| 345 |
if interceptor == nil { |
| 346 |
return srv.(MetricsServiceServer).Report(ctx, in) |
| 347 |
} |
| 348 |
info := &grpc.UnaryServerInfo{ |
| 349 |
Server: srv, |
| 350 |
FullMethod: "/lightstep.metrics.MetricsService/Report", |
| 351 |
} |
| 352 |
handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 353 |
return srv.(MetricsServiceServer).Report(ctx, req.(*IngestRequest)) |
| 354 |
} |
| 355 |
return interceptor(ctx, in, info, handler) |
| 356 |
} |
| 357 |
|
| 358 |
var _MetricsService_serviceDesc = grpc.ServiceDesc{ |
| 359 |
ServiceName: "lightstep.metrics.MetricsService", |
| 360 |
HandlerType: (*MetricsServiceServer)(nil), |
| 361 |
Methods: []grpc.MethodDesc{ |
| 362 |
{ |
| 363 |
MethodName: "Report", |
| 364 |
Handler: _MetricsService_Report_Handler, |
| 365 |
}, |
| 366 |
}, |
| 367 |
Streams: []grpc.StreamDesc{}, |
| 368 |
Metadata: "github.com/lightstep/lightstep-tracer-common/tmpgen/metrics.proto", |
| 369 |
} |
| 370 |
|
| 371 |
func (m *MetricPoint) Marshal() (dAtA []byte, err error) { |
| 372 |
size := m.Size() |
| 373 |
dAtA = make([]byte, size) |
| 374 |
n, err := m.MarshalTo(dAtA) |
| 375 |
if err != nil { |
| 376 |
return nil, err |
| 377 |
} |
| 378 |
return dAtA[:n], nil |
| 379 |
} |
| 380 |
|
| 381 |
func (m *MetricPoint) MarshalTo(dAtA []byte) (int, error) { |
| 382 |
var i int |
| 383 |
_ = i |
| 384 |
var l int |
| 385 |
_ = l |
| 386 |
if m.Kind != 0 { |
| 387 |
dAtA[i] = 0x8 |
| 388 |
i++ |
| 389 |
i = encodeVarintMetrics(dAtA, i, uint64(m.Kind)) |
| 390 |
} |
| 391 |
if len(m.MetricName) > 0 { |
| 392 |
dAtA[i] = 0x12 |
| 393 |
i++ |
| 394 |
i = encodeVarintMetrics(dAtA, i, uint64(len(m.MetricName))) |
| 395 |
i += copy(dAtA[i:], m.MetricName) |
| 396 |
} |
| 397 |
if m.Start != nil { |
| 398 |
dAtA[i] = 0x1a |
| 399 |
i++ |
| 400 |
i = encodeVarintMetrics(dAtA, i, uint64(m.Start.Size())) |
| 401 |
n1, err := m.Start.MarshalTo(dAtA[i:]) |
| 402 |
if err != nil { |
| 403 |
return 0, err |
| 404 |
} |
| 405 |
i += n1 |
| 406 |
} |
| 407 |
if m.Duration != nil { |
| 408 |
dAtA[i] = 0x22 |
| 409 |
i++ |
| 410 |
i = encodeVarintMetrics(dAtA, i, uint64(m.Duration.Size())) |
| 411 |
n2, err := m.Duration.MarshalTo(dAtA[i:]) |
| 412 |
if err != nil { |
| 413 |
return 0, err |
| 414 |
} |
| 415 |
i += n2 |
| 416 |
} |
| 417 |
if len(m.Labels) > 0 { |
| 418 |
for _, msg := range m.Labels { |
| 419 |
dAtA[i] = 0x2a |
| 420 |
i++ |
| 421 |
i = encodeVarintMetrics(dAtA, i, uint64(msg.Size())) |
| 422 |
n, err := msg.MarshalTo(dAtA[i:]) |
| 423 |
if err != nil { |
| 424 |
return 0, err |
| 425 |
} |
| 426 |
i += n |
| 427 |
} |
| 428 |
} |
| 429 |
if m.Value != nil { |
| 430 |
nn3, err := m.Value.MarshalTo(dAtA[i:]) |
| 431 |
if err != nil { |
| 432 |
return 0, err |
| 433 |
} |
| 434 |
i += nn3 |
| 435 |
} |
| 436 |
return i, nil |
| 437 |
} |
| 438 |
|
| 439 |
func (m *MetricPoint_Uint64Value) MarshalTo(dAtA []byte) (int, error) { |
| 440 |
i := 0 |
| 441 |
dAtA[i] = 0x30 |
| 442 |
i++ |
| 443 |
i = encodeVarintMetrics(dAtA, i, uint64(m.Uint64Value)) |
| 444 |
return i, nil |
| 445 |
} |
| 446 |
func (m *MetricPoint_DoubleValue) MarshalTo(dAtA []byte) (int, error) { |
| 447 |
i := 0 |
| 448 |
dAtA[i] = 0x39 |
| 449 |
i++ |
| 450 |
encoding_binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(m.DoubleValue)))) |
| 451 |
i += 8 |
| 452 |
return i, nil |
| 453 |
} |
| 454 |
func (m *IngestRequest) Marshal() (dAtA []byte, err error) { |
| 455 |
size := m.Size() |
| 456 |
dAtA = make([]byte, size) |
| 457 |
n, err := m.MarshalTo(dAtA) |
| 458 |
if err != nil { |
| 459 |
return nil, err |
| 460 |
} |
| 461 |
return dAtA[:n], nil |
| 462 |
} |
| 463 |
|
| 464 |
func (m *IngestRequest) MarshalTo(dAtA []byte) (int, error) { |
| 465 |
var i int |
| 466 |
_ = i |
| 467 |
var l int |
| 468 |
_ = l |
| 469 |
if len(m.IdempotencyKey) > 0 { |
| 470 |
dAtA[i] = 0xa |
| 471 |
i++ |
| 472 |
i = encodeVarintMetrics(dAtA, i, uint64(len(m.IdempotencyKey))) |
| 473 |
i += copy(dAtA[i:], m.IdempotencyKey) |
| 474 |
} |
| 475 |
if m.Reporter != nil { |
| 476 |
dAtA[i] = 0x12 |
| 477 |
i++ |
| 478 |
i = encodeVarintMetrics(dAtA, i, uint64(m.Reporter.Size())) |
| 479 |
n4, err := m.Reporter.MarshalTo(dAtA[i:]) |
| 480 |
if err != nil { |
| 481 |
return 0, err |
| 482 |
} |
| 483 |
i += n4 |
| 484 |
} |
| 485 |
if len(m.Points) > 0 { |
| 486 |
for _, msg := range m.Points { |
| 487 |
dAtA[i] = 0x1a |
| 488 |
i++ |
| 489 |
i = encodeVarintMetrics(dAtA, i, uint64(msg.Size())) |
| 490 |
n, err := msg.MarshalTo(dAtA[i:]) |
| 491 |
if err != nil { |
| 492 |
return 0, err |
| 493 |
} |
| 494 |
i += n |
| 495 |
} |
| 496 |
} |
| 497 |
return i, nil |
| 498 |
} |
| 499 |
|
| 500 |
func (m *IngestResponse) Marshal() (dAtA []byte, err error) { |
| 501 |
size := m.Size() |
| 502 |
dAtA = make([]byte, size) |
| 503 |
n, err := m.MarshalTo(dAtA) |
| 504 |
if err != nil { |
| 505 |
return nil, err |
| 506 |
} |
| 507 |
return dAtA[:n], nil |
| 508 |
} |
| 509 |
|
| 510 |
func (m *IngestResponse) MarshalTo(dAtA []byte) (int, error) { |
| 511 |
var i int |
| 512 |
_ = i |
| 513 |
var l int |
| 514 |
_ = l |
| 515 |
return i, nil |
| 516 |
} |
| 517 |
|
| 518 |
func encodeVarintMetrics(dAtA []byte, offset int, v uint64) int { |
| 519 |
for v >= 1<<7 { |
| 520 |
dAtA[offset] = uint8(v&0x7f | 0x80) |
| 521 |
v >>= 7 |
| 522 |
offset++ |
| 523 |
} |
| 524 |
dAtA[offset] = uint8(v) |
| 525 |
return offset + 1 |
| 526 |
} |
| 527 |
func (m *MetricPoint) Size() (n int) { |
| 528 |
var l int |
| 529 |
_ = l |
| 530 |
if m.Kind != 0 { |
| 531 |
n += 1 + sovMetrics(uint64(m.Kind)) |
| 532 |
} |
| 533 |
l = len(m.MetricName) |
| 534 |
if l > 0 { |
| 535 |
n += 1 + l + sovMetrics(uint64(l)) |
| 536 |
} |
| 537 |
if m.Start != nil { |
| 538 |
l = m.Start.Size() |
| 539 |
n += 1 + l + sovMetrics(uint64(l)) |
| 540 |
} |
| 541 |
if m.Duration != nil { |
| 542 |
l = m.Duration.Size() |
| 543 |
n += 1 + l + sovMetrics(uint64(l)) |
| 544 |
} |
| 545 |
if len(m.Labels) > 0 { |
| 546 |
for _, e := range m.Labels { |
| 547 |
l = e.Size() |
| 548 |
n += 1 + l + sovMetrics(uint64(l)) |
| 549 |
} |
| 550 |
} |
| 551 |
if m.Value != nil { |
| 552 |
n += m.Value.Size() |
| 553 |
} |
| 554 |
return n |
| 555 |
} |
| 556 |
|
| 557 |
func (m *MetricPoint_Uint64Value) Size() (n int) { |
| 558 |
var l int |
| 559 |
_ = l |
| 560 |
n += 1 + sovMetrics(uint64(m.Uint64Value)) |
| 561 |
return n |
| 562 |
} |
| 563 |
func (m *MetricPoint_DoubleValue) Size() (n int) { |
| 564 |
var l int |
| 565 |
_ = l |
| 566 |
n += 9 |
| 567 |
return n |
| 568 |
} |
| 569 |
func (m *IngestRequest) Size() (n int) { |
| 570 |
var l int |
| 571 |
_ = l |
| 572 |
l = len(m.IdempotencyKey) |
| 573 |
if l > 0 { |
| 574 |
n += 1 + l + sovMetrics(uint64(l)) |
| 575 |
} |
| 576 |
if m.Reporter != nil { |
| 577 |
l = m.Reporter.Size() |
| 578 |
n += 1 + l + sovMetrics(uint64(l)) |
| 579 |
} |
| 580 |
if len(m.Points) > 0 { |
| 581 |
for _, e := range m.Points { |
| 582 |
l = e.Size() |
| 583 |
n += 1 + l + sovMetrics(uint64(l)) |
| 584 |
} |
| 585 |
} |
| 586 |
return n |
| 587 |
} |
| 588 |
|
| 589 |
func (m *IngestResponse) Size() (n int) { |
| 590 |
var l int |
| 591 |
_ = l |
| 592 |
return n |
| 593 |
} |
| 594 |
|
| 595 |
func sovMetrics(x uint64) (n int) { |
| 596 |
for { |
| 597 |
n++ |
| 598 |
x >>= 7 |
| 599 |
if x == 0 { |
| 600 |
break |
| 601 |
} |
| 602 |
} |
| 603 |
return n |
| 604 |
} |
| 605 |
func sozMetrics(x uint64) (n int) { |
| 606 |
return sovMetrics(uint64((x << 1) ^ uint64((int64(x) >> 63)))) |
| 607 |
} |
| 608 |
func (m *MetricPoint) Unmarshal(dAtA []byte) error { |
| 609 |
l := len(dAtA) |
| 610 |
iNdEx := 0 |
| 611 |
for iNdEx < l { |
| 612 |
preIndex := iNdEx |
| 613 |
var wire uint64 |
| 614 |
for shift := uint(0); ; shift += 7 { |
| 615 |
if shift >= 64 { |
| 616 |
return ErrIntOverflowMetrics |
| 617 |
} |
| 618 |
if iNdEx >= l { |
| 619 |
return io.ErrUnexpectedEOF |
| 620 |
} |
| 621 |
b := dAtA[iNdEx] |
| 622 |
iNdEx++ |
| 623 |
wire |= (uint64(b) & 0x7F) << shift |
| 624 |
if b < 0x80 { |
| 625 |
break |
| 626 |
} |
| 627 |
} |
| 628 |
fieldNum := int32(wire >> 3) |
| 629 |
wireType := int(wire & 0x7) |
| 630 |
if wireType == 4 { |
| 631 |
return fmt.Errorf("proto: MetricPoint: wiretype end group for non-group") |
| 632 |
} |
| 633 |
if fieldNum <= 0 { |
| 634 |
return fmt.Errorf("proto: MetricPoint: illegal tag %d (wire type %d)", fieldNum, wire) |
| 635 |
} |
| 636 |
switch fieldNum { |
| 637 |
case 1: |
| 638 |
if wireType != 0 { |
| 639 |
return fmt.Errorf("proto: wrong wireType = %d for field Kind", wireType) |
| 640 |
} |
| 641 |
m.Kind = 0 |
| 642 |
for shift := uint(0); ; shift += 7 { |
| 643 |
if shift >= 64 { |
| 644 |
return ErrIntOverflowMetrics |
| 645 |
} |
| 646 |
if iNdEx >= l { |
| 647 |
return io.ErrUnexpectedEOF |
| 648 |
} |
| 649 |
b := dAtA[iNdEx] |
| 650 |
iNdEx++ |
| 651 |
m.Kind |= (MetricKind(b) & 0x7F) << shift |
| 652 |
if b < 0x80 { |
| 653 |
break |
| 654 |
} |
| 655 |
} |
| 656 |
case 2: |
| 657 |
if wireType != 2 { |
| 658 |
return fmt.Errorf("proto: wrong wireType = %d for field MetricName", wireType) |
| 659 |
} |
| 660 |
var stringLen uint64 |
| 661 |
for shift := uint(0); ; shift += 7 { |
| 662 |
if shift >= 64 { |
| 663 |
return ErrIntOverflowMetrics |
| 664 |
} |
| 665 |
if iNdEx >= l { |
| 666 |
return io.ErrUnexpectedEOF |
| 667 |
} |
| 668 |
b := dAtA[iNdEx] |
| 669 |
iNdEx++ |
| 670 |
stringLen |= (uint64(b) & 0x7F) << shift |
| 671 |
if b < 0x80 { |
| 672 |
break |
| 673 |
} |
| 674 |
} |
| 675 |
intStringLen := int(stringLen) |
| 676 |
if intStringLen < 0 { |
| 677 |
return ErrInvalidLengthMetrics |
| 678 |
} |
| 679 |
postIndex := iNdEx + intStringLen |
| 680 |
if postIndex > l { |
| 681 |
return io.ErrUnexpectedEOF |
| 682 |
} |
| 683 |
m.MetricName = string(dAtA[iNdEx:postIndex]) |
| 684 |
iNdEx = postIndex |
| 685 |
case 3: |
| 686 |
if wireType != 2 { |
| 687 |
return fmt.Errorf("proto: wrong wireType = %d for field Start", wireType) |
| 688 |
} |
| 689 |
var msglen int |
| 690 |
for shift := uint(0); ; shift += 7 { |
| 691 |
if shift >= 64 { |
| 692 |
return ErrIntOverflowMetrics |
| 693 |
} |
| 694 |
if iNdEx >= l { |
| 695 |
return io.ErrUnexpectedEOF |
| 696 |
} |
| 697 |
b := dAtA[iNdEx] |
| 698 |
iNdEx++ |
| 699 |
msglen |= (int(b) & 0x7F) << shift |
| 700 |
if b < 0x80 { |
| 701 |
break |
| 702 |
} |
| 703 |
} |
| 704 |
if msglen < 0 { |
| 705 |
return ErrInvalidLengthMetrics |
| 706 |
} |
| 707 |
postIndex := iNdEx + msglen |
| 708 |
if postIndex > l { |
| 709 |
return io.ErrUnexpectedEOF |
| 710 |
} |
| 711 |
if m.Start == nil { |
| 712 |
m.Start = &google_protobuf.Timestamp{} |
| 713 |
} |
| 714 |
if err := m.Start.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 715 |
return err |
| 716 |
} |
| 717 |
iNdEx = postIndex |
| 718 |
case 4: |
| 719 |
if wireType != 2 { |
| 720 |
return fmt.Errorf("proto: wrong wireType = %d for field Duration", wireType) |
| 721 |
} |
| 722 |
var msglen int |
| 723 |
for shift := uint(0); ; shift += 7 { |
| 724 |
if shift >= 64 { |
| 725 |
return ErrIntOverflowMetrics |
| 726 |
} |
| 727 |
if iNdEx >= l { |
| 728 |
return io.ErrUnexpectedEOF |
| 729 |
} |
| 730 |
b := dAtA[iNdEx] |
| 731 |
iNdEx++ |
| 732 |
msglen |= (int(b) & 0x7F) << shift |
| 733 |
if b < 0x80 { |
| 734 |
break |
| 735 |
} |
| 736 |
} |
| 737 |
if msglen < 0 { |
| 738 |
return ErrInvalidLengthMetrics |
| 739 |
} |
| 740 |
postIndex := iNdEx + msglen |
| 741 |
if postIndex > l { |
| 742 |
return io.ErrUnexpectedEOF |
| 743 |
} |
| 744 |
if m.Duration == nil { |
| 745 |
m.Duration = &google_protobuf2.Duration{} |
| 746 |
} |
| 747 |
if err := m.Duration.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 748 |
return err |
| 749 |
} |
| 750 |
iNdEx = postIndex |
| 751 |
case 5: |
| 752 |
if wireType != 2 { |
| 753 |
return fmt.Errorf("proto: wrong wireType = %d for field Labels", wireType) |
| 754 |
} |
| 755 |
var msglen int |
| 756 |
for shift := uint(0); ; shift += 7 { |
| 757 |
if shift >= 64 { |
| 758 |
return ErrIntOverflowMetrics |
| 759 |
} |
| 760 |
if iNdEx >= l { |
| 761 |
return io.ErrUnexpectedEOF |
| 762 |
} |
| 763 |
b := dAtA[iNdEx] |
| 764 |
iNdEx++ |
| 765 |
msglen |= (int(b) & 0x7F) << shift |
| 766 |
if b < 0x80 { |
| 767 |
break |
| 768 |
} |
| 769 |
} |
| 770 |
if msglen < 0 { |
| 771 |
return ErrInvalidLengthMetrics |
| 772 |
} |
| 773 |
postIndex := iNdEx + msglen |
| 774 |
if postIndex > l { |
| 775 |
return io.ErrUnexpectedEOF |
| 776 |
} |
| 777 |
m.Labels = append(m.Labels, &lightstep_collector.KeyValue{}) |
| 778 |
if err := m.Labels[len(m.Labels)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 779 |
return err |
| 780 |
} |
| 781 |
iNdEx = postIndex |
| 782 |
case 6: |
| 783 |
if wireType != 0 { |
| 784 |
return fmt.Errorf("proto: wrong wireType = %d for field Uint64Value", wireType) |
| 785 |
} |
| 786 |
var v uint64 |
| 787 |
for shift := uint(0); ; shift += 7 { |
| 788 |
if shift >= 64 { |
| 789 |
return ErrIntOverflowMetrics |
| 790 |
} |
| 791 |
if iNdEx >= l { |
| 792 |
return io.ErrUnexpectedEOF |
| 793 |
} |
| 794 |
b := dAtA[iNdEx] |
| 795 |
iNdEx++ |
| 796 |
v |= (uint64(b) & 0x7F) << shift |
| 797 |
if b < 0x80 { |
| 798 |
break |
| 799 |
} |
| 800 |
} |
| 801 |
m.Value = &MetricPoint_Uint64Value{v} |
| 802 |
case 7: |
| 803 |
if wireType != 1 { |
| 804 |
return fmt.Errorf("proto: wrong wireType = %d for field DoubleValue", wireType) |
| 805 |
} |
| 806 |
var v uint64 |
| 807 |
if (iNdEx + 8) > l { |
| 808 |
return io.ErrUnexpectedEOF |
| 809 |
} |
| 810 |
v = uint64(encoding_binary.LittleEndian.Uint64(dAtA[iNdEx:])) |
| 811 |
iNdEx += 8 |
| 812 |
m.Value = &MetricPoint_DoubleValue{float64(math.Float64frombits(v))} |
| 813 |
default: |
| 814 |
iNdEx = preIndex |
| 815 |
skippy, err := skipMetrics(dAtA[iNdEx:]) |
| 816 |
if err != nil { |
| 817 |
return err |
| 818 |
} |
| 819 |
if skippy < 0 { |
| 820 |
return ErrInvalidLengthMetrics |
| 821 |
} |
| 822 |
if (iNdEx + skippy) > l { |
| 823 |
return io.ErrUnexpectedEOF |
| 824 |
} |
| 825 |
iNdEx += skippy |
| 826 |
} |
| 827 |
} |
| 828 |
|
| 829 |
if iNdEx > l { |
| 830 |
return io.ErrUnexpectedEOF |
| 831 |
} |
| 832 |
return nil |
| 833 |
} |
| 834 |
func (m *IngestRequest) Unmarshal(dAtA []byte) error { |
| 835 |
l := len(dAtA) |
| 836 |
iNdEx := 0 |
| 837 |
for iNdEx < l { |
| 838 |
preIndex := iNdEx |
| 839 |
var wire uint64 |
| 840 |
for shift := uint(0); ; shift += 7 { |
| 841 |
if shift >= 64 { |
| 842 |
return ErrIntOverflowMetrics |
| 843 |
} |
| 844 |
if iNdEx >= l { |
| 845 |
return io.ErrUnexpectedEOF |
| 846 |
} |
| 847 |
b := dAtA[iNdEx] |
| 848 |
iNdEx++ |
| 849 |
wire |= (uint64(b) & 0x7F) << shift |
| 850 |
if b < 0x80 { |
| 851 |
break |
| 852 |
} |
| 853 |
} |
| 854 |
fieldNum := int32(wire >> 3) |
| 855 |
wireType := int(wire & 0x7) |
| 856 |
if wireType == 4 { |
| 857 |
return fmt.Errorf("proto: IngestRequest: wiretype end group for non-group") |
| 858 |
} |
| 859 |
if fieldNum <= 0 { |
| 860 |
return fmt.Errorf("proto: IngestRequest: illegal tag %d (wire type %d)", fieldNum, wire) |
| 861 |
} |
| 862 |
switch fieldNum { |
| 863 |
case 1: |
| 864 |
if wireType != 2 { |
| 865 |
return fmt.Errorf("proto: wrong wireType = %d for field IdempotencyKey", wireType) |
| 866 |
} |
| 867 |
var stringLen uint64 |
| 868 |
for shift := uint(0); ; shift += 7 { |
| 869 |
if shift >= 64 { |
| 870 |
return ErrIntOverflowMetrics |
| 871 |
} |
| 872 |
if iNdEx >= l { |
| 873 |
return io.ErrUnexpectedEOF |
| 874 |
} |
| 875 |
b := dAtA[iNdEx] |
| 876 |
iNdEx++ |
| 877 |
stringLen |= (uint64(b) & 0x7F) << shift |
| 878 |
if b < 0x80 { |
| 879 |
break |
| 880 |
} |
| 881 |
} |
| 882 |
intStringLen := int(stringLen) |
| 883 |
if intStringLen < 0 { |
| 884 |
return ErrInvalidLengthMetrics |
| 885 |
} |
| 886 |
postIndex := iNdEx + intStringLen |
| 887 |
if postIndex > l { |
| 888 |
return io.ErrUnexpectedEOF |
| 889 |
} |
| 890 |
m.IdempotencyKey = string(dAtA[iNdEx:postIndex]) |
| 891 |
iNdEx = postIndex |
| 892 |
case 2: |
| 893 |
if wireType != 2 { |
| 894 |
return fmt.Errorf("proto: wrong wireType = %d for field Reporter", wireType) |
| 895 |
} |
| 896 |
var msglen int |
| 897 |
for shift := uint(0); ; shift += 7 { |
| 898 |
if shift >= 64 { |
| 899 |
return ErrIntOverflowMetrics |
| 900 |
} |
| 901 |
if iNdEx >= l { |
| 902 |
return io.ErrUnexpectedEOF |
| 903 |
} |
| 904 |
b := dAtA[iNdEx] |
| 905 |
iNdEx++ |
| 906 |
msglen |= (int(b) & 0x7F) << shift |
| 907 |
if b < 0x80 { |
| 908 |
break |
| 909 |
} |
| 910 |
} |
| 911 |
if msglen < 0 { |
| 912 |
return ErrInvalidLengthMetrics |
| 913 |
} |
| 914 |
postIndex := iNdEx + msglen |
| 915 |
if postIndex > l { |
| 916 |
return io.ErrUnexpectedEOF |
| 917 |
} |
| 918 |
if m.Reporter == nil { |
| 919 |
m.Reporter = &lightstep_collector.Reporter{} |
| 920 |
} |
| 921 |
if err := m.Reporter.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 922 |
return err |
| 923 |
} |
| 924 |
iNdEx = postIndex |
| 925 |
case 3: |
| 926 |
if wireType != 2 { |
| 927 |
return fmt.Errorf("proto: wrong wireType = %d for field Points", wireType) |
| 928 |
} |
| 929 |
var msglen int |
| 930 |
for shift := uint(0); ; shift += 7 { |
| 931 |
if shift >= 64 { |
| 932 |
return ErrIntOverflowMetrics |
| 933 |
} |
| 934 |
if iNdEx >= l { |
| 935 |
return io.ErrUnexpectedEOF |
| 936 |
} |
| 937 |
b := dAtA[iNdEx] |
| 938 |
iNdEx++ |
| 939 |
msglen |= (int(b) & 0x7F) << shift |
| 940 |
if b < 0x80 { |
| 941 |
break |
| 942 |
} |
| 943 |
} |
| 944 |
if msglen < 0 { |
| 945 |
return ErrInvalidLengthMetrics |
| 946 |
} |
| 947 |
postIndex := iNdEx + msglen |
| 948 |
if postIndex > l { |
| 949 |
return io.ErrUnexpectedEOF |
| 950 |
} |
| 951 |
m.Points = append(m.Points, &MetricPoint{}) |
| 952 |
if err := m.Points[len(m.Points)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 953 |
return err |
| 954 |
} |
| 955 |
iNdEx = postIndex |
| 956 |
default: |
| 957 |
iNdEx = preIndex |
| 958 |
skippy, err := skipMetrics(dAtA[iNdEx:]) |
| 959 |
if err != nil { |
| 960 |
return err |
| 961 |
} |
| 962 |
if skippy < 0 { |
| 963 |
return ErrInvalidLengthMetrics |
| 964 |
} |
| 965 |
if (iNdEx + skippy) > l { |
| 966 |
return io.ErrUnexpectedEOF |
| 967 |
} |
| 968 |
iNdEx += skippy |
| 969 |
} |
| 970 |
} |
| 971 |
|
| 972 |
if iNdEx > l { |
| 973 |
return io.ErrUnexpectedEOF |
| 974 |
} |
| 975 |
return nil |
| 976 |
} |
| 977 |
func (m *IngestResponse) Unmarshal(dAtA []byte) error { |
| 978 |
l := len(dAtA) |
| 979 |
iNdEx := 0 |
| 980 |
for iNdEx < l { |
| 981 |
preIndex := iNdEx |
| 982 |
var wire uint64 |
| 983 |
for shift := uint(0); ; shift += 7 { |
| 984 |
if shift >= 64 { |
| 985 |
return ErrIntOverflowMetrics |
| 986 |
} |
| 987 |
if iNdEx >= l { |
| 988 |
return io.ErrUnexpectedEOF |
| 989 |
} |
| 990 |
b := dAtA[iNdEx] |
| 991 |
iNdEx++ |
| 992 |
wire |= (uint64(b) & 0x7F) << shift |
| 993 |
if b < 0x80 { |
| 994 |
break |
| 995 |
} |
| 996 |
} |
| 997 |
fieldNum := int32(wire >> 3) |
| 998 |
wireType := int(wire & 0x7) |
| 999 |
if wireType == 4 { |
| 1000 |
return fmt.Errorf("proto: IngestResponse: wiretype end group for non-group") |
| 1001 |
} |
| 1002 |
if fieldNum <= 0 { |
| 1003 |
return fmt.Errorf("proto: IngestResponse: illegal tag %d (wire type %d)", fieldNum, wire) |
| 1004 |
} |
| 1005 |
switch fieldNum { |
| 1006 |
default: |
| 1007 |
iNdEx = preIndex |
| 1008 |
skippy, err := skipMetrics(dAtA[iNdEx:]) |
| 1009 |
if err != nil { |
| 1010 |
return err |
| 1011 |
} |
| 1012 |
if skippy < 0 { |
| 1013 |
return ErrInvalidLengthMetrics |
| 1014 |
} |
| 1015 |
if (iNdEx + skippy) > l { |
| 1016 |
return io.ErrUnexpectedEOF |
| 1017 |
} |
| 1018 |
iNdEx += skippy |
| 1019 |
} |
| 1020 |
} |
| 1021 |
|
| 1022 |
if iNdEx > l { |
| 1023 |
return io.ErrUnexpectedEOF |
| 1024 |
} |
| 1025 |
return nil |
| 1026 |
} |
| 1027 |
func skipMetrics(dAtA []byte) (n int, err error) { |
| 1028 |
l := len(dAtA) |
| 1029 |
iNdEx := 0 |
| 1030 |
for iNdEx < l { |
| 1031 |
var wire uint64 |
| 1032 |
for shift := uint(0); ; shift += 7 { |
| 1033 |
if shift >= 64 { |
| 1034 |
return 0, ErrIntOverflowMetrics |
| 1035 |
} |
| 1036 |
if iNdEx >= l { |
| 1037 |
return 0, io.ErrUnexpectedEOF |
| 1038 |
} |
| 1039 |
b := dAtA[iNdEx] |
| 1040 |
iNdEx++ |
| 1041 |
wire |= (uint64(b) & 0x7F) << shift |
| 1042 |
if b < 0x80 { |
| 1043 |
break |
| 1044 |
} |
| 1045 |
} |
| 1046 |
wireType := int(wire & 0x7) |
| 1047 |
switch wireType { |
| 1048 |
case 0: |
| 1049 |
for shift := uint(0); ; shift += 7 { |
| 1050 |
if shift >= 64 { |
| 1051 |
return 0, ErrIntOverflowMetrics |
| 1052 |
} |
| 1053 |
if iNdEx >= l { |
| 1054 |
return 0, io.ErrUnexpectedEOF |
| 1055 |
} |
| 1056 |
iNdEx++ |
| 1057 |
if dAtA[iNdEx-1] < 0x80 { |
| 1058 |
break |
| 1059 |
} |
| 1060 |
} |
| 1061 |
return iNdEx, nil |
| 1062 |
case 1: |
| 1063 |
iNdEx += 8 |
| 1064 |
return iNdEx, nil |
| 1065 |
case 2: |
| 1066 |
var length int |
| 1067 |
for shift := uint(0); ; shift += 7 { |
| 1068 |
if shift >= 64 { |
| 1069 |
return 0, ErrIntOverflowMetrics |
| 1070 |
} |
| 1071 |
if iNdEx >= l { |
| 1072 |
return 0, io.ErrUnexpectedEOF |
| 1073 |
} |
| 1074 |
b := dAtA[iNdEx] |
| 1075 |
iNdEx++ |
| 1076 |
length |= (int(b) & 0x7F) << shift |
| 1077 |
if b < 0x80 { |
| 1078 |
break |
| 1079 |
} |
| 1080 |
} |
| 1081 |
iNdEx += length |
| 1082 |
if length < 0 { |
| 1083 |
return 0, ErrInvalidLengthMetrics |
| 1084 |
} |
| 1085 |
return iNdEx, nil |
| 1086 |
case 3: |
| 1087 |
for { |
| 1088 |
var innerWire uint64 |
| 1089 |
var start int = iNdEx |
| 1090 |
for shift := uint(0); ; shift += 7 { |
| 1091 |
if shift >= 64 { |
| 1092 |
return 0, ErrIntOverflowMetrics |
| 1093 |
} |
| 1094 |
if iNdEx >= l { |
| 1095 |
return 0, io.ErrUnexpectedEOF |
| 1096 |
} |
| 1097 |
b := dAtA[iNdEx] |
| 1098 |
iNdEx++ |
| 1099 |
innerWire |= (uint64(b) & 0x7F) << shift |
| 1100 |
if b < 0x80 { |
| 1101 |
break |
| 1102 |
} |
| 1103 |
} |
| 1104 |
innerWireType := int(innerWire & 0x7) |
| 1105 |
if innerWireType == 4 { |
| 1106 |
break |
| 1107 |
} |
| 1108 |
next, err := skipMetrics(dAtA[start:]) |
| 1109 |
if err != nil { |
| 1110 |
return 0, err |
| 1111 |
} |
| 1112 |
iNdEx = start + next |
| 1113 |
} |
| 1114 |
return iNdEx, nil |
| 1115 |
case 4: |
| 1116 |
return iNdEx, nil |
| 1117 |
case 5: |
| 1118 |
iNdEx += 4 |
| 1119 |
return iNdEx, nil |
| 1120 |
default: |
| 1121 |
return 0, fmt.Errorf("proto: illegal wireType %d", wireType) |
| 1122 |
} |
| 1123 |
} |
| 1124 |
panic("unreachable") |
| 1125 |
} |
| 1126 |
|
| 1127 |
var ( |
| 1128 |
ErrInvalidLengthMetrics = fmt.Errorf("proto: negative length found during unmarshaling") |
| 1129 |
ErrIntOverflowMetrics = fmt.Errorf("proto: integer overflow") |
| 1130 |
) |
| 1131 |
|
| 1132 |
func init() { |
| 1133 |
proto.RegisterFile("github.com/lightstep/lightstep-tracer-common/tmpgen/metrics.proto", fileDescriptorMetrics) |
| 1134 |
} |
| 1135 |
|
| 1136 |
var fileDescriptorMetrics = []byte{ |
| 1137 |
|
| 1138 |
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x93, 0xcf, 0x6e, 0xd3, 0x4c, |
| 1139 |
0x14, 0xc5, 0x3b, 0x69, 0x92, 0x36, 0x93, 0xaf, 0xf9, 0xc2, 0x74, 0x81, 0x1b, 0x41, 0x6a, 0xc2, |
| 1140 |
0x02, 0xab, 0x52, 0x6d, 0x28, 0xb4, 0x12, 0x48, 0x08, 0xf5, 0x9f, 0x4a, 0x94, 0x36, 0x54, 0xd3, |
| 1141 |
0xb4, 0x0b, 0x36, 0x91, 0xed, 0x5c, 0x5c, 0xab, 0xf6, 0x8c, 0x19, 0x8f, 0x2b, 0x65, 0xcb, 0x13, |
| 1142 |
0x20, 0xf1, 0x06, 0x6c, 0x79, 0x11, 0x96, 0x48, 0xf0, 0x00, 0xa8, 0xf0, 0x20, 0x28, 0x33, 0x4e, |
| 1143 |
0xd2, 0x52, 0x8a, 0xc4, 0x6e, 0x72, 0xcf, 0xef, 0x4e, 0xce, 0xb9, 0xd7, 0x83, 0x37, 0x83, 0x50, |
| 1144 |
0x9e, 0x66, 0x9e, 0xed, 0xf3, 0xd8, 0x89, 0xc2, 0xe0, 0x54, 0xa6, 0x12, 0x92, 0xe9, 0x69, 0x55, |
| 1145 |
0x0a, 0xd7, 0x07, 0xb1, 0xea, 0xf3, 0x38, 0xe6, 0xcc, 0x91, 0x71, 0x12, 0x00, 0x73, 0x62, 0x90, |
| 1146 |
0x22, 0xf4, 0x53, 0x3b, 0x11, 0x5c, 0x72, 0x72, 0x6b, 0x42, 0xdb, 0xb9, 0xd0, 0xe8, 0xfd, 0xd3, |
| 1147 |
0xad, 0x01, 0x8f, 0x5c, 0x16, 0x38, 0x01, 0x0f, 0xb8, 0xe3, 0xf3, 0x28, 0x02, 0x5f, 0x72, 0x91, |
| 1148 |
0x78, 0xd3, 0xb3, 0xfe, 0xa3, 0xc6, 0x9d, 0x80, 0xf3, 0x20, 0x02, 0xc7, 0x4d, 0x42, 0xc7, 0x65, |
| 1149 |
0x8c, 0x4b, 0x57, 0x86, 0x9c, 0xe5, 0x36, 0x1a, 0xcd, 0x5c, 0x55, 0xbf, 0xbc, 0xec, 0x8d, 0x33, |
| 1150 |
0xc8, 0x84, 0x02, 0x72, 0x7d, 0xf9, 0x77, 0x5d, 0x86, 0x31, 0xa4, 0xd2, 0x8d, 0x13, 0x0d, 0xb4, |
| 1151 |
0xbe, 0x15, 0x70, 0xf5, 0x40, 0x05, 0x38, 0xe4, 0x21, 0x93, 0xe4, 0x11, 0x2e, 0x9e, 0x85, 0x6c, |
| 1152 |
0x60, 0x20, 0x13, 0x59, 0xb5, 0xb5, 0xbb, 0xf6, 0xb5, 0x98, 0xb6, 0xa6, 0x3b, 0x21, 0x1b, 0x50, |
| 1153 |
0x85, 0x92, 0x65, 0x5c, 0xd5, 0x5a, 0x9f, 0xb9, 0x31, 0x18, 0x05, 0x13, 0x59, 0x15, 0x8a, 0x75, |
| 1154 |
0xa9, 0xeb, 0xc6, 0x40, 0x1e, 0xe2, 0x52, 0x2a, 0x5d, 0x21, 0x8d, 0x59, 0x13, 0x59, 0xd5, 0xb5, |
| 1155 |
0x86, 0xad, 0x4d, 0xd9, 0x63, 0x53, 0x76, 0x6f, 0x6c, 0x8a, 0x6a, 0x90, 0xac, 0xe3, 0xf9, 0x71, |
| 1156 |
0x10, 0xa3, 0xa8, 0x9a, 0x96, 0xae, 0x35, 0xed, 0xe4, 0x00, 0x9d, 0xa0, 0x64, 0x1d, 0x97, 0x23, |
| 1157 |
0xd7, 0x83, 0x28, 0x35, 0x4a, 0xe6, 0xac, 0x55, 0xbd, 0x62, 0x7f, 0x3a, 0xd7, 0x0e, 0x0c, 0x4f, |
| 1158 |
0xdc, 0x28, 0x03, 0x9a, 0xc3, 0xe4, 0x3e, 0xfe, 0x2f, 0x0b, 0x99, 0xdc, 0x78, 0xd2, 0x3f, 0x1f, |
| 1159 |
0xd5, 0x8d, 0xb2, 0x89, 0xac, 0xe2, 0xcb, 0x19, 0x5a, 0xd5, 0x55, 0x05, 0x8f, 0xa0, 0x01, 0xcf, |
| 1160 |
0xbc, 0x08, 0x72, 0x68, 0xce, 0x44, 0x16, 0x1a, 0x41, 0xba, 0xaa, 0xa0, 0xad, 0x39, 0x5c, 0x52, |
| 1161 |
0x6a, 0xeb, 0x13, 0xc2, 0x0b, 0x6d, 0x16, 0x40, 0x2a, 0x29, 0xbc, 0xcd, 0x20, 0x95, 0xe4, 0x01, |
| 1162 |
0xfe, 0x3f, 0x1c, 0x40, 0x9c, 0x70, 0x09, 0xcc, 0x1f, 0xf6, 0xcf, 0x60, 0xa8, 0x66, 0x5c, 0xa1, |
| 1163 |
0xb5, 0x4b, 0xe5, 0x0e, 0x0c, 0xc9, 0x53, 0x3c, 0x2f, 0x20, 0xe1, 0x42, 0x82, 0x50, 0xb3, 0xbc, |
| 1164 |
0x29, 0x06, 0xcd, 0x21, 0x3a, 0xc1, 0xc9, 0x06, 0x2e, 0x27, 0xa3, 0x2d, 0xa6, 0xc6, 0xac, 0xca, |
| 1165 |
0xdf, 0xbc, 0x71, 0x7d, 0x6a, 0xd9, 0x34, 0xa7, 0x5b, 0x75, 0x5c, 0x1b, 0x9b, 0x4d, 0x13, 0xce, |
| 1166 |
0x52, 0x58, 0x79, 0x8e, 0xf1, 0x74, 0xcf, 0xe4, 0x36, 0x5e, 0x6c, 0x77, 0x4f, 0x36, 0xf7, 0xdb, |
| 1167 |
0x3b, 0xfd, 0x83, 0xdd, 0x1e, 0x6d, 0x6f, 0xf7, 0x3b, 0xed, 0xee, 0x4e, 0x7d, 0x86, 0x54, 0xf1, |
| 1168 |
0xdc, 0xf6, 0xab, 0xe3, 0x6e, 0x6f, 0x97, 0xd6, 0x11, 0xa9, 0xe0, 0xd2, 0xde, 0xe6, 0xf1, 0xde, |
| 1169 |
0x6e, 0xbd, 0xb0, 0x26, 0x71, 0x4d, 0xb7, 0xa7, 0x47, 0x20, 0xce, 0x43, 0x1f, 0x88, 0x87, 0xcb, |
| 1170 |
0xda, 0x30, 0x31, 0xff, 0x60, 0xea, 0xca, 0xa8, 0x1a, 0xf7, 0xfe, 0x42, 0x68, 0x7f, 0xad, 0xc5, |
| 1171 |
0x77, 0x5f, 0x7f, 0x7e, 0x28, 0x2c, 0xb4, 0xe6, 0xc7, 0xcf, 0xf2, 0x19, 0x5a, 0xd9, 0x7a, 0xf1, |
| 1172 |
0xf9, 0xa2, 0x89, 0xbe, 0x5c, 0x34, 0xd1, 0xf7, 0x8b, 0x26, 0x7a, 0xff, 0xa3, 0x39, 0x83, 0x97, |
| 1173 |
0x7c, 0x1e, 0x5f, 0xba, 0x4c, 0xbf, 0x40, 0x3b, 0x10, 0x89, 0x7f, 0x88, 0x5e, 0x57, 0xf2, 0xd6, |
| 1174 |
0xc4, 0xfb, 0x58, 0x28, 0xee, 0x1f, 0x1d, 0x6e, 0x79, 0x65, 0xf5, 0x71, 0x3d, 0xfe, 0x15, 0x00, |
| 1175 |
0x00, 0xff, 0xff, 0xbe, 0x98, 0xa2, 0xa5, 0x20, 0x04, 0x00, 0x00, |
| 1176 |
} |