Package org.springframework.cloud.sleuth
Interface CurrentTraceContext.Scope
-
- All Superinterfaces:
AutoCloseable
,Closeable
- Enclosing interface:
- CurrentTraceContext
public static interface CurrentTraceContext.Scope extends Closeable
Scope of a span. Needs to be closed so that resources are let go (e.g. MDC is cleared).
-
-
Field Summary
Fields Modifier and Type Field Description static CurrentTraceContext.Scope
NOOP
Noop instance.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
close()
-
-
-
Field Detail
-
NOOP
static final CurrentTraceContext.Scope NOOP
Noop instance.
-
-
Method Detail
-
close
void close()
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
-
-