Class TraceSpan

java.lang.Object
io.vertigo.core.analytics.trace.TraceSpan

public final class TraceSpan extends Object
A trace is composed of spans A trace is trIggered by an app A span contains - when : start, end, duration - what : name, category - data : measures, tags - a list of child spans [when] - start timestamp - end timestamp [what] - category (examples : sql, tasks) - name (examples : /create/movies) [data] - measures - tags - metadatas [span hierarchy] - list of child spans (0..*)
Version:
$Id: KProcess.java,v 1.8 2012/10/16 17:18:26 pchretien Exp $
Author:
pchretien, npiedeloup
  • Field Details

  • Method Details

    • builder

      public static TraceSpanBuilder builder(String category, String name)
      Static method factory for the span builder
      Parameters:
      category - the category
      name - the name
      Returns:
      the span builder
    • builder

      public static TraceSpanBuilder builder(String category, String name, Instant start, Instant end)
      Static method factory for the span builder
      Parameters:
      category - the category
      name - the name
      start - the span start
      end - the span end
      Returns:
      the span builder
    • getName

      public String getName()
      [what]
      Returns:
      the name
    • getCategory

      public String getCategory()
      Returns:
      the category
    • getDurationMillis

      public long getDurationMillis()
      Returns:
      the span duration (in milliseconds)
    • getStart

      public long getStart()
      [when]
      Returns:
      the span start timestamp in Millis
    • getEnd

      public long getEnd()
      [when]
      Returns:
      the span end timestamp in Millis
    • getMeasures

      public Map<String,Double> getMeasures()
      Returns:
      the span measures
    • getMetadatas

      public Map<String,String> getMetadatas()
      Returns:
      the span metadatas
    • getTags

      public Map<String,String> getTags()
      Returns:
      the span tags
    • getChildSpans

      public List<TraceSpan> getChildSpans()
      Returns:
      the list of child spans
    • toString

      public String toString()
      Overrides:
      toString in class Object