Hmm, missed that but did you try using v1 instead of v2 endpoint? Side note: if it helps you to test move the delay to -1 to not wait the interval.
Le lun. 15 avr. 2019 à 20:36, Ivan Junckes Filho <ivanjunc...@gmail.com> a écrit : > Romain I was actually using this docker-compose from JL as reference, but > wasn't able to make it work. > > I will have a look at it again this week, if I have improvement I will let > you know. > > If you have any other tips let me know. > > Thanks for the reply! > > On Fri, Apr 12, 2019 at 6:25 PM Romain Manni-Bucau <rmannibu...@gmail.com> > wrote: > >> Hi Ivan >> >> Did you debug ZipkinHttp? >> >> Depending your server/app config you can need some config like providers >> etc. This class is a good start to check what is happening. >> >> A good config start is >> >> https://github.com/jeanouii/microprofile-samples/blob/master/docker-compose.yaml >> - you can need to inline the yaml depending you docker compose >> version/setup, multiline is not always well supported. >> >> >> >> Le ven. 12 avr. 2019 à 22:10, Ivan Junckes Filho <ivanjunc...@gmail.com> >> a >> écrit : >> >> > Hey guys I am having a hard time to setup TomEE with OpenTracing 1.0.2 + >> > Zipkin. >> > >> > When I send the payload to the zipkin API >> > http://localhost:9411/api/v2/spans, I keep getting back: >> > 400 - "Expected a JSON_V2 encoded list, but received: JSON_V1" >> > >> > My payload is: >> > [ >> > { >> > "annotations": [ >> > { >> > "timestamp": 1555097175276000, >> > "value": "sr" >> > }, >> > { >> > "timestamp": 1555097175402000, >> > "value": "ss" >> > } >> > ], >> > "binaryAnnotations": [ >> > { >> > "key": "http.status_code", >> > "type": 3, >> > "value": 200 >> > }, >> > { >> > "key": "component", >> > "type": 6, >> > "value": "jaxrs" >> > }, >> > { >> > "key": "span.kind", >> > "type": 6, >> > "value": "server" >> > }, >> > { >> > "key": "http.url", >> > "type": 6, >> > "value": "http://localhost:8081/number-api/numbers/generate" >> > }, >> > { >> > "key": "http.method", >> > "type": 6, >> > "value": "GET" >> > } >> > ], >> > "duration": 126000, >> > "id": 2, >> > "kind": "SERVER", >> > "localEndpoint": { >> > "ipv4": "127.0.0.1", >> > "port": 8081, >> > "serviceName": "number-api" >> > }, >> > "name": >> > >> "GET:com.microprofile.samples.services.number.resource.NumberResource.generate", >> > "parentId": 1, >> > "tags": { >> > "http.status_code": "200", >> > "component": "jaxrs", >> > "http.url": "http://localhost:8081/number-api/numbers/generate", >> > "http.method": "GET" >> > }, >> > "timestamp": 1555097175276000, >> > "traceId": 24 >> > } >> > ] >> > >> > Any ideas how to fix this? Anyone was able to configure zipkin as a >> > collector using TomEE? >> > >> >