Interface FunctionMessageSpanCustomizer
public interface FunctionMessageSpanCustomizer
Allows customization of messaging spans for Spring Cloud Function instrumentation.
- Since:
- 3.0.4
- Author:
- Marcin Grzejszczak
-
Method Summary
Modifier and TypeMethodDescriptiondefault voidcustomizeFunctionSpan(Span span, org.springframework.messaging.Message<?> message) Customizes the span wrapping the function execution.default voidcustomizeInputMessageSpan(Span span, org.springframework.messaging.Message<?> message) Customizes the span created after wrapping the input message in a span representation.default voidcustomizeOutputMessageSpan(Span span, org.springframework.messaging.Message<?> message) Customizes the span created for the output message.
-
Method Details
-
customizeInputMessageSpan
Customizes the span created after wrapping the input message in a span representation.- Parameters:
span- current span to customizemessage- received or sent message
-
customizeFunctionSpan
Customizes the span wrapping the function execution.- Parameters:
span- current span to customizemessage- message to be sent
-
customizeOutputMessageSpan
default void customizeOutputMessageSpan(Span span, org.springframework.messaging.Message<?> message) Customizes the span created for the output message.- Parameters:
span- current span to customizemessage- message to be sent
-