@@ -55,11 +55,12 @@ public interface Observation extends ObservationView {
55
55
Observation NOOP = NoopObservation .INSTANCE ;
56
56
57
57
/**
58
- * Create and start an {@link Observation} with the given name.
59
- * All Observations of the same type must share the same name.
60
- * <p>When no registry is passed or the observation is
61
- * {@link ObservationRegistry.ObservationConfig#observationPredicate(ObservationPredicate) not applicable},
62
- * a no-op observation will be returned.
58
+ * Create and start an {@link Observation} with the given name. All Observations of
59
+ * the same type must share the same name.
60
+ * <p>
61
+ * When no registry is passed or the observation is
62
+ * {@link ObservationRegistry.ObservationConfig#observationPredicate(ObservationPredicate)
63
+ * not applicable}, a no-op observation will be returned.
63
64
* @param name name of the observation
64
65
* @param registry observation registry
65
66
* @return a started observation
@@ -160,7 +161,8 @@ static <T extends Context> Observation createNotStarted(String name, Supplier<T>
160
161
*/
161
162
// @formatter:on
162
163
static <T extends Context > Observation createNotStarted (@ Nullable ObservationConvention <T > customConvention ,
163
- ObservationConvention <T > defaultConvention , Supplier <T > contextSupplier , @ Nullable ObservationRegistry registry ) {
164
+ ObservationConvention <T > defaultConvention , Supplier <T > contextSupplier ,
165
+ @ Nullable ObservationRegistry registry ) {
164
166
if (registry == null || registry .isNoop ()) {
165
167
return Observation .NOOP ;
166
168
}
0 commit comments