Distributed tracing with golang http.PostForm

后端 未结 1 1782
慢半拍i
慢半拍i 2021-01-28 22:21

In my project, I try to implement distributed tracing using opentracing.

My microservice has following structure.

-- API-Gateway
       |_ U         


        
相关标签:
1条回答
  • 2021-01-28 23:08

    I don't think it can be done from PostForm. You would need to use http.NewRequest to create the POST request, Inject the span in headers and use Client.Do to send the request.

    0 讨论(0)
提交回复
热议问题