Fail fast
This commit is contained in:
@@ -604,7 +604,7 @@ public class SleuthSpanCreatorAspectFluxTests {
|
||||
|
||||
protected static Long id(Tracer tracer) {
|
||||
if (tracer.currentSpan() == null) {
|
||||
return null;
|
||||
throw new IllegalStateException("Current Span is supposed to have a value!");
|
||||
}
|
||||
return tracer.currentSpan().context().spanId();
|
||||
}
|
||||
|
||||
@@ -660,7 +660,7 @@ public class SleuthSpanCreatorAspectMonoTests {
|
||||
|
||||
protected static Long id(Tracer tracer) {
|
||||
if (tracer.currentSpan() == null) {
|
||||
return null;
|
||||
throw new IllegalStateException("Current Span is supposed to have a value!");
|
||||
}
|
||||
return tracer.currentSpan().context().spanId();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user