Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Go 1.15: TestThriftSpanLogs errors #524

Closed
eclipseo opened this issue Jul 30, 2020 · 3 comments · Fixed by #525
Closed

Go 1.15: TestThriftSpanLogs errors #524

eclipseo opened this issue Jul 30, 2020 · 3 comments · Fixed by #525

Comments

@eclipseo
Copy link

Go 1.15 rc 1 on Fedora Rawhide:

--- FAIL: TestThriftSpanLogs (0.00s)
    zipkin_thrift_span_test.go:264: 
        	Error Trace:	zipkin_thrift_span_test.go:264
        	Error:      	Not equal: 
        	            	expected: "{\"error\":\"drugs are baaad, m-k\"}"
        	            	actual  : "{\"error.object\":\"drugs are baaad, m-k\"}"
        	            	
        	            	Diff:
        	            	--- Expected
        	            	+++ Actual
        	            	@@ -1 +1 @@
        	            	-{"error":"drugs are baaad, m-k"}
        	            	+{"error.object":"drugs are baaad, m-k"}
        	Test:       	TestThriftSpanLogs
        	Messages:   	test-10
    zipkin_thrift_span_test.go:264: 
        	Error Trace:	zipkin_thrift_span_test.go:264
        	Error:      	Not equal: 
        	            	expected: "{\"error\":\"non-even keyValues len: 1\",\"function\":\"LogKV\"}"
        	            	actual  : "{\"error.object\":\"non-even keyValues len: 1\",\"function\":\"LogKV\"}"
        	            	
        	            	Diff:
        	            	--- Expected
        	            	+++ Actual
        	            	@@ -1 +1 @@
        	            	-{"error":"non-even keyValues len: 1","function":"LogKV"}
        	            	+{"error.object":"non-even keyValues len: 1","function":"LogKV"}
        	Test:       	TestThriftSpanLogs
        	Messages:   	test-14
FAIL
exit status 1
FAIL	github.com/uber/jaeger-client-go	3.711s

Each time the assert fail because error.object is returned instead of error.

@yurishkuro
Copy link
Member

This isn't due to Go 1.15, but the newer version of OpenTracing. We should do a bump of OpenTracing in this repo too, and fix the tests.

@eclipseo
Copy link
Author

Oh okay, sorry then, we always try to get the latest version in Fedora, sometimes it causes API breakage. Hopefully when we move to modules, we could have more fine tuning over dependencies version.

yurishkuro added a commit that referenced this issue Jul 31, 2020
* Resolves #524
* Upgrades opentracing-go dependency to 1.2 (https://github.com/opentracing/opentracing-go/releases/tag/v1.2.0)
* Pin some Prometheus client libs in glide.yaml because some of their dependencies moved to go modules with v2, which is not supported by glide.

Signed-off-by: Yuri Shkuro <ys@uber.com>
@yurishkuro
Copy link
Member

@eclipseo it's fixed on master

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants