<div dir="ltr">Thanks Gary.<div><br></div><div><div>Based on the code sample it looks like the syntax for a query is "GET /traces/fragments/search?criteria=%s" 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 "state" which yields a hashmap containing the span's traceId [1]. That suggests my test can construct a span, record the traceId, and later go back to the server and "GET /traces/complete/{id}" [2] with a generic http client. I haven't implemented, but I'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"><<a href="mailto:gbrown@redhat.com" target="_blank">gbrown@redhat.com</a>></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>
> I'm in the process of developing a clojure library that wraps the<br>
> opentracing-java client (the abstract interface), and provides concrete<br>
> implementations for Hawkular APM and Zipkin.<br>
><br>
> I'm considering ways to test the concrete Hawkular implementation in Travis.<br>
> One thought is to configure Travis to launch a hawkular dev server (from the<br>
> docker image) and then execute a series of test cases to collect traces, and<br>
> finally use the REST API to read back what hawkular received.<br>
><br>
> The problem being, I haven't found the documentation for the query parameters<br>
> you pass to "GET /traces/fragments/search".<br>
><br>
> <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>
><br>
> Any pointers how to do this? How does the hawkular development team run<br>
> integration tests?<br>
><br>
</div></div>> ______________________________<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>
><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>