Git Product home page Git Product logo

Comments (9)

mdvorak avatar mdvorak commented on May 24, 2024 1

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.

from java-spring-web.

mdvorak avatar mdvorak commented on May 24, 2024 1

@geoand Of course, same can be achieved by <exclusions> when referenced by ot-spring-cloud. Still, does not do any harm either.

from java-spring-web.

pavolloffay avatar pavolloffay commented on May 24, 2024

No, thanks for reporting. Do you have any error logs/reproducer? Would you like to submit a fix for it?

from java-spring-web.

darrenhaken avatar darrenhaken commented on May 24, 2024

I can take a look at submitting a fix sure, I’ll open a PR soon

from java-spring-web.

pavolloffay avatar pavolloffay commented on May 24, 2024

@darrenhaken thanks 👍

from java-spring-web.

mdvorak avatar mdvorak commented on May 24, 2024

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.

  • Add @ConditionalOnClass(Servlet.class) to ServerTracingAutoConfiguration
  • Add @ConditionalOnClass(RestTemplate.class) to RestTemplateAutoConfiguration
  • Add @ConditionalOnClass(AsyncRestTemplate.class) to AsyncRestTemplateAutoConfiguration

Change is in commit f7fff3e

from java-spring-web.

pavolloffay avatar pavolloffay commented on May 24, 2024

@mdvorak is this resolved by #68 ?

from java-spring-web.

geoand avatar geoand commented on May 24, 2024

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?

from java-spring-web.

pavolloffay avatar pavolloffay commented on May 24, 2024

I have created #72. Webflux support will need a separate instrumentation for both client and server side.

from java-spring-web.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.