Interface SpanAttributesProvider

All Known Implementing Classes:
AggregateIdentifierSpanAttributesProvider, MessageIdSpanAttributesProvider, MessageNameSpanAttributesProvider, MessageTypeSpanAttributesProvider, MetadataSpanAttributesProvider, PayloadTypeSpanAttributesProvider

public interface SpanAttributesProvider
Represents a provider of attributes to a Span, based on a Message. It's the responsibility of the SpanFactory to invoke these and add the attributes to the Span.
Since:
4.6.0
Author:
Mitchell Herrijgers
  • Method Details

    • provideForMessage

      @Nonnull Map<String,String> provideForMessage(@Nonnull Message message)
      Provides a map of attributes to add to the Span based on the Message provided.
      Parameters:
      message - The message
      Returns:
      The attributes