@ParametersAreNonnullByDefault public interface InstrumentationLogger
Modifier and Type | Method and Description |
---|---|
void |
clearMemoryBuffer()
Clear all the data collected in the memory buffer.
|
List<LogEntry> |
getLogEntriesFromBuffer()
Fetch the current list of statistics stored in memory.
|
void |
save(String traceId,
Optional<String> spanId,
Optional<String> parentSpanId,
String path,
List<? extends Statistics> requestData,
Optional<Long> requestTime)
Saves request data to the queue above.
|
void |
save(String traceId,
String path,
List<? extends Statistics> requestData,
Optional<Long> requestTime)
Saves request data to the queue above.
|
void save(String traceId, String path, List<? extends Statistics> requestData, Optional<Long> requestTime)
traceId
- The ID for this request.path
- the path of the URL.requestData
- The list of cache statistics.requestTime
- The time in nanoseconds that the request took to complete.void save(String traceId, Optional<String> spanId, Optional<String> parentSpanId, String path, List<? extends Statistics> requestData, Optional<Long> requestTime)
traceId
- The ID for this request.spanId
- The Zipkin spanId from the requestparentSpanId
- The Zipkin parent span Id for the requestpath
- the path of the URL.requestData
- The list of cache statistics.requestTime
- The time of the request in nanoseconds. If zero, we did not collect any time.List<LogEntry> getLogEntriesFromBuffer()
void clearMemoryBuffer()
Copyright © 2002-2015 Atlassian. All Rights Reserved.