Class RpcAttributesExtractor<REQUEST,​RESPONSE>


  • public abstract class RpcAttributesExtractor<REQUEST,​RESPONSE>
    extends AttributesExtractor<REQUEST,​RESPONSE>
    Extractor of RPC attributes. Instrumentations of RPC libraries should extend this class, defining RpcAttributesExtractor with the actual request type of the instrumented library. If an attribute is not available in this library, it is appropriate to return null from the protected attribute methods, but implement as many as possible for best compliance with the OpenTelemetry specification.