From f81f95cbbcba41cfbac80ac6a65a51b1f230b021 Mon Sep 17 00:00:00 2001 From: miya Date: Thu, 29 Apr 2021 09:06:13 -0500 Subject: [PATCH] example/blog: enhance ctx (#887) --- examples/blog/internal/service/article.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/blog/internal/service/article.go b/examples/blog/internal/service/article.go index d213ff4be..2b8ba8289 100644 --- a/examples/blog/internal/service/article.go +++ b/examples/blog/internal/service/article.go @@ -43,7 +43,7 @@ func (s *BlogService) DeleteArticle(ctx context.Context, req *pb.DeleteArticleRe func (s *BlogService) GetArticle(ctx context.Context, req *pb.GetArticleRequest) (*pb.GetArticleReply, error) { tr := otel.Tracer("api") - _, span := tr.Start(ctx, "GetArticle") + ctx, span := tr.Start(ctx, "GetArticle") defer span.End() p, err := s.article.Get(ctx, req.Id) if err != nil {