-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Brave/Sleuth example? #5
Comments
@AndersClausen was also looking for this in order to store container bookings for shipping logistics |
@adriancole will look into integrating with zipkin spans later this month. I will work with @ashishagg and Vaibhav to wire it to the agent. Will update this issue. |
@mchandramouli I'm wondering if there's an update on your comment above, as I'm really keen to see what you've come up with. |
Hi @ashishagg Any chance you could give me an update on your progress on the comments above? Many thanks |
@mchandramouli has added zipkin-blob support in blobs core repo. I have just committed my changes in haystack-dropwizard library that provides easy integration of traces and blob(req/resp) feature. This may give you a clue of how we are thinking to integrate. Also check the latest code in this example, it now needs a blobs config change to enable the req/resp logging and add a span tag for the dereferencing. I will now work on haystack spring library to enable the similar functionality. I will share those changes and then work on zipkin example. |
It seems the similar approach will work to integrate blobs with opentracing-spring-web-starter @adriancole For brave, does the tracing library provide any decorator pattern? I can implement one provide a library for spring integration |
there are things like HttpClientParser which add things into the span. the problem with blobs is that I think it would need to change the request itself in some cases, right? |
Intent of blobs to capture the request and response in its original form, push it to distributed file system through haystack-agent(or some other forwarders). I have made changes that does all heavy lifting to integrate blobs and works with opentracing-spring-web-starter. https://github.com/ExpediaDotCom/opentracing-spring-haystack-starter/pull/14/files Will update README and example to show how just a config update turns on this feature. |
fyi. The blob integration is completed for opentracing-spring-haystack library. @adriancole , for sleuth/brave integration, FinishedSpanHandler looks the closest match for adding tags in a span. My question on 'FinishedSpanHandler' - since it doesn't pass HttpRequest in handler call, but it sends |
http parser is probably closer to the mark as you can access the raw type. For example, if nothing is sampled, surely we shouldn't add overhead of converting to byte arrays right? https://github.com/openzipkin/brave/tree/master/instrumentation/http#span-data-policy otoh our current parser is a single object where finished span handler can have multiple.. it could make sense when refactoring to allow multiple parsers. I'll tee that off here.. openzipkin/brave#999 |
I will leave this till multiple parsers come into existence. But for my knowledge, I may try an alternate implementation with FinishedSpanHandler and ServletFilter. I guess we can avoid byte[] conversions in case of non-sampling. |
servlet filter can work with a finished span handler, but you'll need
to stash the url somewhere. I guess the byte array stuff is really an
implementation detail, as that doesn't end up in the span.
indeed FinishedSpanHandler could work, provided you use an
ExtraFieldCustomizer to stash the urls you need (such as used in the
https://github.com/openzipkin-contrib/zipkin-secondary-sampling)
…On Tue, Jan 28, 2020 at 12:59 PM Ashish Aggarwal ***@***.***> wrote:
I will leave this till multiple parsers come into existence. But for my knowledge, I may try an alternate implementation with FinishedSpanHandler and ServletFilter. I guess we can avoid byte[] conversions in case of non-sampling.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
We had a request for request/response tagging on sleuth channel. If/when things integrate around that it would be nice to have an example here, or a branch off https://github.com/openzipkin/sleuth-webmvc-example
cc @marcingrzejszczak
The text was updated successfully, but these errors were encountered: