addMetadata propagates the headers into a map that we inject into drpc metadata so they are sent across the wire for the server to get.
(ctx context.Context)
| 48 | // addMetadata propagates the headers into a map that we inject into drpc metadata so they are |
| 49 | // sent across the wire for the server to get. |
| 50 | func (*DRPCConn) addMetadata(ctx context.Context) context.Context { |
| 51 | metadata := make(map[string]string) |
| 52 | otel.GetTextMapPropagator().Inject(ctx, propagation.MapCarrier(metadata)) |
| 53 | return drpcmetadata.AddPairs(ctx, metadata) |
| 54 | } |