Skip to content

Trace remote exec-server connection setup - #35275

Merged
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/0044c3eb94d59c6a6b92752d3d372195be4adb81
Jul 25, 2026
Merged

Trace remote exec-server connection setup#35275
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/0044c3eb94d59c6a6b92752d3d372195be4adb81

Conversation

@copyberry

@copyberry copyberry Bot commented Jul 25, 2026

Copy link
Copy Markdown

Trace remote exec-server connection setup

What changed

  • Preserve the current tracing span and subscriber when lazy remote environment
    startup runs in a background task.
  • Add spans for the remote connection, environment registry, Noise, and
    rendezvous WebSocket stages, including relevant environment and registration
    identifiers.
  • Propagate the current trace context to environment registry connection and
    harness-key validation requests.

## What changed

- Preserve the current tracing span and subscriber when lazy remote environment
  startup runs in a background task.
- Add spans for the remote connection, environment registry, Noise, and
  rendezvous WebSocket stages, including relevant environment and registration
  identifiers.
- Propagate the current trace context to environment registry connection and
  harness-key validation requests.

GitOrigin-RevId: 0044c3eb94d59c6a6b92752d3d372195be4adb81
@copyberry
copyberry Bot force-pushed the copyberry/codex-internal-to-codex-oss/0044c3eb94d59c6a6b92752d3d372195be4adb81 branch from 9a22d04 to c3e926e Compare July 25, 2026 01:40

@chatgpt-codex-connector chatgpt-codex-connector Bot 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.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 9a22d043dd

ℹ️ About Codex in GitHub

Codex has been enabled to automatically 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 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

}
}
})))
.in_current_span()

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.

P1 Badge Remove call-site instrumentation from the startup future

When start_connecting runs inside a caller span, .in_current_span() instruments the entire detached startup future, retaining that caller span while deferred readiness or connection setup waits and giving the connection work an inaccurate lifetime and parentage. connect_once is already instrumented in this change, so preserve subscriber propagation if needed but remove this redundant call-site span attachment, as required by the repository tracing convention.

AGENTS.md reference: AGENTS.md:L45-L48

Useful? React with 👍 / 👎.

@copyberry
copyberry Bot merged commit c3e926e into main Jul 25, 2026
14 of 32 checks passed
@copyberry
copyberry Bot deleted the copyberry/codex-internal-to-codex-oss/0044c3eb94d59c6a6b92752d3d372195be4adb81 branch July 25, 2026 01:41
@github-actions github-actions Bot locked and limited conversation to collaborators Jul 25, 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