tracing: added missing trace location
This commit is contained in:
parent
640fe31d10
commit
bf998e9ef9
|
@ -98,6 +98,9 @@ func (api *API) downloadSubredditListImage(ctx context.Context, list reddit.List
|
||||||
wg.Add(1)
|
wg.Add(1)
|
||||||
api.imageSemaphore <- struct{}{}
|
api.imageSemaphore <- struct{}{}
|
||||||
go func(ctx context.Context, post reddit.Post) {
|
go func(ctx context.Context, post reddit.Post) {
|
||||||
|
ctx, span := tracer.Start(ctx, "*API.downloadSubredditImage.goFunc")
|
||||||
|
defer span.End()
|
||||||
|
|
||||||
defer func() {
|
defer func() {
|
||||||
<-api.imageSemaphore
|
<-api.imageSemaphore
|
||||||
wg.Done()
|
wg.Done()
|
||||||
|
|
Loading…
Reference in a new issue