outpost: add tracing for http client

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
Jens Langhammer
2021-07-23 17:37:06 +02:00
parent d16c24fd53
commit aca3a5c458
3 changed files with 25 additions and 2 deletions

View File

@ -61,7 +61,7 @@ func NewFlowExecutor(ctx context.Context, flowSlug string, refConfig *api.Config
config.UserAgent = constants.OutpostUserAgent()
config.HTTPClient = &http.Client{
Jar: jar,
Transport: ak.GetTLSTransport(),
Transport: ak.NewTracingTransport(ak.GetTLSTransport()),
}
apiClient := api.NewAPIClient(config)
return &FlowExecutor{