@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(RequestData requestData,
List<? extends Statistics> requestStats,
Optional<Long> requestTime)
Saves request data to the queue above.
|
void |
save(RequestData requestData,
List<? extends Statistics> requestStats,
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(RequestData requestData, List<? extends Statistics> requestStats, Optional<Long> requestTime)
requestData
- data associated with the request.requestStats
- The list of cache statistics.requestTime
- The time of the request in nanoseconds. If zero, we did not collect any time.void save(RequestData requestData, List<? extends Statistics> requestStats, Optional<Long> requestTime, Exception exception)
requestData
- data associated with the request.requestStats
- 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-2024 Atlassian. All Rights Reserved.