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 Type
    Method
    Description
    default void
    customizeFunctionSpan(Span span, org.springframework.messaging.Message<?> message)
    Customizes the span wrapping the function execution.
    default void
    customizeInputMessageSpan(Span span, org.springframework.messaging.Message<?> message)
    Customizes the span created after wrapping the input message in a span representation.
    default void
    customizeOutputMessageSpan(Span span, org.springframework.messaging.Message<?> message)
    Customizes the span created for the output message.
  • Method Details

    • customizeInputMessageSpan

      default void customizeInputMessageSpan(Span span, org.springframework.messaging.Message<?> message)
      Customizes the span created after wrapping the input message in a span representation.
      Parameters:
      span - current span to customize
      message - received or sent message
    • customizeFunctionSpan

      default void customizeFunctionSpan(Span span, org.springframework.messaging.Message<?> message)
      Customizes the span wrapping the function execution.
      Parameters:
      span - current span to customize
      message - 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 customize
      message - message to be sent