MP Open-tracing with MP client

20 views
Skip to first unread message

吴亭

unread,
Apr 15, 2019, 6:22:35 AM4/15/19
to Eclipse MicroProfile
Hi,

Does anyone successfully create any example with MP open tracing + mp rest client?

We are using the Thorntail 2.4.0-Final, and I have tried to set up the open-tracing (jaeger implementation), it works for the normal request, but not for the MP rest client.

Based on the info at GitHub: I need put this file into my project:

MicroProfile Rest Client

The Rest Client instrumentation is provided in SmallRyeRestClientListener which has to be registered in META-INF/services/org.eclipse.microprofile.rest.client.spi.RestClientListener.


However, if I have it in my project, I will see some error like this:

 org/eclipse/microprofile/rest/client/spi/RestClientListener","sub":"a06f1747-87b5-4507-a3aa-3df45f45fc6b","accountId":"PiggysBacon","jti":"33a28026-ab32-498e-b5bb-135cb66574f5","errorCode":4104,"errorStatus":500,"errorMessage":"Internal server error: 32d7d9f8ab31d95403d96fa0dfe29368","@timestamp":"2019-04-15T09:10:22.811Z","logLevel":"severe","classId":"com.hello.accounts.boundary.external.ExternalAccountResource","methodId":"createClient","correlationId":"32d7d9f8ab31d95403d96fa0dfe29368","loggingClass":"com.hello.accounts.commons.exception.mapper.CatchAllExceptionMapper","loggingMethod":"toResponse","exceptionStackTrace":"java.lang.NoClassDefFoundError: Failed to link io/smallrye/opentracing/SmallRyeRestClientListener

I can see that the smallrye rest client is correctly under my classpath with the compile scope.

If I remove the server loader file, there will be no exception, but the request toward the MP rest client will not be recorded anymore.

Let me know if you have any experience with this.

Thanks in advance.

Br,
Tim

Ken Finnigan

unread,
Apr 15, 2019, 8:41:58 AM4/15/19
to MicroProfile
Tim,

Please raise an issue here: https://issues.jboss.org/browse/THORN

Ken

--
You received this message because you are subscribed to the Google Groups "Eclipse MicroProfile" group.
To unsubscribe from this group and stop receiving emails from it, send an email to microprofile...@googlegroups.com.
To post to this group, send email to microp...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/microprofile/dda556c7-5803-474f-8d09-b48cae3237d1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

吴亭

unread,
Apr 15, 2019, 8:42:55 AM4/15/19
to microp...@googlegroups.com
@Ken,

Thanks, I will do that.

Br,
Tim

Ken Finnigan <k...@kenfinnigan.me> 于2019年4月15日周一 下午2:41写道:

吴亭

unread,
Apr 15, 2019, 8:59:12 AM4/15/19
to microp...@googlegroups.com
Created a ticket at JIRA

Br,
Tim

吴亭 <wutin...@gmail.com> 于2019年4月15日周一 下午2:42写道:
Reply all
Reply to author
Forward
0 new messages