File tree 3 files changed +5
-4
lines changed
micrometer-observation/src/main/java/io/micrometer/observation
3 files changed +5
-4
lines changed Original file line number Diff line number Diff line change 16
16
package io .micrometer .observation ;
17
17
18
18
import io .micrometer .common .KeyValue ;
19
+ import io .micrometer .common .lang .Nullable ;
19
20
20
21
/**
21
22
* No-op implementation of {@link Observation} so that we can disable the instrumentation
@@ -39,12 +40,12 @@ private NoopObservation() {
39
40
}
40
41
41
42
@ Override
42
- public Observation contextualName (String contextualName ) {
43
+ public Observation contextualName (@ Nullable String contextualName ) {
43
44
return this ;
44
45
}
45
46
46
47
@ Override
47
- public Observation parentObservation (Observation parentObservation ) {
48
+ public Observation parentObservation (@ Nullable Observation parentObservation ) {
48
49
return this ;
49
50
}
50
51
Original file line number Diff line number Diff line change @@ -302,7 +302,7 @@ static <T extends Context> Observation createNotStarted(ObservationConvention<T>
302
302
* @param parentObservation parent observation to set
303
303
* @return this
304
304
*/
305
- Observation parentObservation (Observation parentObservation );
305
+ Observation parentObservation (@ Nullable Observation parentObservation );
306
306
307
307
/**
308
308
* Adds a low cardinality key value. Low cardinality means that this key value will
Original file line number Diff line number Diff line change @@ -85,7 +85,7 @@ public Observation contextualName(@Nullable String contextualName) {
85
85
}
86
86
87
87
@ Override
88
- public Observation parentObservation (Observation parentObservation ) {
88
+ public Observation parentObservation (@ Nullable Observation parentObservation ) {
89
89
this .context .setParentObservation (parentObservation );
90
90
return this ;
91
91
}
You can’t perform that action at this time.
0 commit comments