Class PeerServiceAttributesExtractor<REQUEST,​RESPONSE>

  • All Implemented Interfaces:
    AttributesExtractor<REQUEST,​RESPONSE>

    public final class PeerServiceAttributesExtractor<REQUEST,​RESPONSE>
    extends Object
    implements AttributesExtractor<REQUEST,​RESPONSE>
    Extractor of the peer.service span attribute, described in the specification.

    Peer service name mappings can be configured using the otel.instrumentation.common.peer-service-mapping configuration property. The format used is a comma-separated list of host=name pairs.