Exemple #1
0
 public Span(IZipkinTracer tracer, string operationName, IZipkinSpanContext context, DateTimeOffset started,
             SpanKind?kind = null, Endpoint localEndpoint = null, Dictionary <string, string> tags = null)
 {
     _tracer       = tracer;
     OperationName = operationName;
     TypedContext  = context;
     Started       = started;
     SpanKind      = kind;
     LocalEndpoint = localEndpoint ?? _tracer.LocalEndpoint;
     _tags         = tags;
 }
 public bool Equals(IZipkinSpanContext other)
 {
     if (ReferenceEquals(null, other))
     {
         return(false);
     }
     if (ReferenceEquals(this, other))
     {
         return(true);
     }
     return(TraceId.Equals(other.TraceId) && SpanId == other.SpanId && ParentId == other.ParentId);
 }
Exemple #3
0
        public void NullSpanContextShouldBeEmpty()
        {
            IZipkinSpanContext none = null;

            none.IsEmpty().Should().BeTrue();
        }
 public bool Equals(IZipkinSpanContext other)
 {
     return(ReferenceEquals(other, Instance));
 }