Skip to content

RDK-61871: Add OTEL source code and recipe changes to RDKE#511

Merged
nhanasi merged 8 commits into
developfrom
topic/RDK-61799-dv
Jul 21, 2026
Merged

RDK-61871: Add OTEL source code and recipe changes to RDKE#511
nhanasi merged 8 commits into
developfrom
topic/RDK-61799-dv

Conversation

@AravindanNC

Copy link
Copy Markdown
Contributor

Reason for change: Add DML and handler for OTEL
Test Procedure: Build RDKE image

Signed-off-by: nc.aravindan@gmail.com

Copilot AI review requested due to automatic review settings July 20, 2026 13:58
@AravindanNC
AravindanNC requested a review from a team as a code owner July 20, 2026 13:58
Comment thread src/hostif/profiles/DeviceInfo/Device_DeviceInfo.cpp Fixed

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Adds TR-181/DML plumbing to control an OpenTelemetry/Distributed Tracing RFC flag from Device.DeviceInfo, including updating the WAL DB data model and implementing a setter that toggles a runtime flag file and the OTEL collector service.

Changes:

  • Added new TR-181 parameter Device.DeviceInfo.X_RDKCENTRAL-COM_RFC.Feature.DistributedTracing.Enable.
  • Implemented a DeviceInfo RFC setter that starts/stops rdk-otel-collector.service and creates/removes a tracing flag file.
  • Updated WAL DB data-model XMLs to expose the new object/parameter.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 4 comments.

File Description
src/hostif/profiles/DeviceInfo/Device_DeviceInfo.h Adds macro definitions and declares the new RFC setter for DistributedTracing.
src/hostif/profiles/DeviceInfo/Device_DeviceInfo.cpp Routes the new RFC parameter to a new setter that toggles OTEL collector + flag file.
src/hostif/parodusClient/waldb/data-model/data-model-generic.xml Adds the DistributedTracing object/Enable parameter to the generic data model.
src/hostif/parodusClient/waldb/data-model-generic.xml Adds the DistributedTracing object/Enable parameter to the WALDB generic model root.

Comment thread src/hostif/profiles/DeviceInfo/Device_DeviceInfo.cpp
Comment thread src/hostif/profiles/DeviceInfo/Device_DeviceInfo.cpp
Comment thread src/hostif/profiles/DeviceInfo/Device_DeviceInfo.cpp
Comment thread src/hostif/profiles/DeviceInfo/Device_DeviceInfo.h
@github-actions

Copy link
Copy Markdown

Code Coverage Summary

                                        Total:|74.2%  8324|94.3% 545|    -    0

… restricting permissions'

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
Copilot AI review requested due to automatic review settings July 20, 2026 14:18

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.

Comments suppressed due to low confidence (1)

src/hostif/profiles/DeviceInfo/Device_DeviceInfo.cpp:3922

  • This setter always returns OK (ret is unconditionally set to OK at the end), even if creating/removing the flag file fails or if systemctl start/stop fails. That can mislead callers into thinking the feature is enabled/disabled when the requested state change did not happen. Propagate failures by checking open/remove results and the return code from v_secure_system, and only return OK when the requested operations succeed.
    ret = OK;
    return ret;

Comment thread src/hostif/profiles/DeviceInfo/Device_DeviceInfo.cpp
Comment thread src/hostif/profiles/DeviceInfo/Device_DeviceInfo.cpp
@github-actions

Copy link
Copy Markdown

Code Coverage Summary

                                        Total:|74.1%  8328|94.3% 545|    -    0

@github-actions

Copy link
Copy Markdown

Code Coverage Summary

                                        Total:|74.2%  8328|94.3% 545|    -    0

shibu-kv
shibu-kv previously approved these changes Jul 21, 2026
Copilot AI review requested due to automatic review settings July 21, 2026 15:49

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

Comment thread src/hostif/profiles/DeviceInfo/Device_DeviceInfo.cpp
Copilot AI review requested due to automatic review settings July 21, 2026 15:54
@github-actions

Copy link
Copy Markdown

Code Coverage Summary

                                        Total:|74.2%  8328|94.3% 545|    -    0

1 similar comment
@github-actions

Copy link
Copy Markdown

Code Coverage Summary

                                        Total:|74.2%  8328|94.3% 545|    -    0

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 3 out of 3 changed files in this pull request and generated no new comments.

@nhanasi
nhanasi merged commit 1ebceaa into develop Jul 21, 2026
16 checks passed
@github-actions github-actions Bot locked and limited conversation to collaborators Jul 21, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants