<div dir="ltr">Thanks Gary.<div><br></div><div><div>Based on the code sample it looks like the syntax for a query is &quot;GET /traces/fragments/search?criteria=%s&quot; where the criteria is a url encoded JSON dictionary. I think I can create those url parameters manually if I wanted.</div><div><div><br></div><div>I also discovered last night that the implementation of a Span has a method called &quot;state&quot; which yields a hashmap containing the span&#39;s traceId [1]. That suggests my test can construct a span, record the traceId, and later go back to the server and &quot;GET /traces/complete/{id}&quot; [2] with a generic http client. I haven&#39;t implemented, but I&#39;ll try that first when time permits.<div><br></div></div><div>[1] <a href="https://github.com/hawkular/hawkular-apm/blob/afcdb73f1c8a45289f620b0d9557c81c5f532364/client/opentracing/src/main/java/io/opentracing/impl/APMSpan.java#L417">https://github.com/hawkular/hawkular-apm/blob/afcdb73f1c8a45289f620b0d9557c81c5f532364/client/opentracing/src/main/java/io/opentracing/impl/APMSpan.java#L417</a><br></div><div>[2] <a href="https://hawkular.gitbooks.io/hawkular-apm-user-guide/content/restapi/#GET__traces_fragments__id_">https://hawkular.gitbooks.io/hawkular-apm-user-guide/content/restapi/#GET__traces_fragments__id_</a></div><div><br></div><div><br></div></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Mar 7, 2017 at 12:21 AM, Gary Brown <span dir="ltr">&lt;<a href="mailto:gbrown@redhat.com" target="_blank">gbrown@redhat.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Neil<br>
<br>
The easiest way to do it is use the Java client for the trace service: <a href="https://github.com/hawkular/hawkular-apm/blob/master/client/trace-service-rest-client/src/main/java/org/hawkular/apm/trace/service/rest/client/TraceServiceRESTClient.java#L63" rel="noreferrer" target="_blank">https://github.com/hawkular/<wbr>hawkular-apm/blob/master/<wbr>client/trace-service-rest-<wbr>client/src/main/java/org/<wbr>hawkular/apm/trace/service/<wbr>rest/client/<wbr>TraceServiceRESTClient.java#<wbr>L63</a><br>
<br>
Regards<br>
Gary<br>
<div><div class="h5"><br>
----- Original Message -----<br>
&gt; I&#39;m in the process of developing a clojure library that wraps the<br>
&gt; opentracing-java client (the abstract interface), and provides concrete<br>
&gt; implementations for Hawkular APM and Zipkin.<br>
&gt;<br>
&gt; I&#39;m considering ways to test the concrete Hawkular implementation in Travis.<br>
&gt; One thought is to configure Travis to launch a hawkular dev server (from the<br>
&gt; docker image) and then execute a series of test cases to collect traces, and<br>
&gt; finally use the REST API to read back what hawkular received.<br>
&gt;<br>
&gt; The problem being, I haven&#39;t found the documentation for the query parameters<br>
&gt; you pass to &quot;GET /traces/fragments/search&quot;.<br>
&gt;<br>
&gt; <a href="https://hawkular.gitbooks.io/hawkular-apm-user-guide/content/restapi/#GET__traces_fragments_search" rel="noreferrer" target="_blank">https://hawkular.gitbooks.io/<wbr>hawkular-apm-user-guide/<wbr>content/restapi/#GET__traces_<wbr>fragments_search</a><br>
&gt;<br>
&gt; Any pointers how to do this? How does the hawkular development team run<br>
&gt; integration tests?<br>
&gt;<br>
</div></div>&gt; ______________________________<wbr>_________________<br>
&gt; hawkular-dev mailing list<br>
&gt; <a href="mailto:hawkular-dev@lists.jboss.org">hawkular-dev@lists.jboss.org</a><br>
&gt; <a href="https://lists.jboss.org/mailman/listinfo/hawkular-dev" rel="noreferrer" target="_blank">https://lists.jboss.org/<wbr>mailman/listinfo/hawkular-dev</a><br>
&gt;<br>
______________________________<wbr>_________________<br>
hawkular-dev mailing list<br>
<a href="mailto:hawkular-dev@lists.jboss.org">hawkular-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/hawkular-dev" rel="noreferrer" target="_blank">https://lists.jboss.org/<wbr>mailman/listinfo/hawkular-dev</a><br>
</blockquote></div><br></div>