Skip to content

Commit

Permalink
fixup! chore: emit metrics using transformer response headers. TODO: …
Browse files Browse the repository at this point in the history
…cleanup
  • Loading branch information
Sidddddarth authored and cisse21 committed Feb 3, 2025
1 parent 628b601 commit f9f7873
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions processor/transformer/transformer.go
Original file line number Diff line number Diff line change
Expand Up @@ -241,8 +241,8 @@ func NewTransformer(conf *config.Config, log logger.Logger, stat stats.Stats, op
PickerType: conf.GetString("Transformer.Client.httplb.pickerType", "power_of_two"),
CheckerType: conf.GetString("Transformer.Client.httplb.checkerType", "nop"),

// for now no health checks - can be implemented when there are different clients for UT, DT, TPV
// CheckURL: trans.config.userTransformationURL,
//for now no health checks - can be implemented when there are different clients for UT, DT, TPV
CheckURL: trans.config.userTransformationURL,
}
transformerClientConfig.TransportConfig.DisableKeepAlives = trans.config.disableKeepAlives
transformerClientConfig.TransportConfig.MaxConnsPerHost = trans.config.maxHTTPConnections
Expand Down Expand Up @@ -508,7 +508,6 @@ func (trans *handle) doPost(ctx context.Context, rawJSON []byte, url, stage stri
req.Header.Set("X-Feature-Filter-Code", "?1")

resp, reqErr = trans.httpClient.Do(req)

})
trans.stat.NewTaggedStat("processor.transformer_request_time", stats.TimerType, tags).SendTiming(time.Since(requestStartTime))
if reqErr != nil {
Expand Down

0 comments on commit f9f7873

Please sign in to comment.