Skip to content

Commit 212f958

Browse files
Polish
1 parent a4007b7 commit 212f958

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

micrometer-observation/src/main/java/io/micrometer/observation/Observation.java

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -55,11 +55,12 @@ public interface Observation extends ObservationView {
5555
Observation NOOP = NoopObservation.INSTANCE;
5656

5757
/**
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.
6364
* @param name name of the observation
6465
* @param registry observation registry
6566
* @return a started observation
@@ -160,7 +161,8 @@ static <T extends Context> Observation createNotStarted(String name, Supplier<T>
160161
*/
161162
// @formatter:on
162163
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) {
164166
if (registry == null || registry.isNoop()) {
165167
return Observation.NOOP;
166168
}

0 commit comments

Comments
 (0)