Skip to content

Commit

Permalink
feat: metric
Browse files Browse the repository at this point in the history
  • Loading branch information
2276282419 committed Jul 4, 2023
1 parent edc2de7 commit 014a69d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion http/http_client/http_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ func createTransport(c *http_client_config.Config) http.RoundTripper {
return t
}

func (h *HttpClient) EnableMetricInterceptor(metricPathRewriter interceptor.MetricPathRewriter) {
func (h *HttpClient) EnableMetricInterceptor(metricPathRewriter http_client_config.MetricPathRewriter) {
onBefore, onAfter, onErr := interceptor.MetricInterceptor(h.config.Name, h.config.Addr, metricPathRewriter)
AddInterceptors(h.Client, onBefore, onAfter, onErr)
}
Expand Down

0 comments on commit 014a69d

Please sign in to comment.