mirror of
https://github.com/hanzoai/psrpc.git
synced 2026-09-30 23:47:22 +00:00
forward request options in otel middleware (#112)
This commit is contained in:
@@ -55,7 +55,7 @@ func ClientOptions(c Config) psrpc.ClientOption {
|
||||
ctx = metadata.WithOutgoingMetadata(ctx, m)
|
||||
|
||||
span.AddEvent("Outbound message")
|
||||
resp, err := next(ctx, req)
|
||||
resp, err := next(ctx, req, opts...)
|
||||
span.AddEvent("Inbound message")
|
||||
setSpanError(span, err)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user