[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&#39;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 &lt;<a \
href="mailto:rmannibucau@gmail.com">rmannibucau@gmail.com</a>&gt; \
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 &lt;<a \
href="mailto:ivanjunckes@gmail.com" target="_blank">ivanjunckes@gmail.com</a>&gt; 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&#39;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 &lt;<a href="mailto:rmannibucau@gmail.com" rel="noreferrer" \
target="_blank">rmannibucau@gmail.com</a>&gt; 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 &lt;<a \
href="mailto:ivanjunckes@gmail.com" rel="noreferrer" \
target="_blank">ivanjunckes@gmail.com</a>&gt; a<br> écrit :<br>
<br>
&gt; Hey guys I am having a hard time to setup TomEE with OpenTracing 1.0.2 +<br>
&gt; Zipkin.<br>
&gt;<br>
&gt; When I send the payload to the zipkin API<br>
&gt; <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> &gt; \
400 - &quot;Expected a JSON_V2 encoded list, but received: JSON_V1&quot;<br> &gt;<br>
&gt; My payload is:<br>
&gt; [<br>
&gt;     {<br>
&gt;        &quot;annotations&quot;: [<br>
&gt;           {<br>
&gt;              &quot;timestamp&quot;: 1555097175276000,<br>
&gt;              &quot;value&quot;: &quot;sr&quot;<br>
&gt;           },<br>
&gt;           {<br>
&gt;              &quot;timestamp&quot;: 1555097175402000,<br>
&gt;              &quot;value&quot;: &quot;ss&quot;<br>
&gt;           }<br>
&gt;        ],<br>
&gt;        &quot;binaryAnnotations&quot;: [<br>
&gt;           {<br>
&gt;              &quot;key&quot;: &quot;http.status_code&quot;,<br>
&gt;              &quot;type&quot;: 3,<br>
&gt;              &quot;value&quot;: 200<br>
&gt;           },<br>
&gt;           {<br>
&gt;              &quot;key&quot;: &quot;component&quot;,<br>
&gt;              &quot;type&quot;: 6,<br>
&gt;              &quot;value&quot;: &quot;jaxrs&quot;<br>
&gt;           },<br>
&gt;           {<br>
&gt;              &quot;key&quot;: &quot;span.kind&quot;,<br>
&gt;              &quot;type&quot;: 6,<br>
&gt;              &quot;value&quot;: &quot;server&quot;<br>
&gt;           },<br>
&gt;           {<br>
&gt;              &quot;key&quot;: &quot;http.url&quot;,<br>
&gt;              &quot;type&quot;: 6,<br>
&gt;              &quot;value&quot;: &quot;<a \
href="http://localhost:8081/number-api/numbers/generate" rel="noreferrer noreferrer" \
target="_blank">http://localhost:8081/number-api/numbers/generate</a>&quot;<br> &gt;  \
},<br> &gt;           {<br>
&gt;              &quot;key&quot;: &quot;http.method&quot;,<br>
&gt;              &quot;type&quot;: 6,<br>
&gt;              &quot;value&quot;: &quot;GET&quot;<br>
&gt;           }<br>
&gt;        ],<br>
&gt;        &quot;duration&quot;: 126000,<br>
&gt;        &quot;id&quot;: 2,<br>
&gt;        &quot;kind&quot;: &quot;SERVER&quot;,<br>
&gt;        &quot;localEndpoint&quot;: {<br>
&gt;           &quot;ipv4&quot;: &quot;127.0.0.1&quot;,<br>
&gt;           &quot;port&quot;: 8081,<br>
&gt;           &quot;serviceName&quot;: &quot;number-api&quot;<br>
&gt;        },<br>
&gt;        &quot;name&quot;:<br>
&gt; &quot;GET:com.microprofile.samples.services.number.resource.NumberResource.generate&quot;,<br>
 &gt;        &quot;parentId&quot;: 1,<br>
&gt;        &quot;tags&quot;: {<br>
&gt;           &quot;http.status_code&quot;: &quot;200&quot;,<br>
&gt;           &quot;component&quot;: &quot;jaxrs&quot;,<br>
&gt;           &quot;http.url&quot;: &quot;<a \
href="http://localhost:8081/number-api/numbers/generate" rel="noreferrer noreferrer" \
target="_blank">http://localhost:8081/number-api/numbers/generate</a>&quot;,<br> &gt; \
&quot;http.method&quot;: &quot;GET&quot;<br> &gt;        },<br>
&gt;        &quot;timestamp&quot;: 1555097175276000,<br>
&gt;        &quot;traceId&quot;: 24<br>
&gt;     }<br>
&gt; ]<br>
&gt;<br>
&gt; Any ideas how to fix this?   Anyone was able to configure zipkin as a<br>
&gt; collector using TomEE?<br>
&gt;<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