Ejemplo n.º 1
0
 public void AssertValid()
 {
     Timestamp.TimestampAssertValid();
     Id.SpanIdAssertValid();
     TransactionId.TransactionIdAssertValid();
     TraceId.TraceIdAssertValid();
     ParentId.ParentIdAssertValid();
     Subtype?.AssertValid();
     Action?.AssertValid();
     Context?.AssertValid();
     Duration.DurationAssertValid();
     Name?.NameAssertValid();
     StackTrace?.AssertValid();
     Type?.AssertValid();
 }
Ejemplo n.º 2
0
        public void AssertValid()
        {
            Timestamp.TimestampAssertValid();
            Id.TransactionIdAssertValid();
            TraceId.TraceIdAssertValid();
            ParentId?.ParentIdAssertValid();
            SpanCount.AssertValid();
            Context?.AssertValid();
            Duration.DurationAssertValid();
            Name?.NameAssertValid();
            Result?.AssertValid();
            Type?.AssertValid();

            if (IsSampled)
            {
                Context.Should().NotBeNull();
            }
            else
            {
                Context.Should().BeNull();
            }
        }