Repository navigation
feat(device-plugin): add the OpenTelemetry allocate span - #3544
Conversation
Signed-off-by: Thanh-Loi Hoang <loi.hoangthanh.24@gmail.com>
Signed-off-by: Thanh-Loi Hoang <loi.hoangthanh.24@gmail.com>
Signed-off-by: Thanh-Loi Hoang <loi.hoangthanh.24@gmail.com>
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
Codecov Report❌ Patch coverage is
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
|
/lgtm |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: loiht2, moezdil The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
1 similar comment
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: loiht2, moezdil The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/kind feature
What this PR does / why we need it:
allocatespan in the NVIDIA device plugin, a child of the Filter span whose context is on the pod (hami.io/traceparent), so one trace covers Filter, Bind and AllocateOTEL_*variables as the scheduler, with service namehami-device-plugin, and flushes on exittraceIDPart of #3473
Special notes for your reviewer:
Allocatenow has named results, so one deferred check marks every failure branch with the returned errorInfolntoInfoSto carry thetraceIDkeyDoes this PR introduce a user-facing change?:
Yes, when
OTEL_EXPORTER_OTLP_ENDPOINTis set on the device plugin: anallocatespan per container andtraceIDin the "Allocate Response" log line. That line is now a structured log line, with tracing on or off.AI Assistance Disclosure:
I used Claude Code to help me investigate the code, make the changes (I reviewed and approved each one), and refine the content of this PR.
Summary by CodeRabbit