Fix breaking changes from Micrometer Tracing snapshot
This commit is contained in:
@@ -216,7 +216,7 @@ public class PulsarTemplate<T>
|
||||
}
|
||||
else {
|
||||
observation = PulsarTemplateObservation.TEMPLATE_OBSERVATION.observation(this.observationConvention,
|
||||
DefaultPulsarTemplateObservationConvention.INSTANCE, senderContext, this.observationRegistry);
|
||||
DefaultPulsarTemplateObservationConvention.INSTANCE, () -> senderContext, this.observationRegistry);
|
||||
}
|
||||
return observation;
|
||||
}
|
||||
|
||||
@@ -369,7 +369,7 @@ public class DefaultPulsarMessageListenerContainer<T> extends AbstractPulsarMess
|
||||
observation = PulsarListenerObservation.LISTENER_OBSERVATION.observation(
|
||||
this.containerProperties.getObservationConvention(),
|
||||
DefaultPulsarListenerObservationConvention.INSTANCE,
|
||||
new PulsarMessageReceiverContext(message, getBeanName()),
|
||||
() -> new PulsarMessageReceiverContext(message, getBeanName()),
|
||||
this.observationRegistry);
|
||||
}
|
||||
observation.observe(() -> {
|
||||
|
||||
Reference in New Issue
Block a user