Пример #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();
 }
Пример #2
0
        public void AssertValid()
        {
            Id.ErrorIdAssertValid();
            TraceId.TraceIdAssertValid();
            TransactionId.TransactionIdAssertValid();
            ParentId.ParentIdAssertValid();
            Transaction.AssertValid();
            Context?.AssertValid();
            Culprit.NonEmptyAssertValid();
            Exception.AssertValid();

            if (Transaction.IsSampled)
            {
                Context.Should().NotBeNull();
            }
            else
            {
                Context.Should().BeNull();
            }
        }
Пример #3
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();
            }
        }