Package org.apache.hadoop.fs.store.audit
Interface ActiveThreadSpanSource<T extends AuditSpan>
public interface ActiveThreadSpanSource<T extends AuditSpan>
Interface to get the active thread span.
This can be used to collect the active span to
propagate it into other threads.
FileSystems which track their active span may implement
this and offer their active span.
-
Method Summary
-
Method Details
-
getActiveAuditSpan
T getActiveAuditSpan()The active span. This may not be a valid span, i.e. there is no guarantee thatgetActiveAuditSpan().isValidSpan()is true, but implementations MUST always return a non-null span.- Returns:
- the currently active span.
-