Skip to content

chore(orch): add more info for sandboxes#2174

Merged
jakubno merged 6 commits into
mainfrom
chore/add-more-info-for-sandboxes
Mar 19, 2026
Merged

chore(orch): add more info for sandboxes#2174
jakubno merged 6 commits into
mainfrom
chore/add-more-info-for-sandboxes

Conversation

@jakubno

@jakubno jakubno commented Mar 19, 2026

Copy link
Copy Markdown
Member

Note

Low Risk
Mostly observability changes: adds consistent kernel/firecracker/envd version fields to spans and logs, with a small refactor around sandbox config construction that should not affect runtime behavior. Low risk aside from potential metric/log attribute key changes impacting dashboards.

Overview
This PR improves sandbox observability by standardizing kernel/firecracker version attributes in telemetry and adding envd/kernel/firecracker version fields to orchestrator sandbox lifecycle logs (including map insertion and sandbox-create failure paths). It also refactors sandbox creation to build a config/runtime object before resuming the sandbox (so the resolved Firecracker version is recorded consistently), and updates tests to initialize the required sandbox config metadata.

Written by Cursor Bugbot for commit 6f3f0b3. This will update automatically on new commits. Configure here.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 840b28ba3a

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread packages/orchestrator/internal/sandbox/map.go

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes and found 2 potential issues.

Fix All in Cursor

Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

telemetry.WithSandboxID(req.GetSandbox().GetSandboxId()),
attribute.String("client.id", s.info.ClientId),
attribute.String("envd.version", req.GetSandbox().GetEnvdVersion()),
telemetry.WithEnvdVersion(req.GetSandbox().GetEnvdVersion()),

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Span attribute client.id accidentally removed from Create

Medium Severity

The attribute.String("client.id", s.info.ClientId) span attribute was dropped from the Create handler during this refactor. The Update (line 289) and Delete (line 414) handlers still set client.id on their spans, so this is an inconsistency. Since the PR intent is to add more info, this looks like an accidental removal.

Fix in Cursor Fix in Web

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Not needed, it shouldn't be really used anyway

Comment thread packages/orchestrator/internal/server/sandboxes.go Outdated

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

one nit

Comment thread packages/shared/pkg/logger/fields.go Outdated
}

func WithKernelVersion(kernelVersion string) zap.Field {
return zap.String("kernel.version", kernelVersion)

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.

lets call these sandbox.kernel.version or sandbox.kernel_version

(similar for the FC version)

@jakubno jakubno enabled auto-merge (squash) March 19, 2026 12:19
@jakubno jakubno merged commit 51a75c7 into main Mar 19, 2026
35 checks passed
@jakubno jakubno deleted the chore/add-more-info-for-sandboxes branch March 19, 2026 12:27
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.

3 participants