Package com.google.api.gax.rpc
Interface ResourceNameExtractor<RequestT>
- Type Parameters:
RequestT- request message type
@InternalApi("For use by transport-specific implementations")
public interface ResourceNameExtractor<RequestT>
A resource name extractor takes a request message and extracts the resource name from it. This
value is used primarily for tracing. It is added to spans as an attribute, labeled as
gcp.resource.destination.id (See
ObservabilityAttributes.DESTINATION_RESOURCE_ID_ATTRIBUTE).
Implementations of this interface are expected to be autogenerated.
-
Method Summary
-
Method Details
-
extract
Extracts the resource name from therequest.- Parameters:
request- request message- Returns:
- the resource name extracted from the request
-