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(); }
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(); } }
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(); } }