Skip to content

Conversation

@mmatczuk
Copy link
Contributor

@mmatczuk mmatczuk commented Feb 27, 2024

Fixes #453

@mmatczuk mmatczuk requested a review from Choraden as a code owner February 27, 2024 14:15
Copy link
Contributor

@Choraden Choraden left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

mmatczuk added 6 commits March 4, 2024 14:22
ProxyTrace is modeled after net/http/httptrace package, but it's intended to be attached to Proxy not individual requests - hence the API is slightly different.

It's possible to replicate httptrace.ClientTrace API in ProxyTrace but it's not a goal at the moment.

It's added as means of notifying users that request is fully processed and response is written but can be easily extended to other usecases.
Call traceWroteResponse() in writeResponse() and tunnel().
Use request and response modifiers to decorate bodies with measuring capabilities.
Report results when response is sent.
@mmatczuk mmatczuk merged commit 339ba92 into main Mar 4, 2024
@mmatczuk mmatczuk deleted the mmt/inflight branch March 4, 2024 13:27
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.

martian add metrics for inflight requests proxy is processing

3 participants