outpost: fix spans being sent without parent context

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
Jens Langhammer
2021-09-03 18:17:08 +02:00
parent e751ce1220
commit 70d1e3a0cb
3 changed files with 7 additions and 5 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.NewTracingTransport(ak.GetTLSTransport()),
Transport: ak.NewTracingTransport(ctx, ak.GetTLSTransport()),
}
apiClient := api.NewAPIClient(config)
return &FlowExecutor{