Skip to content

Commit

Permalink
fix(pubsub): tag ctx in iterator with subscription for opencensus (#5011
Browse files Browse the repository at this point in the history
)
  • Loading branch information
hongalex committed Oct 25, 2021
1 parent 080edd1 commit cdf9588
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pubsub/iterator.go
Expand Up @@ -92,6 +92,7 @@ func newMessageIterator(subc *vkit.SubscriberClient, subName string, po *pullOpt
nackTicker := time.NewTicker(100 * time.Millisecond)
pingTicker := time.NewTicker(30 * time.Second)
cctx, cancel := context.WithCancel(context.Background())
cctx = withSubscriptionKey(cctx, subName)
it := &messageIterator{
ctx: cctx,
cancel: cancel,
Expand Down

0 comments on commit cdf9588

Please sign in to comment.