Skip to content

Commit c7ada20

Browse files
Add observationConvention setter
Signed-off-by: Tran Ngoc Nhan <[email protected]>
1 parent b7f95cf commit c7ada20

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

spring-rabbit-stream/src/main/java/org/springframework/rabbit/stream/producer/RabbitStreamTemplate.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -221,6 +221,14 @@ public void setObservationEnabled(boolean observationEnabled) {
221221
this.observationEnabled = observationEnabled;
222222
}
223223

224+
/**
225+
* Set an observation convention; used to add additional key/values to observations.
226+
* @param observationConvention the convention.
227+
* @since 4.0
228+
*/
229+
public void setObservationConvention(RabbitStreamTemplateObservationConvention observationConvention) {
230+
this.observationConvention = observationConvention;
231+
}
224232

225233
@Override
226234
public MessageConverter messageConverter() {

0 commit comments

Comments
 (0)