@ParametersAreNonnullByDefault @Internal 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(Optional<String> traceId,
Optional<String> spanId,
Optional<String> parentSpanId,
Optional<String> path,
List<? extends Statistics> requestData,
Optional<Long> requestTime)
Saves request data to the queue above.
|
void |
save(Optional<String> traceId,
Optional<String> spanId,
Optional<String> parentSpanId,
Optional<String> path,
List<? extends Statistics> requestData,
Optional<Long> requestTime,
Exception exception)
Saves request data to the queue above and generates a stacktrace that it inserts in the log.
|
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(Optional<String> traceId, Optional<String> spanId, Optional<String> parentSpanId, Optional<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.void save(Optional<String> traceId, Optional<String> spanId, Optional<String> parentSpanId, Optional<String> path, List<? extends Statistics> requestData, Optional<Long> requestTime, Exception exception)
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.exception
- An exception to be included with the log. This can be used if you require a stack trace to be recorded.List<LogEntry> getLogEntriesFromBuffer()
void clearMemoryBuffer()
Copyright © 2002-2016 Atlassian. All Rights Reserved.