tracing: added missing trace location

This commit is contained in:
Tigor Hutasuhut 2024-04-14 00:42:17 +07:00
parent 640fe31d10
commit bf998e9ef9

View file

@ -98,6 +98,9 @@ func (api *API) downloadSubredditListImage(ctx context.Context, list reddit.List
wg.Add(1)
api.imageSemaphore <- struct{}{}
go func(ctx context.Context, post reddit.Post) {
ctx, span := tracer.Start(ctx, "*API.downloadSubredditImage.goFunc")
defer span.End()
defer func() {
<-api.imageSemaphore
wg.Done()