TagMap

Source code example

packagemainimport("go.opencensus.io/stats""go.opencensus.io/tag")funcdoWork(){// The TagMap is inserted into this context
ctx,_:=tag.New(ctx,tag.Upsert(tagKey,"gomemcache.Client.Get"),tag.Upsert(tagKeyRegion,"asia-x1"))