Skip to content

Commit

Permalink
Polish
Browse files Browse the repository at this point in the history
  • Loading branch information
marcingrzejszczak committed Nov 23, 2022
1 parent a4007b7 commit 212f958
Showing 1 changed file with 8 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,12 @@ public interface Observation extends ObservationView {
Observation NOOP = NoopObservation.INSTANCE;

/**
* Create and start an {@link Observation} with the given name.
* All Observations of the same type must share the same name.
* <p>When no registry is passed or the observation is
* {@link ObservationRegistry.ObservationConfig#observationPredicate(ObservationPredicate) not applicable},
* a no-op observation will be returned.
* Create and start an {@link Observation} with the given name. All Observations of
* the same type must share the same name.
* <p>
* When no registry is passed or the observation is
* {@link ObservationRegistry.ObservationConfig#observationPredicate(ObservationPredicate)
* not applicable}, a no-op observation will be returned.
* @param name name of the observation
* @param registry observation registry
* @return a started observation
Expand Down Expand Up @@ -160,7 +161,8 @@ static <T extends Context> Observation createNotStarted(String name, Supplier<T>
*/
// @formatter:on
static <T extends Context> Observation createNotStarted(@Nullable ObservationConvention<T> customConvention,
ObservationConvention<T> defaultConvention, Supplier<T> contextSupplier, @Nullable ObservationRegistry registry) {
ObservationConvention<T> defaultConvention, Supplier<T> contextSupplier,
@Nullable ObservationRegistry registry) {
if (registry == null || registry.isNoop()) {
return Observation.NOOP;
}
Expand Down

0 comments on commit 212f958

Please sign in to comment.