Comments (10)
Started a release of 2.4.0.
Part of the reason for making some of these things private is to avoid breaking things if we decided to change internal pieces. Also it forces us to look at the reason the work around is necessary and try to solve it in a way that doesn't require work arounds. Fortunately in this case Ratpack 1.6 added what we always needed and @beckje01 was quick to address this.
@garadox do you feel that the ExecInitializer will solve problems you have with Ratpack Observables?
from brave-ratpack.
I understand not wanting to have to rely on reflection for things, in lieu of help from a Ratpack expert there are a couple things I can see that might work. There is a deprecated method on RatpackCurrentTraceContext
that you could use instead of having to rely on reflection: RatpackCurrentTraceContext.wrap(TraceContext)
I'm also seeing maybe wrapping your Execution.current()
with: TracingPropagationExecInitializer.init(Execution)
would do what you are looking for.
from brave-ratpack.
Is TracingPropagationExecInitializer
a new class? I'm not finding that class in this repo or in the main brave repo.
from brave-ratpack.
Sorry, its an sub-class (internal?) in RatpackCurrentTraceContext
from brave-ratpack.
Hmm, i'm not seeing that class in version 2.3.2 .
from brave-ratpack.
It was added Jan 4th, but 2.3.2 was released Jan 2nd.
from brave-ratpack.
@hyleung @llinder @adriancole @beckje01 Can you make a new release of the Current master branch code with TracingPropagationExecInitializer.init(Execution)
ASAP. Since Our application in production is using Ratpack and Kotlin and are facing issues as TraceContext is not propagated properly and doesn't have any public functions to manually update TraceContext
in TraceContextHolder .
from brave-ratpack.
Release of 2.4.0 is done. Just waiting on Maven Central to update with the synced artifacts.
from brave-ratpack.
@llinder Yes, I believe the ExecInitializer will address my current workaround (It's use of execution.maybeParent
and being non-private is the key).
from brave-ratpack.
Ah, I just realized the Ratpack 1.6 dependency. We can't test this yet but i'll close the issue and come back once we've upgraded if there are still issues.
from brave-ratpack.
Related Issues (13)
- Make project multi module
- Support Ratpack 1.6 HOT 1
- Groovy should not be a transitive dependency HOT 1
- TracingPropagationExecInitializer searching for wrong class in registry entries. HOT 4
- Add .mailmap file HOT 2
- Trace
- TraceContextHolder Class has to be Singleton HOT 6
- Scope of the Span not working as expected with Ratpack Promises HOT 10
- Upgrade Brave version
- Context leak for streaming client requests
- Consumer applications not able to customize http client
- how to handle ServerRequest and ServerResponse public types 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 brave-ratpack.