Beispiel #1
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (TraceIdHigh != 0UL)
            {
                hash ^= TraceIdHigh.GetHashCode();
            }
            if (TraceId != 0UL)
            {
                hash ^= TraceId.GetHashCode();
            }
            if (SpanId != 0UL)
            {
                hash ^= SpanId.GetHashCode();
            }
            if (parentSpanId_ != null)
            {
                hash ^= ParentSpanId.GetHashCode();
            }
            if (Sampled != false)
            {
                hash ^= Sampled.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Beispiel #2
0
        public override int GetHashCode()
        {
            int hashcode = 157;

            unchecked {
                hashcode = (hashcode * 397) + TraceIdLow.GetHashCode();
                hashcode = (hashcode * 397) + TraceIdHigh.GetHashCode();
                hashcode = (hashcode * 397) + SpanId.GetHashCode();
                hashcode = (hashcode * 397) + ParentSpanId.GetHashCode();
                hashcode = (hashcode * 397) + OperationName.GetHashCode();
                if (__isset.references)
                {
                    hashcode = (hashcode * 397) + TCollections.GetHashCode(References);
                }
                hashcode = (hashcode * 397) + Flags.GetHashCode();
                hashcode = (hashcode * 397) + StartTime.GetHashCode();
                hashcode = (hashcode * 397) + Duration.GetHashCode();
                if (__isset.tags)
                {
                    hashcode = (hashcode * 397) + TCollections.GetHashCode(Tags);
                }
                if (__isset.logs)
                {
                    hashcode = (hashcode * 397) + TCollections.GetHashCode(Logs);
                }
            }
            return(hashcode);
        }
Beispiel #3
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = TraceIdHigh.GetHashCode();
         hashCode = (hashCode * 397) ^ TraceId.GetHashCode();
         hashCode = (hashCode * 397) ^ ParentSpanId.GetHashCode();
         hashCode = (hashCode * 397) ^ SpanId.GetHashCode();
         return(hashCode);
     }
 }
Beispiel #4
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = (Type != null ? Type.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (To != null ? To.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (From != null ? From.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Method != null ? Method.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (ParentSpanId != null ? ParentSpanId.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Span != null ? Span.GetHashCode() : 0);
         return(hashCode);
     }
 }
Beispiel #5
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (HasType)
            {
                hash ^= Type.GetHashCode();
            }
            if (HasValue)
            {
                hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(Value);
            }
            if (HasTraceId)
            {
                hash ^= TraceId.GetHashCode();
            }
            if (HasSpanId)
            {
                hash ^= SpanId.GetHashCode();
            }
            if (HasParentSpanId)
            {
                hash ^= ParentSpanId.GetHashCode();
            }
            if (HasService)
            {
                hash ^= Service.GetHashCode();
            }
            if (HasStartDate)
            {
                hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(StartDate);
            }
            if (HasFinishDate)
            {
                hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(FinishDate);
            }
            hash ^= tags_.GetHashCode();
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
        public override string ToString()
        {
            var sb = new StringBuilder("Span(");

            sb.Append(", TraceIdLow: ");
            TraceIdLow.ToString(sb);
            sb.Append(", TraceIdHigh: ");
            TraceIdHigh.ToString(sb);
            sb.Append(", SpanId: ");
            SpanId.ToString(sb);
            sb.Append(", ParentSpanId: ");
            ParentSpanId.ToString(sb);
            if ((OperationName != null))
            {
                sb.Append(", OperationName: ");
                OperationName.ToString(sb);
            }
            if ((References != null) && __isset.references)
            {
                sb.Append(", References: ");
                References.ToString(sb);
            }
            sb.Append(", Flags: ");
            Flags.ToString(sb);
            sb.Append(", StartTime: ");
            StartTime.ToString(sb);
            sb.Append(", Duration: ");
            Duration.ToString(sb);
            if ((Tags != null) && __isset.tags)
            {
                sb.Append(", Tags: ");
                Tags.ToString(sb);
            }
            if ((Logs != null) && __isset.logs)
            {
                sb.Append(", Logs: ");
                Logs.ToString(sb);
            }
            sb.Append(')');
            return(sb.ToString());
        }
Beispiel #7
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (TraceId.Length != 0)
            {
                hash ^= TraceId.GetHashCode();
            }
            if (SpanId.Length != 0)
            {
                hash ^= SpanId.GetHashCode();
            }
            if (ParentSpanId.Length != 0)
            {
                hash ^= ParentSpanId.GetHashCode();
            }
            if (SpanName.Length != 0)
            {
                hash ^= SpanName.GetHashCode();
            }
            if (startTime_ != null)
            {
                hash ^= StartTime.GetHashCode();
            }
            if (endTime_ != null)
            {
                hash ^= EndTime.GetHashCode();
            }
            hash ^= SpanTags.GetHashCode();
            if (HttpStatusCode != 0L)
            {
                hash ^= HttpStatusCode.GetHashCode();
            }
            if (ClientSpan != false)
            {
                hash ^= ClientSpan.GetHashCode();
            }
            if (RewriteClientSpanId != false)
            {
                hash ^= RewriteClientSpanId.GetHashCode();
            }
            if (SourceName.Length != 0)
            {
                hash ^= SourceName.GetHashCode();
            }
            if (sourceIp_ != null)
            {
                hash ^= SourceIp.GetHashCode();
            }
            if (DestinationName.Length != 0)
            {
                hash ^= DestinationName.GetHashCode();
            }
            if (destinationIp_ != null)
            {
                hash ^= DestinationIp.GetHashCode();
            }
            if (RequestSize != 0L)
            {
                hash ^= RequestSize.GetHashCode();
            }
            if (RequestTotalSize != 0L)
            {
                hash ^= RequestTotalSize.GetHashCode();
            }
            if (ResponseSize != 0L)
            {
                hash ^= ResponseSize.GetHashCode();
            }
            if (ResponseTotalSize != 0L)
            {
                hash ^= ResponseTotalSize.GetHashCode();
            }
            if (ApiProtocol.Length != 0)
            {
                hash ^= ApiProtocol.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }