Typo in the first para under Discussion :
“The write side is sent to
producer that encodes the metrics and the write side is send at the request body to http.NewRequest.”
The second “write” must be “read” I think.
By the way there are quite a few typos of this sort that I have not always kept note of. Please check.