Closed darrenhaken closed 6 years ago
No, thanks for reporting. Do you have any error logs/reproducer? Would you like to submit a fix for it?
I can take a look at submitting a fix sure, I’ll open a PR soon
@darrenhaken thanks :+1:
I believe that TracerAutoConfiguration
and TracerRegisterAutoConfiguration
does not belong in this library (java-spring-web) at all. Then this jar can be for webflux app excluded completely (and possibly new designed for reactive stack should be created).
However, for easier -starter integration, it I suggest adding @ConditionalOnClass
. Its easy change on its own, but adding tests will be more time consuming.
@ConditionalOnClass(Servlet.class)
to ServerTracingAutoConfiguration
@ConditionalOnClass(RestTemplate.class)
to RestTemplateAutoConfiguration
@ConditionalOnClass(AsyncRestTemplate.class)
to AsyncRestTemplateAutoConfiguration
Change is in commit f7fff3e35cbc397b1be90968e1d8441564afea02
@mdvorak is this resolved by #68 ?
Only partially, I did add condition to new config class for client, but did not touch ServerTracingAutoConfiguration
.
So, add @ConditionalOnClass(Servlet.class)
and you're done.
Sorry for being late to the party but I don't see any indication that the module supports Spring 5 yet, much less Webflux which is a non-Servlet Web framework of it's own.
Am I missing something obvious here?
@geoand Of course, same can be achieved by <exclusions>
when referenced by ot-spring-cloud. Still, does not do any harm either.
I have created #72. Webflux support will need a separate instrumentation for both client and server side.
Are you aware this fails with Spring Webflux?