extensions/stats/plugin.cc
// maps peer_node and request to dimensions.
maps peer_node and request to dimensions.
maps peer_node and request to dimensions .
void map(IstioDimensions& instance, bool outbound,
         const ::Wasm::Common::FlatNode& peer_node,
         const ::Wasm::Common::RequestInfo& request) {
  map_peer(instance, outbound, peer_node);
  map_request(instance, request);
  map_unknown_if_empty(instance);
  if (request.request_protocol == Protocol::GRPC) {
    instance[grpc_response_status] = std::to_string(request.grpc_status);
  } else {
    instance[grpc_response_status] = "";
  }
}
void map ( IstioDimensions & instance , bool outbound , const :: Wasm :: Common :: FlatNode & peer_node , const :: Wasm :: Common :: RequestInfo & request ) { map_peer ( instance , outbound , peer_node ) ; map_request ( instance , request ) ; map_unknown_if_empty ( instance ) ; if ( request . request_protocol == Protocol :: GRPC ) { instance [ grpc_response_status ] = std :: to_string ( request . grpc_status ) ; } else { instance [ grpc_response_status ] = " " ; } }
maps peer_node and request to dimensions.
maps peer_node and request to dimensions .