Comments (9)
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.
@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.
No, thanks for reporting. Do you have any error logs/reproducer? Would you like to submit a fix for it?
from java-spring-web.
I can take a look at submitting a fix sure, I’ll open a PR soon
from java-spring-web.
@darrenhaken thanks 👍
from java-spring-web.
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)
toServerTracingAutoConfiguration
- Add
@ConditionalOnClass(RestTemplate.class)
toRestTemplateAutoConfiguration
- Add
@ConditionalOnClass(AsyncRestTemplate.class)
toAsyncRestTemplateAutoConfiguration
Change is in commit f7fff3e
from java-spring-web.
@mdvorak is this resolved by #68 ?
from java-spring-web.
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.
I have created #72. Webflux support will need a separate instrumentation for both client and server side.
from java-spring-web.
Related Issues (20)
- Spring MVC integration example HOT 1
- Why is TracingHandlerInterceptor conditional on missing TracingFilter? HOT 3
- upgrade to opentracing 0.33.0 HOT 1
- Clarify project status HOT 3
- Error when running @SpringBootTest with SpringBootTest.WebEnvironment.NONE HOT 1
- `Scope` should be closed in the method of `afterConcurrentHandlingStarted` for async request
- Putting handlers into log fields makes ZipkinV2Reporter cause Gson errors
- Version 0.3.4 fails with OpenTracing API 0.33.0 HOT 3
- Bug: Span has already been finished; will not be reported again HOT 2
- spans not marked as error when Exceptions handled by @ControllerAdvice
- TracingHandlerInterceptor order cannot be changed and even overridden
- Span not finished when subscription is cancelled HOT 8
- Span finishes before webclient completes
- Span customization - Extend WebFluxSpanDecorator HOT 1
- Skip patterns does not apply to RestTemplate client requests
- use controller method name as operation name in webflux
- Span object is null when passing RequestEntity<?> as a request parameter
- TracingRestTemplateInterceptor does not support sorting
- Bug: (java.lang.IllegalArgumentException) Service name must not be null or empty HOT 1
- opentracing-spring-web-starter incompatible with Spring Boot 2.6 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from java-spring-web.