File tree Expand file tree Collapse file tree 2 files changed +7
-5
lines changed
include/datadog/telemetry Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Original file line number Diff line number Diff line change 55
66#include < string>
77#include < unordered_map>
8+ #include < vector>
89
910namespace datadog ::telemetry {
1011
@@ -30,7 +31,7 @@ struct Product final {
3031 // / Optional error message related to the product status.
3132 tracing::Optional<std::string> error_message;
3233 // / Map of configuration settings for the product.
33- std::unordered_map<tracing::ConfigName, tracing::ConfigMetadata>
34+ std::unordered_map<tracing::ConfigName, std::vector< tracing::ConfigMetadata> >
3435 configurations;
3536};
3637
Original file line number Diff line number Diff line change @@ -587,11 +587,12 @@ std::string Telemetry::app_started_payload() {
587587
588588 for (const auto & product : config_.products ) {
589589 auto & configurations = product.configurations ;
590- for (const auto & [_, config_metadata ] : configurations) {
590+ for (const auto & [_, config_metadatas ] : configurations) {
591591 // if (config_metadata.value.empty()) continue;
592-
593- configuration_json.emplace_back (
594- generate_configuration_field (config_metadata));
592+ for (const auto & config_metadata : config_metadatas) {
593+ configuration_json.emplace_back (
594+ generate_configuration_field (config_metadata));
595+ }
595596 }
596597
597598 // / NOTE(@dmehala): Telemetry API is tightly related to APM tracing and
You can’t perform that action at this time.
0 commit comments