Closed pracucci closed 3 weeks ago
I think https://github.com/prometheus/common/pull/416 introduced an issue. json marshalling doesn't support inline and so when HTTPClientConfig gets marshalled to JSON it gets marshalled to something like this:
json
inline
HTTPClientConfig
{"http_headers":{"Headers":{"Header-Name":{}}}
while I would expect something like this:
{"http_headers":{"Header-Name":{}}
This PR should fix it.
Thanks!
I think https://github.com/prometheus/common/pull/416 introduced an issue.
json
marshalling doesn't supportinline
and so whenHTTPClientConfig
gets marshalled to JSON it gets marshalled to something like this:while I would expect something like this:
This PR should fix it.