build(deps): bump github.com/uber/jaeger-client-go

Bumps [github.com/uber/jaeger-client-go](https://github.com/uber/jaeger-client-go) from 2.20.1+incompatible to 2.22.1+incompatible.
- [Release notes](https://github.com/uber/jaeger-client-go/releases)
- [Changelog](https://github.com/jaegertracing/jaeger-client-go/blob/master/CHANGELOG.md)
- [Commits](https://github.com/uber/jaeger-client-go/compare/v2.20.1...v2.22.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Signed-off-by: Matthew Heon <mheon@redhat.com>
This commit is contained in:
dependabot-preview[bot]
2020-01-23 08:40:18 +00:00
committed by Matthew Heon
parent ac3a6b80b0
commit fd36a33dc3
21 changed files with 527 additions and 38 deletions

View File

@@ -1576,12 +1576,193 @@ func (p *Process) String() string {
return fmt.Sprintf("Process(%+v)", *p)
}
// Attributes:
// - FullQueueDroppedSpans
// - TooLargeDroppedSpans
// - FailedToEmitSpans
type ClientStats struct {
FullQueueDroppedSpans int64 `thrift:"fullQueueDroppedSpans,1,required" json:"fullQueueDroppedSpans"`
TooLargeDroppedSpans int64 `thrift:"tooLargeDroppedSpans,2,required" json:"tooLargeDroppedSpans"`
FailedToEmitSpans int64 `thrift:"failedToEmitSpans,3,required" json:"failedToEmitSpans"`
}
func NewClientStats() *ClientStats {
return &ClientStats{}
}
func (p *ClientStats) GetFullQueueDroppedSpans() int64 {
return p.FullQueueDroppedSpans
}
func (p *ClientStats) GetTooLargeDroppedSpans() int64 {
return p.TooLargeDroppedSpans
}
func (p *ClientStats) GetFailedToEmitSpans() int64 {
return p.FailedToEmitSpans
}
func (p *ClientStats) Read(iprot thrift.TProtocol) error {
if _, err := iprot.ReadStructBegin(); err != nil {
return thrift.PrependError(fmt.Sprintf("%T read error: ", p), err)
}
var issetFullQueueDroppedSpans bool = false
var issetTooLargeDroppedSpans bool = false
var issetFailedToEmitSpans bool = false
for {
_, fieldTypeId, fieldId, err := iprot.ReadFieldBegin()
if err != nil {
return thrift.PrependError(fmt.Sprintf("%T field %d read error: ", p, fieldId), err)
}
if fieldTypeId == thrift.STOP {
break
}
switch fieldId {
case 1:
if err := p.readField1(iprot); err != nil {
return err
}
issetFullQueueDroppedSpans = true
case 2:
if err := p.readField2(iprot); err != nil {
return err
}
issetTooLargeDroppedSpans = true
case 3:
if err := p.readField3(iprot); err != nil {
return err
}
issetFailedToEmitSpans = true
default:
if err := iprot.Skip(fieldTypeId); err != nil {
return err
}
}
if err := iprot.ReadFieldEnd(); err != nil {
return err
}
}
if err := iprot.ReadStructEnd(); err != nil {
return thrift.PrependError(fmt.Sprintf("%T read struct end error: ", p), err)
}
if !issetFullQueueDroppedSpans {
return thrift.NewTProtocolExceptionWithType(thrift.INVALID_DATA, fmt.Errorf("Required field FullQueueDroppedSpans is not set"))
}
if !issetTooLargeDroppedSpans {
return thrift.NewTProtocolExceptionWithType(thrift.INVALID_DATA, fmt.Errorf("Required field TooLargeDroppedSpans is not set"))
}
if !issetFailedToEmitSpans {
return thrift.NewTProtocolExceptionWithType(thrift.INVALID_DATA, fmt.Errorf("Required field FailedToEmitSpans is not set"))
}
return nil
}
func (p *ClientStats) readField1(iprot thrift.TProtocol) error {
if v, err := iprot.ReadI64(); err != nil {
return thrift.PrependError("error reading field 1: ", err)
} else {
p.FullQueueDroppedSpans = v
}
return nil
}
func (p *ClientStats) readField2(iprot thrift.TProtocol) error {
if v, err := iprot.ReadI64(); err != nil {
return thrift.PrependError("error reading field 2: ", err)
} else {
p.TooLargeDroppedSpans = v
}
return nil
}
func (p *ClientStats) readField3(iprot thrift.TProtocol) error {
if v, err := iprot.ReadI64(); err != nil {
return thrift.PrependError("error reading field 3: ", err)
} else {
p.FailedToEmitSpans = v
}
return nil
}
func (p *ClientStats) Write(oprot thrift.TProtocol) error {
if err := oprot.WriteStructBegin("ClientStats"); err != nil {
return thrift.PrependError(fmt.Sprintf("%T write struct begin error: ", p), err)
}
if err := p.writeField1(oprot); err != nil {
return err
}
if err := p.writeField2(oprot); err != nil {
return err
}
if err := p.writeField3(oprot); err != nil {
return err
}
if err := oprot.WriteFieldStop(); err != nil {
return thrift.PrependError("write field stop error: ", err)
}
if err := oprot.WriteStructEnd(); err != nil {
return thrift.PrependError("write struct stop error: ", err)
}
return nil
}
func (p *ClientStats) writeField1(oprot thrift.TProtocol) (err error) {
if err := oprot.WriteFieldBegin("fullQueueDroppedSpans", thrift.I64, 1); err != nil {
return thrift.PrependError(fmt.Sprintf("%T write field begin error 1:fullQueueDroppedSpans: ", p), err)
}
if err := oprot.WriteI64(int64(p.FullQueueDroppedSpans)); err != nil {
return thrift.PrependError(fmt.Sprintf("%T.fullQueueDroppedSpans (1) field write error: ", p), err)
}
if err := oprot.WriteFieldEnd(); err != nil {
return thrift.PrependError(fmt.Sprintf("%T write field end error 1:fullQueueDroppedSpans: ", p), err)
}
return err
}
func (p *ClientStats) writeField2(oprot thrift.TProtocol) (err error) {
if err := oprot.WriteFieldBegin("tooLargeDroppedSpans", thrift.I64, 2); err != nil {
return thrift.PrependError(fmt.Sprintf("%T write field begin error 2:tooLargeDroppedSpans: ", p), err)
}
if err := oprot.WriteI64(int64(p.TooLargeDroppedSpans)); err != nil {
return thrift.PrependError(fmt.Sprintf("%T.tooLargeDroppedSpans (2) field write error: ", p), err)
}
if err := oprot.WriteFieldEnd(); err != nil {
return thrift.PrependError(fmt.Sprintf("%T write field end error 2:tooLargeDroppedSpans: ", p), err)
}
return err
}
func (p *ClientStats) writeField3(oprot thrift.TProtocol) (err error) {
if err := oprot.WriteFieldBegin("failedToEmitSpans", thrift.I64, 3); err != nil {
return thrift.PrependError(fmt.Sprintf("%T write field begin error 3:failedToEmitSpans: ", p), err)
}
if err := oprot.WriteI64(int64(p.FailedToEmitSpans)); err != nil {
return thrift.PrependError(fmt.Sprintf("%T.failedToEmitSpans (3) field write error: ", p), err)
}
if err := oprot.WriteFieldEnd(); err != nil {
return thrift.PrependError(fmt.Sprintf("%T write field end error 3:failedToEmitSpans: ", p), err)
}
return err
}
func (p *ClientStats) String() string {
if p == nil {
return "<nil>"
}
return fmt.Sprintf("ClientStats(%+v)", *p)
}
// Attributes:
// - Process
// - Spans
// - SeqNo
// - Stats
type Batch struct {
Process *Process `thrift:"process,1,required" json:"process"`
Spans []*Span `thrift:"spans,2,required" json:"spans"`
Process *Process `thrift:"process,1,required" json:"process"`
Spans []*Span `thrift:"spans,2,required" json:"spans"`
SeqNo *int64 `thrift:"seqNo,3" json:"seqNo,omitempty"`
Stats *ClientStats `thrift:"stats,4" json:"stats,omitempty"`
}
func NewBatch() *Batch {
@@ -1600,10 +1781,36 @@ func (p *Batch) GetProcess() *Process {
func (p *Batch) GetSpans() []*Span {
return p.Spans
}
var Batch_SeqNo_DEFAULT int64
func (p *Batch) GetSeqNo() int64 {
if !p.IsSetSeqNo() {
return Batch_SeqNo_DEFAULT
}
return *p.SeqNo
}
var Batch_Stats_DEFAULT *ClientStats
func (p *Batch) GetStats() *ClientStats {
if !p.IsSetStats() {
return Batch_Stats_DEFAULT
}
return p.Stats
}
func (p *Batch) IsSetProcess() bool {
return p.Process != nil
}
func (p *Batch) IsSetSeqNo() bool {
return p.SeqNo != nil
}
func (p *Batch) IsSetStats() bool {
return p.Stats != nil
}
func (p *Batch) Read(iprot thrift.TProtocol) error {
if _, err := iprot.ReadStructBegin(); err != nil {
return thrift.PrependError(fmt.Sprintf("%T read error: ", p), err)
@@ -1631,6 +1838,14 @@ func (p *Batch) Read(iprot thrift.TProtocol) error {
return err
}
issetSpans = true
case 3:
if err := p.readField3(iprot); err != nil {
return err
}
case 4:
if err := p.readField4(iprot); err != nil {
return err
}
default:
if err := iprot.Skip(fieldTypeId); err != nil {
return err
@@ -1680,6 +1895,23 @@ func (p *Batch) readField2(iprot thrift.TProtocol) error {
return nil
}
func (p *Batch) readField3(iprot thrift.TProtocol) error {
if v, err := iprot.ReadI64(); err != nil {
return thrift.PrependError("error reading field 3: ", err)
} else {
p.SeqNo = &v
}
return nil
}
func (p *Batch) readField4(iprot thrift.TProtocol) error {
p.Stats = &ClientStats{}
if err := p.Stats.Read(iprot); err != nil {
return thrift.PrependError(fmt.Sprintf("%T error reading struct: ", p.Stats), err)
}
return nil
}
func (p *Batch) Write(oprot thrift.TProtocol) error {
if err := oprot.WriteStructBegin("Batch"); err != nil {
return thrift.PrependError(fmt.Sprintf("%T write struct begin error: ", p), err)
@@ -1690,6 +1922,12 @@ func (p *Batch) Write(oprot thrift.TProtocol) error {
if err := p.writeField2(oprot); err != nil {
return err
}
if err := p.writeField3(oprot); err != nil {
return err
}
if err := p.writeField4(oprot); err != nil {
return err
}
if err := oprot.WriteFieldStop(); err != nil {
return thrift.PrependError("write field stop error: ", err)
}
@@ -1733,6 +1971,36 @@ func (p *Batch) writeField2(oprot thrift.TProtocol) (err error) {
return err
}
func (p *Batch) writeField3(oprot thrift.TProtocol) (err error) {
if p.IsSetSeqNo() {
if err := oprot.WriteFieldBegin("seqNo", thrift.I64, 3); err != nil {
return thrift.PrependError(fmt.Sprintf("%T write field begin error 3:seqNo: ", p), err)
}
if err := oprot.WriteI64(int64(*p.SeqNo)); err != nil {
return thrift.PrependError(fmt.Sprintf("%T.seqNo (3) field write error: ", p), err)
}
if err := oprot.WriteFieldEnd(); err != nil {
return thrift.PrependError(fmt.Sprintf("%T write field end error 3:seqNo: ", p), err)
}
}
return err
}
func (p *Batch) writeField4(oprot thrift.TProtocol) (err error) {
if p.IsSetStats() {
if err := oprot.WriteFieldBegin("stats", thrift.STRUCT, 4); err != nil {
return thrift.PrependError(fmt.Sprintf("%T write field begin error 4:stats: ", p), err)
}
if err := p.Stats.Write(oprot); err != nil {
return thrift.PrependError(fmt.Sprintf("%T error writing struct: ", p.Stats), err)
}
if err := oprot.WriteFieldEnd(); err != nil {
return thrift.PrependError(fmt.Sprintf("%T write field end error 4:stats: ", p), err)
}
}
return err
}
func (p *Batch) String() string {
if p == nil {
return "<nil>"

View File

@@ -729,7 +729,7 @@ func (p *BinaryAnnotation) String() string {
// precise value possible. For example, gettimeofday or syncing nanoTime
// against a tick of currentTimeMillis.
//
// For compatibilty with instrumentation that precede this field, collectors
// For compatibility with instrumentation that precede this field, collectors
// or span stores can derive this via Annotation.timestamp.
// For example, SERVER_RECV.timestamp or CLIENT_SEND.timestamp.
//
@@ -741,7 +741,7 @@ func (p *BinaryAnnotation) String() string {
// precise measurement decoupled from problems of clocks, such as skew or NTP
// updates causing time to move backwards.
//
// For compatibilty with instrumentation that precede this field, collectors
// For compatibility with instrumentation that precede this field, collectors
// or span stores can derive this by subtracting Annotation.timestamp.
// For example, SERVER_SEND.timestamp - SERVER_RECV.timestamp.
//