1.13. Check whether an entity is builtin¶

eProsima Fast DDS Statistics Backend discovers any DDS entity in the monitored domain or Fast DDS Discovery Server network, including the builtin entities used to exchange metatraffic data that allows mutual discovery. is_metatraffic() returns whether the entity is related to these builtin entities or not. The possible DDS builtin entities are always of TOPIC, DATAWRITER, or DATAREADER kind (refer to EntityKind for more information). This function allows the user to discriminate between the topics and endpoints exchanging metatraffic data and those that are exchanging user data.

bool metatraffic = StatisticsBackend::is_metatraffic(entity_id);