Co-authored-by: Miod Vallat <miod.vallat@powerdns.com>
Signed-off-by: Otto Moerbeek <otto.moerbeek@open-xchange.com>
std::vector<DNSName> toVector() const
{
std::vector<DNSName> ret;
+ ret.reserve(d_nodes.size());
for (const auto& n : d_nodes) {
ret.emplace_back(n);
}
.. http:get:: /api/v1/servers/:server_id/ottraceconditions
- Get all :json:object:`OpenTelemetryTraceCondition` from the server. Note that while the settings file allows a list of subnets to be associated with a condition, this list is flattened: one subnet per condition.
+ Get all :json:object:`OpenTelemetryTraceCondition` from the server. Note that while the settings file allows a list of subnets to be associated with a condition, this list will be flattened, with only one subnet per condition.
:query server_id: The name of the server
void updateOTConditions(const OpenTelemetryTraceConditions& conditions)
{
- // XXX YAML settiongs are not updated, so rec_control get-parameter won't show runtime updated conditions
+ // XXX YAML settings are not updated, so rec_control get-parameter won't show runtime updated conditions
broadcastFunction([conditions] { return pleaseSupplantOTConditions(conditions); });
}
}
throw ApiException("Could not find otcondition '" + netmask.toString() + "'");
}
- catch (NetmaskException& ex) {
+ catch (NetmaskException&) {
throw ApiException("Could not parse netmask");
}
}