コード例 #1
0
ファイル: SpanDto.cs プロジェクト: glucaci/apm-agent-dotnet
 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();
            }
        }