Open NeoCN opened 7 years ago
I have a similar issue wanting to decorate the Span based on the existence of a metadata attribute (specifically I want to include the value from "x-retry-attempty" to indicate that the gRPC request is a retry initiated by go-grpc-middleware/retry) I could put a pull request together that adds context into SpanDecoratorFunc, but that would be an API breaking change. Alternative approaches would involve adding additional Options to extend the OpenTracingClientInterceptor
I notice that there is SpanDecoratorFunc to use, and I want to add
peer.Address
Tag in both client and server span, according to the docHow can I get remote address without
context.Context
orpeer.Peer
as argument?