extensions/stats/plugin.cc
// maps from request context to dimensions.
// local node derived dimensions are already filled in.
maps from request context to dimensions.
local node derived dimensions are already filled in.
maps from request context to dimensions . local node derived dimensions are already filled in .
void map_request(IstioDimensions& instance,
                 const ::Wasm::Common::RequestInfo& request) {
  instance[source_principal] = request.source_principal;
  instance[destination_principal] = request.destination_principal;
  instance[destination_service] = request.destination_service_host;
  instance[destination_service_name] = request.destination_service_name;
  instance[request_protocol] =
      ::Wasm::Common::ProtocolString(request.request_protocol);
  instance[response_code] = std::to_string(request.response_code);
  instance[response_flags] = request.response_flag;
  instance[connection_security_policy] = absl::AsciiStrToLower(std::string(
      ::Wasm::Common::AuthenticationPolicyString(request.service_auth_policy)));
}
void map_request ( IstioDimensions & instance , const :: Wasm :: Common :: RequestInfo & request ) { instance [ source_principal ] = request . source_principal ; instance [ destination_principal ] = request . destination_principal ; instance [ destination_service ] = request . destination_service_host ; instance [ destination_service_name ] = request . destination_service_name ; instance [ request_protocol ] = :: Wasm :: Common :: ProtocolString ( request . request_protocol ) ; instance [ response_code ] = std :: to_string ( request . response_code ) ; instance [ response_flags ] = request . response_flag ; instance [ connection_security_policy ] = absl :: AsciiStrToLower ( std :: string ( :: Wasm :: Common :: AuthenticationPolicyString ( request . service_auth_policy ) ) ) ; }
maps from request context to dimensions.
maps from request context to dimensions .