Skip to content

Add http debugging roundtripper - #985

Open
jaymzh wants to merge 1 commit into
prometheus:mainfrom
jaymzh:http-debug
Open

Add http debugging roundtripper#985
jaymzh wants to merge 1 commit into
prometheus:mainfrom
jaymzh:http-debug

Conversation

@jaymzh

@jaymzh jaymzh commented Sep 3, 2026

Copy link
Copy Markdown

When developing things (like #962), it's useful to be able
to debug the http roundtrips. This adds debugRoundTripper that other prom
tools can use (behind a --http.debug flag) which automatically
logs the HTTP requests while redacting credentials.

Implemented downstream usage for promtool and amtool: prometheus/prometheus#19577 and prometheus/alertmanager#5541

Signed-off-by: Phil Dibowitz phil@ipom.com

@jaymzh jaymzh changed the title Add http debugging Add http debugging roundtripper Sep 3, 2026
When developing things (like prometheus#962), it's useful to be able
to debug the http roundtrips. This adds `debugRoundTripper` that other prom
tools can use (behind a `--http.debug` flag) which automatically
logs the HTTP requests while redacting credentials.

Signed-off-by: Phil Dibowitz <phil@ipom.com>
jaymzh added a commit to jaymzh/alertmanager that referenced this pull request Sep 3, 2026
This depends on prometheus/common#985 for the
infrastructure, but adds an --http.debug flag that uses the
prometheus/common debug roundtripper to provide debug logs with
credentials censored.

Signed-off-by: Phil Dibowitz <phil@ipom.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant