[prev in list] [next in list] [prev in thread] [next in thread]
List: geronimo-dev
Subject: Re: OpenTracing Zipkin
From: Ivan Junckes Filho <ivanjunckes () gmail ! com>
Date: 2019-04-15 22:18:53
Message-ID: CAC6dPMML+nVksOm_gJSf6DRE=__+EmWdqc+Wg27L4R-MnODf0Q () mail ! gmail ! com
[Download RAW message or body]
Cool, these are good tips I will try both. I didn't try v1 yet.
On Mon, Apr 15, 2019 at 5:00 PM Romain Manni-Bucau <rmannibucau@gmail.com>
wrote:
> 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 =C3=A0 20:36, Ivan Junckes Filho <ivanjunckes@gmail.=
com>
> a =C3=A9crit :
>
>> Romain I was actually using this docker-compose from JL as reference, bu=
t
>> 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 <rmannibucau@gmail.co=
m>
>> wrote:
>>
>>> Hi Ivan
>>>
>>> Did you debug ZipkinHttp?
>>>
>>> Depending your server/app config you can need some config like provider=
s
>>> 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-com=
pose.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 =C3=A0 22:10, Ivan Junckes Filho <ivanjunckes@gmai=
l.com>
>>> a
>>> =C3=A9crit :
>>>
>>> > 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.g=
enerate",
>>> > "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?
>>> >
>>>
>>
[Attachment #3 (text/html)]
<div dir="ltr">Cool, these are good tips I will try both. I didn't try v1 \
yet.</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Apr \
15, 2019 at 5:00 PM Romain Manni-Bucau <<a \
href="mailto:rmannibucau@gmail.com">rmannibucau@gmail.com</a>> \
wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px \
0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="auto">Hmm, \
missed that but did you try using v1 instead of v2 endpoint?<div \
dir="auto"><br></div><div dir="auto">Side note: if it helps you to test move the \
delay to -1 to not wait the interval.</div></div><br><div class="gmail_quote"><div \
dir="ltr">Le lun. 15 avr. 2019 Ã 20:36, Ivan Junckes Filho <<a \
href="mailto:ivanjunckes@gmail.com" target="_blank">ivanjunckes@gmail.com</a>> a \
écrit :<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px \
0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Romain \
I was actually using this docker-compose from JL as reference, but wasn't able to \
make it work.<div><br></div><div>I will have a look at it again this week, if I have \
improvement I will let you know.</div><div><br></div><div>If you have any other tips \
let me know.</div><div><br></div><div>Thanks for the reply!</div></div><br><div \
class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Apr 12, 2019 at 6:25 PM \
Romain Manni-Bucau <<a href="mailto:rmannibucau@gmail.com" rel="noreferrer" \
target="_blank">rmannibucau@gmail.com</a>> wrote:<br></div><blockquote \
class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid \
rgb(204,204,204);padding-left:1ex">Hi Ivan<br> <br>
Did you debug ZipkinHttp?<br>
<br>
Depending your server/app config you can need some config like providers<br>
etc. This class is a good start to check what is happening.<br>
<br>
A good config start is<br>
<a href="https://github.com/jeanouii/microprofile-samples/blob/master/docker-compose.yaml" \
rel="noreferrer noreferrer" \
target="_blank">https://github.com/jeanouii/microprofile-samples/blob/master/docker-compose.yaml</a><br>
- you can need to inline the yaml depending you docker compose<br>
version/setup, multiline is not always well supported.<br>
<br>
<br>
<br>
Le ven. 12 avr. 2019 Ã 22:10, Ivan Junckes Filho <<a \
href="mailto:ivanjunckes@gmail.com" rel="noreferrer" \
target="_blank">ivanjunckes@gmail.com</a>> a<br> écrit :<br>
<br>
> Hey guys I am having a hard time to setup TomEE with OpenTracing 1.0.2 +<br>
> Zipkin.<br>
><br>
> When I send the payload to the zipkin API<br>
> <a href="http://localhost:9411/api/v2/spans" rel="noreferrer noreferrer" \
target="_blank">http://localhost:9411/api/v2/spans</a>, I keep getting back:<br> > \
400 - "Expected a JSON_V2 encoded list, but received: JSON_V1"<br> ><br>
> My payload is:<br>
> [<br>
> {<br>
> "annotations": [<br>
> {<br>
> "timestamp": 1555097175276000,<br>
> "value": "sr"<br>
> },<br>
> {<br>
> "timestamp": 1555097175402000,<br>
> "value": "ss"<br>
> }<br>
> ],<br>
> "binaryAnnotations": [<br>
> {<br>
> "key": "http.status_code",<br>
> "type": 3,<br>
> "value": 200<br>
> },<br>
> {<br>
> "key": "component",<br>
> "type": 6,<br>
> "value": "jaxrs"<br>
> },<br>
> {<br>
> "key": "span.kind",<br>
> "type": 6,<br>
> "value": "server"<br>
> },<br>
> {<br>
> "key": "http.url",<br>
> "type": 6,<br>
> "value": "<a \
href="http://localhost:8081/number-api/numbers/generate" rel="noreferrer noreferrer" \
target="_blank">http://localhost:8081/number-api/numbers/generate</a>"<br> > \
},<br> > {<br>
> "key": "http.method",<br>
> "type": 6,<br>
> "value": "GET"<br>
> }<br>
> ],<br>
> "duration": 126000,<br>
> "id": 2,<br>
> "kind": "SERVER",<br>
> "localEndpoint": {<br>
> "ipv4": "127.0.0.1",<br>
> "port": 8081,<br>
> "serviceName": "number-api"<br>
> },<br>
> "name":<br>
> "GET:com.microprofile.samples.services.number.resource.NumberResource.generate",<br>
> "parentId": 1,<br>
> "tags": {<br>
> "http.status_code": "200",<br>
> "component": "jaxrs",<br>
> "http.url": "<a \
href="http://localhost:8081/number-api/numbers/generate" rel="noreferrer noreferrer" \
target="_blank">http://localhost:8081/number-api/numbers/generate</a>",<br> > \
"http.method": "GET"<br> > },<br>
> "timestamp": 1555097175276000,<br>
> "traceId": 24<br>
> }<br>
> ]<br>
><br>
> Any ideas how to fix this? Anyone was able to configure zipkin as a<br>
> collector using TomEE?<br>
><br>
</blockquote></div>
</blockquote></div>
</blockquote></div>
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic