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