Example #1
0
 public override string ToString()
 {
     if (TraceIdHigh == 0)
     {
         return(TraceIdLow.ToString("x16", CultureInfo.InvariantCulture));
     }
     return(string.Concat(TraceIdHigh.ToString("x16", CultureInfo.InvariantCulture), TraceIdLow.ToString("x16", CultureInfo.InvariantCulture))); //show re-implement this to reduce memory use
 }
Example #2
0
        public override string ToString()
        {
            var sb = new StringBuilder("SpanRef(");

            sb.Append(", RefType: ");
            RefType.ToString(sb);
            sb.Append(", TraceIdLow: ");
            TraceIdLow.ToString(sb);
            sb.Append(", TraceIdHigh: ");
            TraceIdHigh.ToString(sb);
            sb.Append(", SpanId: ");
            SpanId.ToString(sb);
            sb.Append(')');
            return(sb.ToString());
        }
        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());
        }
Example #4
0
 public override string ToString()
 {
     return(string.Format("{0}{1}.{2}<:{3}", TraceIdHigh == SpanState.NoTraceIdHigh ? "" : TraceIdHigh.ToString(), TraceId, SpanId, ParentSpanId.HasValue ? ParentSpanId.Value.ToString(CultureInfo.InvariantCulture) : "_"));
 }