Skip to content

cri: trace image pull result attributes - #13959

Merged
mxpv merged 1 commit into
containerd:mainfrom
Cindia-blue:cindy/tracing-cri-image-result
Aug 31, 2026
Merged

mxpv merged 1 commit into
containerd:mainfrom
Cindia-blue:cindy/tracing-cri-image-result

Conversation

@Cindia-blue

Copy link
Copy Markdown
Contributor

This adds success-result attributes to the existing CRI image pull span:

  • image.id records the resolved image identifier returned by CRI.
  • image.size.bytes records the image size when the existing best-effort size lookup succeeds.

The change uses the existing tracing API and does not add new tracing configuration or alter image-pull behavior. It is intentionally limited to one file as a small follow-up to #12226.

Validation:

  • go test ./internal/cri/server/images
  • go vet ./internal/cri/server/images
  • git diff --check

Copilot AI lite review requested due to automatic review settings August 14, 2026 05:42
@github-project-automation github-project-automation Bot moved this to Needs Triage in Pull Request Review Aug 14, 2026
@Cindia-blue

Copy link
Copy Markdown
Contributor Author

@fuweid Thanks again for offering to review another follow-up. This is the small one-file slice: it adds only the resolved image.id and best-effort image.size.bytes to the existing CRI PullImage span. The targeted package tests and vet pass. PTAL when you have a chance — thank you!

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 additional success-result OpenTelemetry span attributes to CRI PullImage tracing to improve observability without changing image-pull behavior (follow-up to the tracing MVP introduced in #12226).

Changes:

  • Record image.id on the image pull span once the resolved config digest is known.
  • Record image.size.bytes on the image pull span when the existing best-effort size lookup succeeds.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@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.

LGTM

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 1 out of 1 changed files in this pull request and generated no new comments.

@github-project-automation github-project-automation Bot moved this from Needs Triage to Review In Progress in Pull Request Review Aug 31, 2026
@mxpv
mxpv added this pull request to the merge queue Aug 31, 2026
Merged via the queue into containerd:main with commit 8d55c45 Aug 31, 2026
95 of 98 checks passed
@github-project-automation github-project-automation Bot moved this from Review In Progress to Done in Pull Request Review Aug 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

5 participants