observatorium / obsctl

A cli to interact with Observatorium instances.
Apache License 2.0
10 stars 14 forks source link

Log HTTP requests to Observatorium at debug level #21

Closed esnible closed 2 years ago

esnible commented 2 years ago

I found it difficult to understand what obsctl was doing.

This PR adds debug output to obsctl. To try it do obsctl metrics get rules --log.level=debug and see it now logs "debug: GET: https://observatorium.api.stage.openshift.com/api/metrics/v1/rhobs/api/v1/rules".

Headers are not logged, just the method and URL.