Skip to content

Commit e0a74f2

Browse files
authored
Bump idl with zipkin swagger and messaging annos (#533)
Signed-off-by: Pavol Loffay <ploffay@redhat.com>
1 parent 32e2cd3 commit e0a74f2

File tree

6 files changed

+20
-1
lines changed

6 files changed

+20
-1
lines changed

idl

Submodule idl updated from cff5057 to 347af16

thrift-gen/baggage/tchan-baggage.go

+4
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,10 @@ func (c *tchanBaggageRestrictionManagerClient) GetBaggageRestrictions(ctx thrift
4343
}
4444
success, err := c.client.Call(ctx, c.thriftService, "getBaggageRestrictions", &args, &resp)
4545
if err == nil && !success {
46+
switch {
47+
default:
48+
err = fmt.Errorf("received no result or unknown exception for getBaggageRestrictions")
49+
}
4650
}
4751

4852
return resp.GetSuccess(), err

thrift-gen/jaeger/tchan-jaeger.go

+4
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,10 @@ func (c *tchanCollectorClient) SubmitBatches(ctx thrift.Context, batches []*Batc
4343
}
4444
success, err := c.client.Call(ctx, c.thriftService, "submitBatches", &args, &resp)
4545
if err == nil && !success {
46+
switch {
47+
default:
48+
err = fmt.Errorf("received no result or unknown exception for submitBatches")
49+
}
4650
}
4751

4852
return resp.GetSuccess(), err

thrift-gen/sampling/tchan-sampling.go

+4
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,10 @@ func (c *tchanSamplingManagerClient) GetSamplingStrategy(ctx thrift.Context, ser
4343
}
4444
success, err := c.client.Call(ctx, c.thriftService, "getSamplingStrategy", &args, &resp)
4545
if err == nil && !success {
46+
switch {
47+
default:
48+
err = fmt.Errorf("received no result or unknown exception for getSamplingStrategy")
49+
}
4650
}
4751

4852
return resp.GetSuccess(), err

thrift-gen/zipkincore/constants.go

+3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

thrift-gen/zipkincore/tchan-zipkincore.go

+4
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,10 @@ func (c *tchanZipkinCollectorClient) SubmitZipkinBatch(ctx thrift.Context, spans
4343
}
4444
success, err := c.client.Call(ctx, c.thriftService, "submitZipkinBatch", &args, &resp)
4545
if err == nil && !success {
46+
switch {
47+
default:
48+
err = fmt.Errorf("received no result or unknown exception for submitZipkinBatch")
49+
}
4650
}
4751

4852
return resp.GetSuccess(), err

0 commit comments

Comments
 (0)