prometheus icon indicating copy to clipboard operation
prometheus copied to clipboard

api: export point non-standard marshaling functions

Open ortuman opened this issue 1 year ago • 0 comments

This PR exports marshalTimestamp and marshalValue functions by moving them under their own util package.

These functions are a bit tricky, so exporting them helps to keep this piece of code aligned in projects that vendor Prometheus code without needing to copy & paste.

Signed-off-by: Miguel Ángel Ortuño [email protected]

ortuman avatar Sep 19 '22 13:09 ortuman