Exemple #1
0
 public void Decorate(ISpan span, ISpanDecorationSource with)
 {
     if (with.TryGetType(out var spanType))
     {
         span.Type = spanType;
     }
 }
 public void Decorate(ISpan span, ISpanDecorationSource with)
 {
     if (with.TryGetResourceName(out var resourceName))
     {
         span.ResourceName = resourceName;
     }
 }
 public void Decorate(ISpan span, ISpanDecorationSource with)
 {
     foreach (var decorator in _spanDecorators)
     {
         decorator.Decorate(span, with);
     }
 }
        public void Decorate(ISpan span, ISpanDecorationSource with)
        {
            var tags = with.GetTags();

            if (tags == null)
            {
                return;
            }

            foreach (var tag in tags)
            {
                span.SetTag(tag.Key, tag.Value);
            }
        }