From bf998e9ef9448befe68d34468ca750c2d7e1632c Mon Sep 17 00:00:00 2001 From: Tigor Hutasuhut Date: Sun, 14 Apr 2024 00:42:17 +0700 Subject: [PATCH] tracing: added missing trace location --- api/download_subreddit_images.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/api/download_subreddit_images.go b/api/download_subreddit_images.go index 47ffd34..3b477a9 100644 --- a/api/download_subreddit_images.go +++ b/api/download_subreddit_images.go @@ -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()