Skip to content

RDK-55825: added telemeetry calls#293

Open
andrejz2 wants to merge 1 commit intodevelopfrom
feature/RDK-55825
Open

RDK-55825: added telemeetry calls#293
andrejz2 wants to merge 1 commit intodevelopfrom
feature/RDK-55825

Conversation

@andrejz2
Copy link

No description provided.

@andrejz2 andrejz2 requested a review from a team as a code owner March 18, 2026 18:25
Copilot AI review requested due to automatic review settings March 18, 2026 18:25
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds telemetry (T2) instrumentation to the connectivity-check path so connectivity failures and internet connect/disconnect outcomes are reported via telemetry events.

Changes:

  • Conditionally includes the telemetry sender header when USE_TELEMETRY is enabled.
  • Emits a string telemetry event on CURL connectivity failures, including endpoint and CURL error text.
  • Emits numeric telemetry events for internet connected/disconnected outcomes derived from HTTP response analysis.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

You can also share your feedback on Copilot code review. Take the survey.

#if USE_TELEMETRY
{
std::string t2value = std::string("endpoint: ") + (endpntConf ? endpntConf : "") + " curl error: " + curl_easy_strerror(msg->data.result);
t2_event_s("WIFIV_WARN_Connectivityfail", const_cast<char*>(t2value.c_str()));
Comment on lines 526 to +531
case HttpStatus_204_No_Content:
InternetConnectionState = INTERNET_FULLY_CONNECTED;
NMLOG_INFO("Internet State: FULLY_CONNECTED - %.1f%%", (percentage*100));
#if USE_TELEMETRY
t2_event_d("WIFI_INFO_INT_CON", 1);
#endif
Comment on lines +547 to +557
#if USE_TELEMETRY
t2_event_d("WIFI_INFO_INT_DISCON", 1);
#endif
}
else
{
NMLOG_WARNING("Internet State: NO_INTERNET (http code: %d - %.1f%%)", static_cast<int>(http_response_code), percentage * 100);
#if USE_TELEMETRY
t2_event_d("WIFI_INFO_INT_DISCON", 1);
#endif
}
Comment on lines 546 to +556
NMLOG_ERROR("Internet State: NO_INTERNET (curl error)");
#if USE_TELEMETRY
t2_event_d("WIFI_INFO_INT_DISCON", 1);
#endif
}
else
{
NMLOG_WARNING("Internet State: NO_INTERNET (http code: %d - %.1f%%)", static_cast<int>(http_response_code), percentage * 100);
#if USE_TELEMETRY
t2_event_d("WIFI_INFO_INT_DISCON", 1);
#endif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants