public class SpanMXBeanImpl extends Object implements SpanMXBean
| Constructor and Description |
|---|
SpanMXBeanImpl() |
| Modifier and Type | Method and Description |
|---|---|
Long |
getAvgSpanCreationTime()
Get the average span creation time.
|
Long |
getAvgSpanDuration()
Get the the average duration of a span.
|
String |
getMaxDurationSpanId()
Return the id of the span that took the maximum time to finish.
|
Long |
getMaxSpanCreationTime()
Get the max time spent to create a span.
|
Long |
getMaxSpanDuration()
Return the longest duration that a span took to complete.
|
Long |
getTotalFinishedSpans()
Return the totalnumber of spans that were closed.
|
Long |
getTotalSpans()
Return the total number of spans created so far.
|
void |
setAvgSpanCreationTime(Long avgSpanCreationTime) |
void |
setAvgSpanDuration(Long avgSpanDuration) |
void |
setMaxDurationSpanId(String maxDurationSpanId) |
void |
setMaxSpanCreationTime(Long maxSpanCreationTime) |
void |
setMaxSpanDuration(Long maxSpanDuration) |
void |
setTotalFinishedSpans(Long totalFinishedSpans) |
void |
setTotalSpans(Long totalSpans) |
void |
updateSpanCreation(Long creationTime) |
void |
updateSpanFinish(String spanId,
Long duration) |
public Long getTotalSpans()
SpanMXBeangetTotalSpans in interface SpanMXBeanpublic Long getMaxSpanCreationTime()
SpanMXBeangetMaxSpanCreationTime in interface SpanMXBeanpublic Long getAvgSpanCreationTime()
SpanMXBeangetAvgSpanCreationTime in interface SpanMXBeanpublic Long getMaxSpanDuration()
SpanMXBeanSpan.finish()
method had already been invoked.getMaxSpanDuration in interface SpanMXBeanpublic Long getAvgSpanDuration()
SpanMXBeangetAvgSpanDuration in interface SpanMXBeanpublic String getMaxDurationSpanId()
SpanMXBeangetMaxDurationSpanId in interface SpanMXBeanpublic Long getTotalFinishedSpans()
SpanMXBeangetTotalFinishedSpans in interface SpanMXBeanpublic void setMaxSpanCreationTime(Long maxSpanCreationTime)
public void setAvgSpanDuration(Long avgSpanDuration)
public void setAvgSpanCreationTime(Long avgSpanCreationTime)
public void setTotalSpans(Long totalSpans)
public void setMaxSpanDuration(Long maxSpanDuration)
public void setMaxDurationSpanId(String maxDurationSpanId)
public void setTotalFinishedSpans(Long totalFinishedSpans)
public void updateSpanCreation(Long creationTime)
Copyright © 2020. All rights reserved.