Package io.vertigo.core.analytics.trace
Class TraceSpan
java.lang.Object
io.vertigo.core.analytics.trace.TraceSpan
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 Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic TraceSpanBuilderStatic method factory for the span builderstatic TraceSpanBuilderStatic method factory for the span builderlonglonggetEnd()[when]getName()[what]longgetStart()[when]getTags()toString()
-
Field Details
-
CATEGORY_SEPARATOR
- See Also:
-
-
Method Details
-
builder
Static method factory for the span builder- Parameters:
category- the categoryname- the name- Returns:
- the span builder
-
builder
Static method factory for the span builder- Parameters:
category- the categoryname- the namestart- the span startend- the span end- Returns:
- the span builder
-
getName
[what]- Returns:
- the name
-
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
- Returns:
- the span measures
-
getMetadatas
- Returns:
- the span metadatas
-
getTags
- Returns:
- the span tags
-
getChildSpans
- Returns:
- the list of child spans
-
toString
-