Actually you can just add a protocol add an extra header just like Finagle. You 
don’t change anything to thrift and you can communicate between raw binary 
protocol and your own protocol.

On 27/10/2017, 8:39 AM, "Akshya Gupta" <[email protected]> wrote:

    Hello,
    
    I was trying to integrate the tracing capabilities of opentracing into the 
thrift RPC for golang.
    
    But I am not sure which files I would need to modify. My thoughts were to 
create a new TProtocol (like TCompactProtocol) which would accept the tracer 
and the span context created by the opentracing and then whenever an rpc 
message is sent or received, a span trace would be sent to the tracer.
    
    I saw that there is a java-thrift implementation 
https://github.com/opentracing-contrib/java-thrift 
<https://github.com/opentracing-contrib/java-thrift>
    But the implementation for golang would be a bit different I guess, hence 
the question
    
    Thanks
    Aks.
    -- 
    
    This message and its attachments are intended only for the addressee and 
    may contain legally privileged and/or confidential information. If you are 
    not the intended recipient, you are hereby notified that you must not use, 
    disseminate, or copy this material in any form, or take any action based 
    upon it. If you have received this message by error, please immediately 
    delete it and its attachments and notify the sender at SnapRoute, Inc. by 
    electronic mail message reply. Thank you.
    




Reply via email to