Skip to content

Tracing: add spans in task/metadata and sandbox paths - #12737

Merged
fuweid merged 1 commit into
containerd:mainfrom
Cindia-blue:tracing-followups
Jan 9, 2026
Merged

fuweid merged 1 commit into
containerd:mainfrom
Cindia-blue:tracing-followups

Conversation

@Cindia-blue

@Cindia-blue Cindia-blue commented Dec 31, 2025 •

Copy link
Copy Markdown
Contributor

This is a follow-up to the pull-only PR.

This PR adds opt-in tracing spans/attributes in task lifecycle, metadata store, and sandbox/CNI setup paths to improve debugging and correlation (e.g., sandbox.id, namespace-level context), without changing execution semantics.

Scope intentionally excludes image pull, which is covered in the earlier PR. Happy to split further if any part still feels too broad.

@github-project-automation github-project-automation Bot moved this to Needs Triage in Pull Request Review Dec 31, 2025
@dosubot dosubot Bot added the area/cri Container Runtime Interface (CRI) label Dec 31, 2025
@Cindia-blue

Copy link
Copy Markdown
Contributor Author

@samuelkarp — thanks for the suggestion to split this out.

Comment thread client/task.go Resolved
@Cindia-blue
Cindia-blue force-pushed the tracing-followups branch 7 times, most recently from 7928279 to fd12232 Compare January 7, 2026 16:43
@Cindia-blue
Cindia-blue requested a review from mxpv January 7, 2026 17:36

@fuweid fuweid left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Leave some comments.
Overall, it looks good.

Comment thread pkg/tracing/helpers_spanopts.go Resolved
Comment thread internal/cri/server/sandbox_run.go Resolved
Comment thread internal/cri/server/sandbox_run.go Resolved
Comment thread internal/cri/server/sandbox_run.go Resolved
@Cindia-blue
Cindia-blue force-pushed the tracing-followups branch 2 times, most recently from d345c35 to aff1735 Compare January 8, 2026 18:21
@Cindia-blue
Cindia-blue requested a review from fuweid January 8, 2026 19:03
Comment thread internal/cri/server/sandbox_run.go Resolved
@Cindia-blue
Cindia-blue force-pushed the tracing-followups branch 5 times, most recently from 234b831 to 0e11706 Compare January 9, 2026 00:04
This PR adds opt-in tracing spans/attributes in CRI image pull and selected sandbox-related paths to improve debugging and correlation (e.g., sandbox.id/pod metadata). If maintainers prefer a smaller diff, I’m happy to split this into a pull-only PR plus follow-ups.
• follow-up after pull-only PR
• focuses on task/metadata/sandbox/cni setup spans

Signed-off-by: Cindy Li <[email protected]>
@github-project-automation github-project-automation Bot moved this from Needs Triage to Review In Progress in Pull Request Review Jan 9, 2026
@fuweid
fuweid added this pull request to the merge queue Jan 9, 2026
Merged via the queue into containerd:main with commit f1c9951 Jan 9, 2026
52 checks passed
@github-project-automation github-project-automation Bot moved this from Review In Progress to Done in Pull Request Review Jan 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/cri Container Runtime Interface (CRI) size/L

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

4 participants